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
jsonresumeEx
Script
An interactive, runnable TypeScript val by stevekrouse
0
iLegacyy avatar
iLegacyy
substantialChocolateSilverfish
HTTP
Forked from iLegacyy/valentine
0
willthereader avatar
willthereader
fizzBuzzTest
HTTP
Forked from willthereader/test_explorer
0
andreterron avatar
andreterron
png
Script
Playing with Pixels in JavaScript Programmatically generate PNG images, pixel by pixel! This val uses PNGLib and Val Town's Express API to create and host PNG images. It can be particularly useful if you want to dynamically generate an image – for any website or API that accepts png urls. Usage Copy and paste the code below or fork one of the examples Click the 🔒 lock to make your val public Visualize your image in via its Express endpoint: Open the [ ⋮ ] menu > Endpoints > Copy express endpoint // Code from @andreterron.hostpng_example let my_image = @andreterron.png({ width: 256, height: 256, }, (p) => { const w = p.width, h = p.height; // Create colors (red, green, blue, alpha) const white = p.color(255, 255, 255, 255); // PNG starts filled with the first color const black = p.color(0, 0, 0, 255); for (let y = 0; y < h; y++) { for (let x = 0; x < w; x++) { // Get the buffer index for this position let index = p.index(x, y); // Set the color for the specific pixel p.buffer[index] = (x * y) / (w * h) * 24 % 2 >= 1 ? black : white; } } }); Code from @andreterron.hostpng_example , and it generates this image: Other Examples @andreterron.gradient @andreterron.random_colors @andreterron.women_and_power
0
maxm avatar
maxm
simpleWikipediaInstantSearch
HTTP
Simple Wikipedia Instant Search A quick demo of getting fuzzy matching and instant search working on Val Town
2
janpaul123 avatar
janpaul123
valle_tmp_5929826613796463866074557935651
HTTP
// This val will serve a Wordle game implemented in HTML, CSS, and JavaScript.
0
jdan avatar
jdan
weatherOfLatLon
Script
An interactive, runnable TypeScript val by jdan
0
aleaf avatar
aleaf
arxivSourceZip
Script
An interactive, runnable TypeScript val by aleaf
0
ejfox avatar
ejfox
eldestBronzePtarmigan
HTTP
* This dating app allows users to upload photos of their bedside table and phone case. * It uses Val Town's SQLite for data persistence and blob storage for image uploads. * The app includes a simple matching algorithm based on common items in bedside tables.
0
maxm avatar
maxm
actuallyGoodEmojiSearch
HTTP
Forked from maxm/simpleWikipediaInstantSearch
2
stevedylandev avatar
stevedylandev
Upload_onchain_blobs_to_IPFS
Script
An interactive, runnable TypeScript val by stevedylandev
0
stevekrouse avatar
stevekrouse
happyLeapDay
Cron
An interactive, runnable TypeScript val by stevekrouse
0
Vikramhaking avatar
Vikramhaking
homeControlDevice
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
stevekrouse avatar
stevekrouse
gpt4TurboExample
Script
An interactive, runnable TypeScript val by stevekrouse
1
dhvanil avatar
dhvanil
val_rf0NeaYrZY
HTTP
An interactive, runnable TypeScript val by dhvanil
0
shawnbasquiat avatar
shawnbasquiat
resizeImageError
HTTP
// This val creates an image resizing service using the Cloudinary API.
1