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.
taras avatar
markdown_download
@taras
HTTP (deprecated)
Forked from taras/scrape2md
saolsen avatar
sudoku_solver_brute_force
@saolsen
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
pomdtr avatar
val_town_by_example_parse
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
janpaul123 avatar
valle_tmp_137659959713258178037932973670666
@janpaul123
HTTP (deprecated)
// This script will respond with a basic HTML page, including styled content, using the built-in Response class in TypeScript.
joey avatar
BlobArray
@joey
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"));
icy avatar
isMyWebsiteDown
@icy
Cron
Forked from andreterron/isMyWebsiteDown
maxjoygit avatar
handler
@maxjoygit
HTTP (deprecated)
Forked from tmcw/honoExample
postpostscript avatar
apiProxy
@postpostscript
HTTP (deprecated)
An interactive, runnable TypeScript val by postpostscript
nbbaier avatar
countTanaNodes
@nbbaier
Script
Count Tana Nodes This is an express endpoint used in a Tana.inc commands to count children of a node sent in the request. I've also created a Tana template that includes the two commands.
stevekrouse avatar
exampleSQLiteAdd
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
wilt avatar
createQdrantCollection
@wilt
Script
* Create a new Qdrant collection in an existing cluster with the given name * Uses recommended values for OpenAPI embeddings
stevekrouse avatar
emailExample
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
anotherjesse avatar
restfulJsonBlobApi
@anotherjesse
HTTP
// This val creates a RESTful API for storing JSON blobs using Val Town's blob storage.
cjpais avatar
getWeatherForecast
@cjpais
HTTP (deprecated)
Forked from jamiedubs/weatherInCity
gueejla avatar
mathemagic
@gueejla
HTTP (deprecated)
UI for mathematical visualizations and calculations
rafter avatar
cityLookup
@rafter
Script
// Cities named Brooklyn