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.
openai
stevekrouse
openai
OpenAI ChatGPT helper function This val uses your OpenAI token if you have one, and the @std/openai if not, so it provides limited OpenAI usage for free. import { chat } from "https://esm.town/v/stevekrouse/openai"; const { content } = await chat("Hello, GPT!"); console.log(content); import { chat } from "https://esm.town/v/stevekrouse/openai"; const { content } = await chat( [ { role: "system", content: "You are Alan Kay" }, { role: "user", content: "What is the real computer revolution?"} ], { max_tokens: 50, model: "gpt-4o" } ); console.log(content);
dailyDadJoke
viniciuscainelli
dailyDadJoke
Remix of: stevekrouse/dailyDadJoke
bookReservationOnResy
kmb
bookReservationOnResy
Remix of: alp/bookReservationOnResy
roseRoundworm
arushee4
roseRoundworm
// Fetches a random joke.
blushGorilla
charles_heese
blushGorilla
// Fetches a random joke.
extract_opengraph_data
cotr
extract_opengraph_data
An interactive, runnable TypeScript val by cotr
weatherGPT
seflless
weatherGPT
Remix of: stevekrouse/weatherGPT
htmlExample
mmabrouk
htmlExample
Remix of: tmcw/htmlExample
donations
byjp
donations
Donations that people have declared as being on my behalf.
grayDormouse
natalyazheng1
grayDormouse
// Fetches a random joke.
getDependencyGraph
rlesser
getDependencyGraph
Dependency Graph Explorer This val allows for dependency graph exploration. getDependencyGraph Iteratively explores the dependency graph of a val and its children, returning the results. arguments valUrlOrSlug string - the full val url or slug ( author/name ) of the val returns An object containing: dependencyMap Map<string, string[]> - A map of vals (by id) to dependencies (vals or non-val id) moduleMap Map<string, Module> - A map of modules (by val or non-val id) to module information. Module object contains: slug string - the slug of the module, how it should be displayed visually id string - the id of the module, corresponding to how it's displayed in the code, normally as a url. websiteUrl string - the website link for the module, a normally a link to either valtown or npm. category string|null - the category of the module, such as "valtown", "esm.sh", or "npm". Those without a predefined category are in null.
useTheLibraryThatNeedsValidation
maxm
useTheLibraryThatNeedsValidation
An interactive, runnable TypeScript val by maxm
libraryThatNeedsValidation
maxm
libraryThatNeedsValidation
An interactive, runnable TypeScript val by maxm
modifyIframeResponse
nbbaier
modifyIframeResponse
Remix of: andreterron/codeOnValTown
sqlite_explorer
stevekrouse
sqlite_explorer
An interactive, runnable TypeScript val by stevekrouse
echo_http
arrudaricardo
echo_http
An interactive, runnable TypeScript val by arrudaricardo