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.
neverstew avatar
neverstew
viewSource
HTTP
View source code Just like a right click + inspect on desktop, except available on mobile too! Just write the website after the / e.g. https://neverstew-viewSource.web.val.run/bbc.co.uk
2
stevekrouse avatar
stevekrouse
runErrorEmail
Script
An interactive, runnable TypeScript val by stevekrouse
0
envl avatar
envl
rand
Script
An interactive, runnable TypeScript val by envl
0
vladimyr avatar
vladimyr
podcastBadge
HTTP
Console DevTools devtools.fm
0
azkasources avatar
azkasources
respectfulMagentaQuelea
HTTP
@jsxImportSource https://esm.sh/react
0
ntontischris avatar
ntontischris
travelSurveyApp
HTTP
@jsxImportSource https://esm.sh/react
0
turbo1912 avatar
turbo1912
fal_sdxl
Script
fal/sdxl This val is an example usage sdxl with fal.ai's javascript client. https://www.fal.ai/models/stable-diffusion-xl The client offers a way for you to subscribe to queue updates. This is useful if you want to get notified when a function is done running, or if you want to get the logs as they are being generated. import fal from "npm:@fal-ai/serverless-client"; const result = await fal.subscribe(FUNCTION_ID, { input: { seed: 176400, }, pollInterval: 5000, logs: true, onQueueUpdate: (update) => { console.log(update.status); if (update.status === "IN_PROGRESS") { update.logs.map((log) => log.message).forEach(console.log); } }, }); console.log(result.url); The onQueueUpdate callback will be called every time the queue status changes. The update object contains the queue status data as documented on the status types section .
0
macro21kgb avatar
macro21kgb
imageConverterSite
HTTP
@jsxImportSource https://esm.sh/react
0
stevekrouse avatar
stevekrouse
asyncExample2
Script
An interactive, runnable TypeScript val by stevekrouse
0
tmcw avatar
tmcw
joseExample
Script
JWTs with JOSE This is an example of using the jose module to generate a JSON Web Token . JSON web tokens you can use for authenticating requests and all kinds of unusual things.
0
stevekrouse avatar
stevekrouse
gptExample
Script
An interactive, runnable TypeScript val by stevekrouse
1
maxm avatar
maxm
niceTodoList
HTTP
* This is a minimalist to-do list app using server-side rendering without any client-side JavaScript. * It uses Val Town's SQLite for data persistence, Deno's standard library for HTML escaping, * and custom SVG icons for a cohesive design.
0
janpaul123 avatar
janpaul123
valle_tmp_4507707191590409272114395062097
HTTP
// Initialize SQLite database and comments table if it doesn't exist
0
willthereader avatar
willthereader
Title_Extractor
Script
// Helper function to retrieve CSRF token if needed
0
stevekrouse avatar
stevekrouse
refs
Script
An interactive, runnable TypeScript val by stevekrouse
2
pranjaldotdev avatar
pranjaldotdev
PubSub
Script
An interactive, runnable TypeScript val by pranjaldotdev
0