US Congress Stock Trading API examples & templates
Use these vals as a playground to view and fork US Congress Stock Trading API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
![ff6347 avatar](https://images.clerk.dev/oauth_github/img_2RIkD6HkQ5PXfl16OiTXtggK9UG.png)
ff6347
p5_latest_starterkit
HTTP
P5@latest Starter Kit This val is part of the seminar fundamentals of digital communication at University of Arts Braunschweig in 2024/25. It provides a downloadable starter kit that contains the following content: p5.js library @ff6347/p5easing library npmjs.com/package/@ff6347/p5-easing index.html starter code index.js starter code
0
![stevekrouse avatar](https://images.clerk.dev/uploaded/img_2PqHa2Gsy93xQrjh2w78Xu0cChW.jpeg)
stevekrouse
insecureFetch
Script
Insecure SSL Cert Fetch This will be useful if you're getting a invalid peer certificate: UnknownIssuer error . If you need to make a fetch request to a website with a dubious or non-standard SSL certificate, you can use this proxy we made on Cloudflare workers (which doesn't verify SSL certs): https://unsecure-fetch.val-town.workers.dev/ import { insecureFetch } from "https://esm.town/v/stevekrouse/insecureFetch";
const url = "https://assignment-api.uspto.gov/patent/basicSearch?query=1234567&fields=main&rows=20";
const data = await insecureFetch(url)
const text = await data.text();
console.log(text)
1