Back to APIs list

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.
stevekrouse avatar
stevekrouse
blob_delete_by_prefix
Script
Delete blobs by prefix Utility to delete your blobs by prefix
0
dandivelbiss avatar
dandivelbiss
basic_auth
HTTP
Forked from rdimartino/basic_auth
0
nbbaier avatar
nbbaier
extractMetadata
Script
Forked from pomdtr/gfm
0
nbbaier avatar
nbbaier
dbToApiBasicAuth
Script
Forked from nbbaier/mockToApi
0
karfau avatar
karfau
isRequest
Script
A type guard for vals that expect a WebApi Request as the first parameter. Since a val can be invoked by run, web, express or even email, the correct type for a web endpoint should be req?: Request | unknown . By using this type guard and handling the false case, all later code can safely access the request: export const myVal = (req?: Request | unknown) => { if (!@karfau.isRequest(req)) { return `This val has to be used with the web endpoint, see ${@neverstew.thisValUrl()}`; } if (req.method === 'GET') { // ... } }
2
stevekrouse avatar
stevekrouse
untitled_blackBoa
Script
An interactive, runnable TypeScript val by stevekrouse
0
fdterr avatar
fdterr
untitled8638060
Script
An interactive, runnable TypeScript val by fdterr
0
stevekrouse avatar
stevekrouse
untitled_blushMoth
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
untitled_emeraldPorcupine
Script
An interactive, runnable TypeScript val by stevekrouse
0
arbesman avatar
arbesman
untitled1382609
Script
An interactive, runnable TypeScript val by arbesman
0
stevekrouse avatar
stevekrouse
untitled_blackCrayfish
Script
An interactive, runnable TypeScript val by stevekrouse
0
snm avatar
snm
untitled4965473
Script
An interactive, runnable TypeScript val by snm
0
stevekrouse avatar
stevekrouse
untitled_mutate_test_state
Script
An interactive, runnable TypeScript val by stevekrouse
0
ingenieroariel avatar
ingenieroariel
untitled_limeHornet
Script
// investigate how to load duckdb with spatial extensions in this context in order to load buildings from s3.
1
sarahmeyohas avatar
sarahmeyohas
untitled8552959
Script
An interactive, runnable TypeScript val by sarahmeyohas
0
stevekrouse avatar
stevekrouse
untitled_amaranthOtter
Script
An interactive, runnable TypeScript val by stevekrouse
0