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.
niek avatar
cyanGuppy
@niek
HTTP (deprecated)
Forked from niek/spotify
stevekrouse avatar
indigoOwl
@stevekrouse
Cron
An interactive, runnable TypeScript val by stevekrouse
stevekrouse avatar
sqliteStyle
@stevekrouse
Script
Forked from nbbaier/sqliteStyle
willthereader avatar
coralCarp
@willthereader
HTTP (deprecated)
Forked from stevekrouse/valTownChatGPT
yawnxyz avatar
eventsy
@yawnxyz
Script
The Eventsy class represents a system for logging and managing events. It utilizes Dobby for database operations and provides methods for logging events, retrieving events by type, performing full-text searches, and more. This class is designed to be flexible and adaptable to various event logging needs.
cathy avatar
easyAQIExample
@cathy
Script
// The realtime Air Quality Index (AQI) for any location
pomdtr avatar
val_town_leaderboard
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
stevekrouse avatar
parseXML
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
pomdtr avatar
password_auth
@pomdtr
Script
Password Auth Middleware Protect your vals behind a password. Use session cookies to persist authentication. Demo See @pomdtr/password_auth_test Usage import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=84"; export default passwordAuth(() => { return new Response("OK"); }, { verifyPassword: (password) => password == Deno.env.get("VAL_PASSWORD") }); If you want to use an api token to authenticate: import { passwordAuth } from "https://esm.town/v/pomdtr/password_auth?v=84"; import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken"; export default passwordAuth(() => { return new Response("OK"); }, { verifyPassword: verifyToken }); TODO [x] allow to authenticate using a val town token [ ] add a way to send an email to ask a password from the val owner [ ] automatically extend the session [ ] automatically remove expired sessions FAQ How to sign out ? Navigate to <your-site>/signout .
willthereader avatar
Debugging_Guide
@willthereader
HTTP
@jsxImportSource https://esm.sh/hono@latest/jsx
ejfox avatar
VALLErun
@ejfox
HTTP (deprecated)
Forked from janpaul123/VALLErun
stevekrouse avatar
example5
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
saolsen avatar
connect4_site
@saolsen
HTTP (deprecated)
Play connect4. Write agents that play connect4. Battle your agents against other agents. It's fun.
bitbloxhub avatar
hnTopStoryExample
@bitbloxhub
Script
An interactive, runnable TypeScript val by bitbloxhub
ubyk avatar
VALLErun
@ubyk
HTTP (deprecated)
Forked from janpaul123/VALLErun
bcongdon avatar
emailMeWhenBadAirQuality
@bcongdon
Script
Forked from logan/emailMeWhenBadAirQuality