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.
stevekrouse avatar
stevekrouse
autoGPTPrompt
Script
// fork from https://github.com/Torantulino/Auto-GPT/blob/master/scripts/data/prompt.txt
0
stevekrouse avatar
stevekrouse
runGET
Script
An interactive, runnable TypeScript val by stevekrouse
0
gio avatar
gio
theHereTimes
HTTP
* This application creates "The Here Times", a map-based news aggregator. * It uses the Google Maps JavaScript API for map rendering, Geonames for location data, * and the NewsAPI for fetching news articles. * The app displays news for the top 12 most populous cities/neighborhoods in the current map view. * * We'll use the following approach: * 1. Use Google Maps JavaScript API for rendering the map * 2. Use Geonames API to get top 12 most populous cities within the map bounds * 3. Fetch news data from NewsAPI based on these locations * 4. Display news articles in a side drawer, only showing articles that contain the city's name in the title * 5. Place markers on the map for each location (exactly 12) * 6. Add a search bar to allow users to search for specific locations * 7. Recenter the map when a location is clicked or searched
0
stevekrouse avatar
stevekrouse
blogRSS
HTTP
Val Town Blog RSS Feed View live at: https://stevekrouse-blogRSS.web.val.run This val returns an RSS feed of the Val Town Blog . Architecture Fetch and parse the HTML of https://blog.val.town – @stevekrouse.valTownBlogJSON. Create an RSS string out of that array of blog objects – @stevekrouse.valTownBlogRSS. Expose an endpoint that returns that RSS , with appropriate content-type and cache headers – this val, @stevekrouse.blogRSS Notes This is very inefficient. It refetches and re-parses blog.val.town on every single request, modulo some caching via the headers. It would be much more efficient to cache the results of fetching and parsing the Val Town blog, and then only re-fetch it every 10 minutes or so. Instead of fetching and parsing HTML from super.so, we could get this same data from Notion's API, with a val like @stevekrouse.notionGetDatabase.
0
artem avatar
artem
telegramAudioMessageTranscription
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
rlesser avatar
rlesser
gfm
Script
Forked from pomdtr/gfm
1
dhvanil avatar
dhvanil
val_8EcZC9Yvm9
HTTP
An interactive, runnable TypeScript val by dhvanil
0
stevekrouse avatar
stevekrouse
modifyImage
Script
Code from https://deno.com/blog/build-image-resizing-api Useful for compressing an image before sending to chatgpt4v, for example
0
stevekrouse avatar
stevekrouse
twitterAPIDown
Script
// set by stevekrouse.checkIfTwitterAPIIsDown at 2023-05-09T17:45:30.441Z
1
yuval_dikerman avatar
yuval_dikerman
gpt3
HTTP
Forked from yuval_dikerman/catFact
0
dhvanil avatar
dhvanil
web_mqybI9ybHZ
HTTP
An interactive, runnable TypeScript val by dhvanil
0
oscarlaris avatar
oscarlaris
valentine
HTTP
Forked from mewtru/valentine
0
stevekrouse avatar
stevekrouse
todo_app
HTTP
@jsxImportSource https://esm.sh/react
0
janpaul123 avatar
janpaul123
valle_tmp_5806599353127410960201698264815
HTTP
An interactive, runnable TypeScript val by janpaul123
0
janpaul123 avatar
janpaul123
valle_tmp_168173191488171673357222933830397
HTTP
// This is a minimal formatter for JavaScript code using the Prettier library.
0
janpaul123 avatar
janpaul123
valle_tmp_4547105752081267370510807140603
HTTP
// This task can be best accomplished using HTML and CSS, which are not supported for code execution at the moment. To create a Wordle game with fun CSS elements, you can design the HTML structure to display the game board and input area for guesses, and then style it using creative CSS to achieve the desired look and feel.
0