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.
sqlite
std
sqlite
SQLite - Docs β†— SQLite is a lightweight, standard database. Every Val Town account comes with its own private SQLite database that is accessible from any of your vals via std/sqlite . Val Town SQLite is powered by Turso . Usage Migrations ORMs We recommend these admin data viewers for managing your database – viewing or editing data or your database table schema: Outerbase Studio (recommended) - formely known as LibSQL Studio – see instructions here SQLite Explorer (built in Val Town) Limits You can store 10mb on the free plan and up to 1gb on the paid plan. Contact us if you need more space. πŸ“ Edit docs
fetch
std
fetch
Proxied fetch - Docs β†— The Javascript Fetch API is directly available within a Val. However sometimes fetch calls are blocked by the receiving server for using particular IP addresses. Additionally, network blips or unreliable web services may lead to failures if not handled properly. The Val Town standard library contains an alternative version, std/fetch , that wraps the JavaScript Fetch API to provide additional functionality. The fetch function from std/fetch reroutes requests using a proxy vendor so that requests obtain different IP addresses. It also automatically retries failed requests several times. Note that using std/fetch will be significantly slower than directly calling the Javascript Fetch API due to extra network hops. Usage After importing std/fetch , the fetch method is used with the same signature as the Javascript Fetch API. import { fetch } from "https://esm.town/v/std/fetch"; let result = await fetch("https://api64.ipify.org?format=json"); let json = await result.json(); console.log(json.ip); If you run the above code multiple times, you'll see that it returns different IP addresses, because std/fetch uses proxies so that each request is made from a different IP address. πŸ“ Edit docs
email_docs
andreterron
email_docs
Remix of: std/email
sqlite_docs
andreterron
sqlite_docs
Remix of: std/sqlite
blob_docs
andreterron
blob_docs
Remix of: std/blob
ezno_checker_example
kaleidawave
ezno_checker_example
Check a snippet using the Ezno type checker
ezno_check
kaleidawave
ezno_check
Check a snippet using Ezno. Example @kaleidawave.ezno_check( "const x: string = 20", );
crimsonLynx
stevekrouse
crimsonLynx
Remix of: willthereader/oldPersonalWebsite
sqlite_admin
robsimmons
sqlite_admin
Remix of: stevekrouse/sqlite_admin
v1
naserdehghan
v1
An interactive, runnable TypeScript val by naserdehghan
kyselyVtDemo
burningion
kyselyVtDemo
Remix of: easrng/kyselyVtDemo
valshot
burningion
valshot
Remix of: vladimyr/valshot
aqi
burningion
aqi
Remix of: stevekrouse/aqi
apricotTurkey
yawnxyz
apricotTurkey
An interactive, runnable TypeScript val by yawnxyz
pushover
pranjaldotdev
pushover
// Send a pushover message.
UsePubSub
pranjaldotdev
UsePubSub
An interactive, runnable TypeScript val by pranjaldotdev