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.
jamisonl avatar
obnoxiousAmaranthCamel
@jamisonl
HTTP
Forked from camajudson/handleDiscordInteraction
jdan avatar
myspaceCSS
@jdan
Script
An interactive, runnable TypeScript val by jdan
bwaidelich avatar
usdETH
@bwaidelich
Script
// Get the current price of Ethereum in US dollars
sigsegv avatar
usdGBP
@sigsegv
Script
// Convert 100 British pounds to US dollars
bohaska avatar
nationstatesSentimentAI
@bohaska
Cron
Automatically answers issues from NationStates using AI sentiment analysis, for free! Requires: Huggingface token (HF_TOKEN) for the sentiment analysis of options. Generate a read-only token at Huggingface after making an account to use. Email address (EMAIL) for user agent. Required as per NationStates ToS Autologin token (AUTOLOGIN) for logging into NationStates. See NationStates API docs for more info. Nation name (NATION_ID). Put your nation name, the one you use when you login to your account. Selects the option with the highest positivity score. Feel free to adapt the algorithm to your own tastes. See the Republic of Positivum for an example of this val in action.
tmcw avatar
iphoneTradeInValues
@tmcw
Script
This tracks the data produced by my iPhone trade-in values val .
tmcw avatar
trackIphoneTradein
@tmcw
Cron
Track iPhone trade-in prices iPhone trade in values - to trade phones back to Apple themselves - fluctuate over time , and eventually they no longer accept certain kinds of phones. You can still trade in an iPhone 7 - released in 2016 , about 6 years ago as of this writing. But no longer does an iPhone 6 have value back to Apple. This tracks those values - it runs every month and records prices to iphoneTradeInValues , which I'll visualize once there's some data.
andreterron avatar
usdETH
@andreterron
Script
// Get the current price of Ethereum in US dollars
jamisonl avatar
stuckIvoryParakeet
@jamisonl
HTTP
Forked from camajudson/handleDiscordInteraction
panphora avatar
btcPrice
@panphora
Cron
An interactive, runnable TypeScript val by panphora
iamseeley avatar
valcontributionchart
@iamseeley
HTTP (preview)
Forked from ejfox/valcontributionchart
stevekrouse avatar
discordWebhook
@stevekrouse
Script
Send a Discord message Send a message to a Discord channel from Val Town. It's useful for notifying your team or community when someone interesting happens, like a user signup, Stripe payment, mention on social media, etc. import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook"; await discordWebhook({ url: Deno.env.get("engDiscord"), content: "Hi from val town!", }); Example val: https://www.val.town/v/stevekrouse.discordWebhookEx Setup 1. Create a Discord Webhook Follow the instructions here: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks It really only takes 2 minutes. 2. Copy webhook URL Paste it into your secrets as discordWebhook . 3. Send a message! import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook"; await discordWebhook({ url: Deno.env.get("engDiscord"), content: "Hi from val town!", }); Example val: https://www.val.town/v/stevekrouse.discordWebhookEx
ghsaboias avatar
crypto_prices_info
@ghsaboias
Cron
Forked from flafi87/weather_forecast_in_the_morning
rwev avatar
polygonPriceOnWeekdayMsAgo
@rwev
Script
An interactive, runnable TypeScript val by rwev
stevekrouse avatar
discordWelcomedMembers
@stevekrouse
Script
// set at Thu May 02 2024 17:56:39 GMT+0000 (Coordinated Universal Time)
dosirak avatar
usdBTC
@dosirak
Script
An interactive, runnable TypeScript val by dosirak