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.
saolsen avatar
sqlite
@saolsen
Script
This is a wrapper of the val town std sqlite library that adds tracing via https://www.val.town/v/saolsen/tracing.
begoon avatar
ghdb
@begoon
HTTP
This val implements a simple key/value database with GitHub, in a CRUD way. The key is a file path within a repository. The value is the file content. The val needs a GitHub token to access the GitHub API, the account name and the repository name. Also, the val needs GHDB_API_KEY variable. This value defines the exptected value of the GHDB_API_KEY header to allow access to the endpoints. Endpoints: GET /data/path/to/file.ext - read file GET /raw/path/to/file.ext - read file from GitHub CDN (10 times faster) DELETE /data/path/to/file.ext - delete file POST /data/path/to/file.ext - create file PUT /data/path/to/file.ext - update/commit file
stevekrouse avatar
openai_structured_output_demo
@stevekrouse
Script
How to get OpenAI to give you valid JSON. I was having trouble getting it to work with @std/openai, so you'll need your own OPENAI_API_KEY for this Code from https://platform.openai.com/docs/guides/structured-outputs/introduction
pomdtr avatar
popcorn
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
danielhenrymantilla avatar
bodies
@danielhenrymantilla
Script
// set by danielhenrymantilla.handler at 2023-04-23T10:47:18.758Z
andreterron avatar
searchPostsForTheActuallyBot
@andreterron
Script
An interactive, runnable TypeScript val by andreterron
togatherhugo avatar
togatheriOS
@togatherhugo
Script
An interactive, runnable TypeScript val by togatherhugo
keenanzucker avatar
blobCommentsReact
@keenanzucker
HTTP (deprecated)
Forked from stevekrouse/blobCommentsReact
ianvph avatar
posthogGitHubStarCapture
@ianvph
HTTP (deprecated)
A GitHub webhook handler to capture stars in PostHog
willthereader avatar
purpleKangaroo
@willthereader
HTTP (deprecated)
Forked from maxm/valTownChatGPT
stevekrouseTest avatar
publicKey
@stevekrouseTest
Script
An interactive, runnable TypeScript val by stevekrouseTest
parkerdavis avatar
sqliteExplorerApp
@parkerdavis
HTTP (deprecated)
Forked from nbbaier/sqliteExplorerApp
cofsana avatar
websim
@cofsana
HTTP (deprecated)
Forked from substrate/websim
scott avatar
githubGists
@scott
Script
An interactive, runnable TypeScript val by scott
stevekrouse avatar
date_me_doc_locations
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
meglado avatar
lovelyBeigeSole
@meglado
Script
Forked from dglazkov/discordBot