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.
beneskildsen avatar
bonsaiReducer
@beneskildsen
Script
An interactive, runnable TypeScript val by beneskildsen
roramigator avatar
pr0n
@roramigator
HTTP
@jsxImportSource https://esm.sh/react
canpolat avatar
createQuotePost
@canpolat
Script
An interactive, runnable TypeScript val by canpolat
vtdocs avatar
examplePDF
@vtdocs
HTTP (deprecated)
An example of how to render an invoice using @vtdocs.generateInvoicePDF
robsimmons avatar
aoc_2023_15_2
@robsimmons
Script
Forked from robsimmons/aoc_2023_15_1
ejfox avatar
githubactivity
@ejfox
HTTP
// This approach uses the GitHub API without authentication, which is subject to rate limiting.
alexdphan avatar
hackerNewsSearch
@alexdphan
HTTP (deprecated)
An interactive, runnable TypeScript val by alexdphan
nickaggarwal avatar
slackScout
@nickaggarwal
Cron
Forked from sarahxc/slackScout
bnorick avatar
reddit_alert_example
@bnorick
Script
An interactive, runnable TypeScript val by bnorick
janpaul123 avatar
valle_tmp_62963168422172378076257133989442
@janpaul123
HTTP (deprecated)
An interactive, runnable TypeScript val by janpaul123
richardkaplan avatar
btcPriceAlert
@richardkaplan
Cron
Forked from stevekrouse/btcPriceAlert
std avatar
blob
@std
Script
Blob Storage - Docs ↗ Val Town comes with blob storage built-in. It allows for storing any data, like text, JSON, or images. You can access it via std/blob . Blob storage is scoped globally to your account. If you set a blob in one val, you can retrieve it by the same key in another val. It's backed by Cloudflare R2. You may find this admin viewer helpful for viewing and editing your blobs. Get JSON import { blob } from "https://esm.town/v/std/blob"; let blobDemo = await blob.getJSON("myKey"); console.log(blobDemo); // returns `undefined` if not found Set JSON import { blob } from "https://esm.town/v/std/blob"; await blob.setJSON("myKey", { hello: "world" }); List keys import { blob } from "https://esm.town/v/std/blob"; let allKeys = await blob.list(); console.log(allKeys); const appKeys = await blob.list("app_"); console.log(appKeys); // all keys that begin with `app_` Delete by key import { blob } from "https://esm.town/v/std/blob"; await blob.delete("myKey"); Examples Counter RSS Notifications (saving the last run time) Picture: Save & Read Error Handling blob.get can throw ValTownBlobNotFoundError Any method can throw ValTownBlobError for unexpected errors. Utilities Our Blob SDK also includes some utility functions to make working with blobs easier. Copy import { blob } from "https://esm.town/v/std/blob"; await blob.copy("myKey", "myKeyCopy"); Move import { blob } from "https://esm.town/v/std/blob"; await blob.move("myKey", "myKeyNew"); Lower-level API We provide access to the lower-level getter and setters, which are useful if you are storing non-JSON or binary data, need to stream in your response or request data, or do anything else lower-level. async get(key: string) : Retrieves a blob for a given key. async set(key: string, value: string | BodyInit) : Sets the blob value for a given key. See BodyInit . Limitations Blob-stored data counts towards your total Val Town storage – 10mb on the free plan and 1gb on pro. Check our pricing page to learn more. Keys for blobs can be up to 512 characters long. 📝 Edit docs
adilson avatar
webscrapeMinhaBibliotecaCatolicaBoxList
@adilson
Script
Getting all boxes from MinhaBibliotecaCatolica.com.br
larsr avatar
githubEvents
@larsr
Script
An interactive, runnable TypeScript val by larsr
dustingetz avatar
hackerNewsAuthors
@dustingetz
Script
An interactive, runnable TypeScript val by dustingetz
janpaul123 avatar
blob
@janpaul123
Script
Forked from std/blob