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.
![pomdtr avatar](https://images.clerk.dev/oauth_github/img_2RCoAITJZH1QencEgtVjh4Qirj4.jpeg)
pomdtr
favicon
HTTP
Favicons <link
rel="icon"
href="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/e8532b85-8de0-40f5-47a1-d4b9580ff200/public"
media="(prefers-color-scheme: light)"
/> <link
rel="icon"
href="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/f774eb95-7207-43bf-3a6b-a9a423d9bb00/public"
media="(prefers-color-scheme: dark)"
/>
0
![pomdtr avatar](https://images.clerk.dev/oauth_github/img_2RCoAITJZH1QencEgtVjh4Qirj4.jpeg)
pomdtr
example_release
HTTP
Val Release Pattern Create a new val, then use the proper exports depending on what version you want to install: // install stable version
export { stable } from "https://esm.town/v/pomdtr/example_release" // install dev version
export { dev } from "https://esm.town/v/pomdtr/example_release" // install canary version
export { canary } from "https://esm.town/v/pomdtr/example_release"
1
rozek
UUIDv4_Generator
HTTP
This is a simple generator for UUIDs of Type 4. While it may already be useful by itself, it has primarily been made in order to provide some data for the InvocationTracker and its viewer.
This means that every invocation of the UUIDv4 Generator is tracked - but only by incrementing an internal counter, no IP addresses or any other details are stored
0
![stevekrouse avatar](https://images.clerk.dev/uploaded/img_2PqHa2Gsy93xQrjh2w78Xu0cChW.jpeg)
stevekrouse
r2
Script
r2 wrapper Save blobs without leaving Val Town! Only for Val Town Pro users to limit abuse. We get 10gb free, so as long as nobody abuses this, I won't put any strict limits on it. If you want to use more than 10gb, let me know, and we can bill you for it. All data in this bucket is public if you know it's name! This val, @stevekrouse.r2, is the "SDK" for @stevekrouse.r2Proxy . Setup This val requires you to setup public key auth, which is really just three clicks here: https://blog.val.town/public-key-auth-val-town-users-can-be-your-users [Optional] You can setup a helper function so you don't have to pass your keys every time: let blob = (key, value) => @stevekrouse.r2(key, value, @me.exportedKeys) Warning: Do not make your blob function public or unlisted. That would allow anyone to use it. Usage await @me.blob("demo", { hello: "world" });
return @me.blob("demo"); // {hello: "world"} Example usage: https://www.val.town/v/stevekrouse.r2Demo
2