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.
hnFollow
akkartik
hnFollow
An interactive, runnable TypeScript val by akkartik
hnTopStoryExample
dharmatech
hnTopStoryExample
An interactive, runnable TypeScript val by dharmatech
holidaysUS
testhandle
holidaysUS
// Public holidays in the US in 2023
home
rym
home
// Access via https://api.val.town/v1/express/rym.home
initGrid
beneskildsen
initGrid
An interactive, runnable TypeScript val by beneskildsen
logRandomNumber
stevekrouse
logRandomNumber
An interactive, runnable TypeScript val by stevekrouse
markdownExample
neverstew
markdownExample
Remix of: vtdocs/markdownExample
measureValTownE2e
stevekrouse
measureValTownE2e
Remix of: healeycodes/measureValTownE2e
MOCHI_FLASHCARDS_GENERATOR_GPT_SYSTEM_PROMPT
liamdanielduffy
MOCHI_FLASHCARDS_GENERATOR_GPT_SYSTEM_PROMPT
An interactive, runnable TypeScript val by liamdanielduffy
msHour
stevekrouse
msHour
An interactive, runnable TypeScript val by stevekrouse
mutationTests
stevekrouse
mutationTests
An interactive, runnable TypeScript val by stevekrouse
myTestForm
stevekrouse
myTestForm
// set by stevekrouse.handleFormExample at 2023-04-12T16:18:06.208Z
notifyInTg
dpetrouk
notifyInTg
Usage in bash: # Can be in .bashrc or .zsrhc: to-tg() { local input="" if [[ -p /dev/stdin ]]; then input="$(cat -)" else input="${@}" fi if [[ -z "${input}" ]]; then return 1 fi local chat_id="-1001826545120" # Set chat_id where your bot is local message="$input" curl -G https://api.val.town/v1/run/dpetrouk.notifyInTg --data-urlencode 'args=["'"$chat_id"'", "'"$message"'"]' } # You will get notification where command is succesfully finished <command in bash> && to-tg Success # Can be like that? <command in bash> | to-tg Success
notionDateMeDocNotify3
stevekrouse
notionDateMeDocNotify3
An interactive, runnable TypeScript val by stevekrouse
posthogStatusTracker
ianvph
posthogStatusTracker
An interactive, runnable TypeScript val by ianvph
proxyFetch2
alp
proxyFetch2
An interactive, runnable TypeScript val by alp