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.
sun avatar
sun
Mauritius
Script
An interactive, runnable TypeScript val by sun
0
iamseeley avatar
iamseeley
aquamarineTurtle
HTTP
Forked from iamseeley/resumeHandler
0
tmcw avatar
tmcw
tell
Script
An interactive, runnable TypeScript val by tmcw
0
jxnblk avatar
jxnblk
useLocalStorage
Script
An interactive, runnable TypeScript val by jxnblk
0
Bella_s avatar
Bella_s
glowingText
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
mattx avatar
mattx
scrape_gradio_data
Script
scrape_gradio_data Scrapes the gradio_config object from Gradio sites/spaces. Most useful when pointed at a gradio site with lots of static data like the Open LLM Leaderboard
0
bao avatar
bao
notionSiteRss
HTTP
Generate an RSS feed for your Notion site. Prerequisite: the articles/posts needs to be in a Notion database. Create a Notion integration in http://notion.so/profile/integrations Go to the Notion database -> click ••• from top right -> Connections -> Connect to, select the integration from last step Fork this val Set up your NOTION_DATABASE_ID and NOTION_API_TOKEN in: https://www.val.town/settings/environment-variables Update the code to customize with your database properties (look out for "Customize based on your database") Share the RSS url
1
svenlaa avatar
svenlaa
labLoginMigrations
Script
// await sqlite.execute(`
0
nbbaier avatar
nbbaier
sentryTunnel
Script
An interactive, runnable TypeScript val by nbbaier
1
stevekrouse avatar
stevekrouse
falSDXLExample
HTTP
Forked from isidentical/falSDXLExample
0
rlesser avatar
rlesser
typeUtils
Script
// Based on https://spin.atomicobject.com/typescript-flexible-nominal-typing/
0
envl avatar
envl
anyjs
Script
An interactive, runnable TypeScript val by envl
0
sammeltassen avatar
sammeltassen
allmaps
HTTP
Random Maps API This val returns one or more random rows from a SQLite database as a JSON array. Each item represents a digitised map from a collection and contains the following properties: { // SQLite identifier "id": 70607, // Slug for the organisation "organizationId": "lmec", // Title of the map "title": "A topographical map of the northn. part of New York Island, exhibiting the plan of Fort Washington, now Fort Knyphausen, with the rebels lines to the southward, which were forced by the troops under the command of the Rt. Honble. Earl Percy, on the 16th Novr. 1776, and survey'd immediately after by order of his Lordship", // IIIF Presentation Manifest URL "manifestId": "https://collections.leventhalmap.org/search/commonwealth:9s161881v/manifest", // IIIF Image URL (first image in the manifest) "imageId": "https://iiif.digitalcommonwealth.org/iiif/2/commonwealth:9s1618824" } The val returns a single map by default. You can change this with the following parameters: count=100 Request a specific number of maps (max 1000) org=lmec Request maps from a specific institution For example: https://sammeltassen-allmaps.web.val.run/?count=100&org=lmec The val is used to offer maps to new users of Allmaps Editor . The scrapers used to gather the source data can be found here .
0
saolsen avatar
saolsen
sudoku_solver_brute_force
Script
Brute Force Sudoku Solver Solves Sudoku puzzles via backtracking search. Pass in a 9x9 Sudoku puzzle array (of arrays) with 0's for empty slots. Returns a solved puzzle or null if the puzzle can't be solved. Example example_val
0
joey avatar
joey
BlobArray
Script
Blob Array Create an array as a Database, instantly! Just create a new val for your array: import { BlobArray } from "https://esm.town/v/joey/BlobArray"; type User = { email: string }; // specify the type inside the TS generic <> to define the type of your array export let myUserArray = BlobArray<User>("my-user-array"); Now import it and start using it in your vals! import { myUserArray } from "https://esm.town/v/joey/myUserArray"; // overwrite the entire array await myUserArray.set([{ email: "user1@gmail.com" }, { email: "user2@yahoo.com" }]); // get all the entries in your array const allUsers = await myUserArray.get(); // call any array method you want, just use "await" await myUserArray.push({ email: "johndoe@gmail.com" }); const gmailUsers = await myUserArray.filter(u => u.email.includes("@gmail.com"));
0
janpaul123 avatar
janpaul123
valle_tmp_137659959713258178037932973670666
HTTP
// This script will respond with a basic HTML page, including styled content, using the built-in Response class in TypeScript.
0