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.
stevekrouse avatar
stevekrouse
insecureSSLCertExample
Script
This is an example call of @stevekrouse/insecureFetch
2
yawnxyz avatar
yawnxyz
semanticSearch
Script
In-memory semantic search; load it up with valtown KV. This is a "dumb" version of vector search, for prototyping RAG responses and UIs — with both regular search (w/ Lunr) and vector search (with OpenAI embeddings + cosine similarity) Usage: import { semanticSearch } from "https://esm.town/v/yawnxyz/semanticSearch"; const documents = [ { id: 1, content: 'cats dogs' }, { id: 2, content: 'elephants giraffes lions tigers' }, { id: 3, content: 'edam camembert cheddar' } ]; async function runExample() { // Add documents to the semantic search instance await semanticSearch.addDocuments(documents); const results = await semanticSearch.search('animals', 0, 3); console.log('Top 3 search results for "animals":'); console.log(results); } runExample();
0
iamseeley avatar
iamseeley
RootLayout
Script
@jsxImportSource https://esm.sh/hono@latest/jsx
0
iamseeley avatar
iamseeley
formStyles
Script
An interactive, runnable TypeScript val by iamseeley
0
officialrajdeepsingh avatar
officialrajdeepsingh
reactExample
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
trihatmaja avatar
trihatmaja
fashionableJadeCatfish
Cron
Forked from stevekrouse/uptime
0
andreterron avatar
andreterron
myRunsFailed
Script
An interactive, runnable TypeScript val by andreterron
0
ivannnnnn avatar
ivannnnnn
valentine
HTTP
Forked from mewtru/valentine
0
tal avatar
tal
fetchDOEMenu
Script
// https://www.schools.nyc.gov/docs/default-source/school-menus/2023-2024/september/pre-k---8-express-hot-lunch-menu
0
parthstown avatar
parthstown
aloneAquaGopher
HTTP
An interactive, runnable TypeScript val by parthstown
0
stevekrouse avatar
stevekrouse
trackingPixelSuperhuman
Script
An interactive, runnable TypeScript val by stevekrouse
0
abusedmedia avatar
abusedmedia
testVar
Script
An interactive, runnable TypeScript val by abusedmedia
0
shouser avatar
shouser
createdAt
Script
// set at Tue Feb 11 2025 17:09:13 GMT+0000 (Coordinated Universal Time)
0
iamseeley avatar
iamseeley
customSkillsSection
Script
An interactive, runnable TypeScript val by iamseeley
0
paulkinlan avatar
paulkinlan
emailSummaryHandler
Email
Email Summary Service This val is an email handler replies to emails it recieves with an LLM-generated summary. To use, forward an email to paulkinlan.emailSummaryHandler@valtown.email Blog post: https://paul.kinlan.me/projects/email-summary-service/
4
sany45 avatar
sany45
weatherDashboard
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0