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.
clayton avatar
bggTest
@clayton
Script
An interactive, runnable TypeScript val by clayton
fgeierst avatar
getMunichSwimCapacit
@fgeierst
Script
An interactive, runnable TypeScript val by fgeierst
neverstew avatar
preactTest
@neverstew
HTTP (deprecated)
Forked from tmcw/preactTest
jdan avatar
grimPinkLimpet
@jdan
HTTP
// This approach will use the Notion API to update a block's color.
cro avatar
messages2
@cro
Script
Forked from stevekrouse/messages2
stevekrouse avatar
openai
@stevekrouse
Script
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);
cbf avatar
starWars
@cbf
Script
// Explore the Star Wars universe, from StarWarsAPI
veddevv avatar
snakeclone
@veddevv
HTTP
Snake clone with effects.
stevekrouse avatar
plotLinkeDOMSRRExample
@stevekrouse
HTTP (deprecated)
Forked from fil/beckerBarley
janpaul123 avatar
valle_tmp_0849921550869434716277180134862967
@janpaul123
HTTP (deprecated)
// Import the required modules
demo avatar
discordInteractionHook
@demo
Script
An interactive, runnable TypeScript val by demo
pomdtr avatar
invoice_basic_theme
@pomdtr
Script
@jsxImportSource npm:preact
janpaul123 avatar
getValCode
@janpaul123
Cron
Forked from janpaul123/indexValsNeon
dglazkov avatar
discordBot
@dglazkov
Script
A simple Discord Bot scaffolding, a slight rev on the one in the valtown guide . The discordBot function takes in an object where each key is a Discord command and the value is a function to handle the command. If the function returns a Promise , it will be handled as a deferred interaction with a followup message . Usage: import { discordBot } from "https://esm.town/v/dglazkov/discordBot"; const echo = async (data) => { await new Promise((r) => setTimeout(r, 5000)); return { type: 4, data: { content: data.data.options[0].value, }, }; }; export default discordBot({ ping: () => ({ type: 4, data: { content: `Pong! It is ${new Date()}`, }, }) echo, });
paolobrasolin avatar
tacUrlToBibtex
@paolobrasolin
Script
An interactive, runnable TypeScript val by paolobrasolin
andrew avatar
CastleWarsState
@andrew
Script
// let's just focus on the state for a single player