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.
janpaul123 avatar
janpaul123
valle_tmp_719883516769855647473989346238055
HTTP
// This is a simple Express HTTP val that returns "Hello, World!" when accessed.
0
stevekrouse avatar
stevekrouse
serverlessMatrixEchoBot
Express (deprecated)
// https://stevekrouse-serverlessMatrixEchoBot.express.val.run/_matrix/push/v1/notify
0
michaellatman avatar
michaellatman
isMyWebsiteDown
Cron
Forked from andreterron/isMyWebsiteDown
0
iamseeley avatar
iamseeley
thomasResumeConfig
Script
Forked from iamseeley/resumeConfig
0
iamseeley avatar
iamseeley
currentTime
Script
⌚ get a user's current local time
0
netux avatar
netux
todepondLabLoginBanUser
HTTP
Forked from todepond/labLoginBanUser
0
stevekrouse avatar
stevekrouse
r2Demo
Script
Demo using an s3 client to access cloudflare r2
0
stevekrouse avatar
stevekrouse
sqlite_clone_migrate_table
Script
SQLite Migrate Table via cloning it into a new table example There are a lot of migrations that SQLite doesn't allow, such as adding a primary key on a table. The way to accomplish this is by creating a new table with the schema you desire and then copying the rows of the old table into it. This example shows how to: Get the schema for the existing table Create the new table Copy all rows from old to new Rename the old table to an archive (just in case) Rename the new table to the original table name This script shows me adding a primary key constraint to the Profile column of my DateMeDocs database. I would console and comment out various parts of it as I went. You can see everything I did in the version history. The main tricky part for me was removing the duplicate primary key entries before doing the migration step, which is a useful thing anyways, from a data cleaning perspective.
3
stevekrouse avatar
stevekrouse
spotifyCreatePlaylist
Script
An interactive, runnable TypeScript val by stevekrouse
0
parkerdavis avatar
parkerdavis
blob_admin
HTTP
Forked from stevekrouse/blob_admin
0
willthereader avatar
willthereader
AlgoliaRecordSender2
HTTP
// Importing environment variables
0
stevekrouse avatar
stevekrouse
authRequestEx
Script
An interactive, runnable TypeScript val by stevekrouse
0
domingo1987 avatar
domingo1987
problemPython
HTTP
// Privacy policy template in Markdown
0
charmaine avatar
charmaine
blissfulBrownSmelt
HTTP
Forked from stevekrouse/newUserWelcomeEmail
0
stevekrouse avatar
stevekrouse
water_plant_bot
Cron
Forked from stevekrouse/dailyStandupBot
0
stevekrouse avatar
stevekrouse
isValTooBig
Script
// Check if a val is too big to save
1