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.
sco avatar
denoImportEx
@sco
Script
An interactive, runnable TypeScript val by sco
tomcritchlow avatar
tom_og
@tomcritchlow
HTTP (deprecated)
A simplified version of this: https://www.val.town/v/panphora/canvasText to generate open graph images dynamically for my blog
janpaul123 avatar
valle_tmp_8524715891926958662818742653551
@janpaul123
HTTP (deprecated)
// This val will serve an HTML page emulating a Hacker News clone.
stevekrouse avatar
hnFollowPollJobError
@stevekrouse
Cron
An interactive, runnable TypeScript val by stevekrouse
robsimmons avatar
aoc_2023_14_infeasible
@robsimmons
Script
An interactive, runnable TypeScript val by robsimmons
tmcw avatar
chessTime
@tmcw
Script
An interactive, runnable TypeScript val by tmcw
tophtucker avatar
easyAQIExample
@tophtucker
Script
// The realtime Air Quality Index (AQI) for any location
andreterron avatar
InjectCodeOnValTownStream
@andreterron
Script
Injects the "Code on Val Town" ribbon on an HTML string stream Usage new InjectCodeOnValTownStream({ handle: "andre", name: "foo" }) - define which val to link to; new InjectCodeOnValTownStream() - infer the val from the call stack. Example: @andreterron/openable_stream import { InjectCodeOnValTownStream } from "https://esm.town/v/andreterron/InjectCodeOnValTownStream"; import { blob } from "https://esm.town/v/std/blob?v=11"; import { html } from "https://esm.town/v/stevekrouse/html?v=5"; export default async (req: Request): Promise<Response> => { await blob.set( "openable_test", `<h2>Hello world!</h2> <style>* { font-family: sans-serif }</style>`, ); const value = await blob.get("openable_test"); return html( value.body .pipeThrough(new TextDecoderStream()) .pipeThrough(new InjectCodeOnValTownStream()) .pipeThrough(new TextEncoderStream()), ); };
eagle251 avatar
githubFollowers
@eagle251
Script
An interactive, runnable TypeScript val by eagle251
postpostscript avatar
recommends
@postpostscript
Script
An interactive, runnable TypeScript val by postpostscript
janpaul123 avatar
valle_tmp_70427092421104433856545248978618
@janpaul123
HTTP (deprecated)
// Initialize sample stories and store them in blob storage
ejfox avatar
allvalsindex
@ejfox
HTTP
Forked from ejfox/allvals
janpaul123 avatar
valle_tmp_54185991019187464068579562776686
@janpaul123
HTTP (deprecated)
@jsxImportSource https://esm.sh/react
thatsmeadarsh avatar
star_a_github_repository_with_natural_language
@thatsmeadarsh
Script
Using OpenAI Assistant API, Composio to Star a Github Repo This is an example code of using Composio to star a github Repository by creating an AI Agent using OpenAI API Goal Enable OpenAI assistants to perform tasks like starring a repository on GitHub via natural language commands. Tools List of supported tools . FAQs How to get Composio API key? Open app.composio.dev and log in to your account. Then go to app.composio.dev/settings . Navigate to the API Keys -> Generate a new API key .
libo avatar
denoImportEx
@libo
Script
An interactive, runnable TypeScript val by libo
skyehersh avatar
dataTableScript
@skyehersh
Script
Forked from stevekrouse/dataTableScript