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.
kalebts avatar
pandadocTestWebhookTarget
@kalebts
HTTP (deprecated)
An interactive, runnable TypeScript val by kalebts
curtcox avatar
message_processor
@curtcox
Script
An interactive, runnable TypeScript val by curtcox
stevekrouse avatar
umbrellaReminder
@stevekrouse
Cron
☔️ Umbrella reminder if there's rain today Setup Fork this val 👉 https://val.town/v/stevekrouse.umbrellaReminder/fork Customize the location (line 8). You can supply any free-form description of a location. ⚠️ Only works for US-based locations (where weather.gov covers). How it works Geocodes an free-form description of a location to latitude and longitude – @stevekrouse.nominatimSearch Converts a latitude and longitude to weather.gov grid – @stevekrouse.weatherGovGrid Gets the hourly forecast for that grid Filters the forecast for periods that are today and >30% chance of rain If there are any, it formats them appropriately, and sends me an email
lxmrc avatar
TodoApp
@lxmrc
HTTP (deprecated)
Forked from stevekrouse/TodoApp
vtdocs avatar
steveGithubStars
@vtdocs
Script
An interactive, runnable TypeScript val by vtdocs
saolsen avatar
qstash
@saolsen
Script
Upstash qstash client for vals. Lets you publish and receive qstash messages in vals. To use, set up qstash on Upstash and set the environment variables. QSTASH_TOKEN QSTASH_CURRENT_SIGNING_KEY QSTASH_NEXT_SIGNING_KEY Calls are also traced via https://www.val.town/v/saolsen/tracing so if you use that library you will see linked spans between the publish call and the receive call. For an example of how to use it see https://www.val.town/v/saolsen/try_qstash_publish and https://www.val.town/v/saolsen/try_qstash_receive.
janpaul123 avatar
valle_tmp_1383961774625823777944450091493644
@janpaul123
HTTP (deprecated)
// This code will create a simple Hacker News clone with 30 fake sample stories,
hepuffin avatar
starWars
@hepuffin
Script
// Explore the Star Wars universe, from StarWarsAPI
stevekrouse avatar
mutateTestState
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
aretrace avatar
clientOnly
@aretrace
Script
thx Joshua Comeau!
janpaul123 avatar
valle_tmp_140068690648343496787358158586876
@janpaul123
HTTP (deprecated)
@jsxImportSource https://esm.sh/react
stevekrouse avatar
twitterAlert
@stevekrouse
Cron
Twitter 𝕏 keyword Alerts Custom notifications for when you, your company, or anything you care about is mentioned on Twitter. 1. Authentication You'll need a Twitter Bearer Token. Follow these instructions to get one. Unfortunately it costs $100 / month to have a Basic Twitter Developer account. If you subscribe to Val Town Pro, I can let you "borrow" my token. Just comment on this val and I'll hook you up. 2. Query Change the query variable for what you want to get notified for. You can use Twitter's search operators to customize your query, for some collection of keywords, filtering out others, and much more! 3. Notification Below I'm sending these mentions to a private channel in our company Discord, but you can customize that to whatever you want, @std/email, Slack, Telegram, whatever. TODO [x] ~Filter out retweets. We've long wanted to filter these out. Should be a quick fix if anyone wants to send me a PR :)~ Completed by @sumukh
janpaul123 avatar
valle_tmp_1112761154422132706439156901497722
@janpaul123
HTTP (deprecated)
// Initialize sample stories and store them in blob storage
roadlabs avatar
valledrawclient
@roadlabs
Script
Forked from janpaul123/valledrawclient
maxmix avatar
githubFollowers
@maxmix
Script
An interactive, runnable TypeScript val by maxmix
vandyand avatar
rateArticleRelevance
@vandyand
Script
Forked from iakovos/rateArticleRelevance