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.
addResyReservationRequest
alp
addResyReservationRequest
An interactive, runnable TypeScript val by alp
aqi
colinz
aqi
An interactive, runnable TypeScript val by colinz
asyncExample2
stevekrouse
asyncExample2
An interactive, runnable TypeScript val by stevekrouse
asyncExample3
stevekrouse
asyncExample3
An interactive, runnable TypeScript val by stevekrouse
autocompleteCityByName
yo_0
autocompleteCityByName
An interactive, runnable TypeScript val by yo_0
bskySocialEx
stevekrouse
bskySocialEx
// Forked from @lukas.bskySocial
catFact
yuval_dikerman
catFact
An interactive, runnable TypeScript val by yuval_dikerman
chatSampleSystemRoleSimple
zhsumei
chatSampleSystemRoleSimple
Remix of: webup/chat
curveMinusServer
ralfw
curveMinusServer
An interactive, runnable TypeScript val by ralfw
dm
stevekrouse
dm
DM Me! Ever wanted to message someone about their val but you couldn't find their contact info? Want to allow folks on Val Town to contact you without exposing your email address? Boy do I have the over-engineered solution for you! This is a userspace, authenticated protocol for Val Town direct messages. Protocol Expose a dm function on your namespace that that accepts messages and some authentication data (described below). The easiest way to accomplish this is to fork this val. What you choose to do with direct messages is totally up to you. At the moment, I email myself your message and save it to a private array val. You could forward it along to yourself some other way, batch up messages to get a daily summary email if you're Mr. Popular, or send them to /dev/null if you're Mr. Antisocial. Authentication This protocol uses my Val Town public key auth scheme , so you'll need to follow the first two steps of that blog post – (1) generate a keypair and (2) publish your public key – to authenticate to this function. Usage You can call this function via the @stevekrouse.runValAPIAuth helper: @stevekrouse.runValAPIAuth({ val: "@stevekrouse.dm", args: ["hi steve!"], keys: @me.exportedKeys, }); Example: https://www.val.town/v/stevekrouseTest.untitled_tealMinnow
easyAQIExample
cas
easyAQIExample
An interactive, runnable TypeScript val by cas
EmailNotifIfDidntCode
Davidkim
EmailNotifIfDidntCode
An interactive, runnable TypeScript val by Davidkim
emptyReturn1
stevekrouse
emptyReturn1
An interactive, runnable TypeScript val by stevekrouse
eval_
stevekrouse
eval_
An interactive, runnable TypeScript val by stevekrouse
example2
stevekrouse
example2
An interactive, runnable TypeScript val by stevekrouse
examplebot_endpoint
malloc
examplebot_endpoint
An interactive, runnable TypeScript val by malloc