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.
beigeCoral
yusukebe
beigeCoral
An interactive, runnable TypeScript val by yusukebe
fetchJSON_example
stevekrouse
fetchJSON_example
Remix of: vladimyr/fetchJSON_example
lucia_demo
pomdtr
lucia_demo
@jsxImportSource npm:hono/jsx
protected_website
pomdtr
protected_website
An interactive, runnable TypeScript val by pomdtr
oldstyle
easrng
oldstyle
oldstyle bring back the old @โ€‹import.syntax usage: import oldstyle from "https://esm.town/v/easrng/oldstyle"; const fn = await oldstyle` export default async () => { // import vals const fetchFns = [@std.fetch, @easrng.moduleFetch]; console.log( await Promise.all( fetchFns.map((fn) => fn("https://icanhazip.com").then((res) => res.text()), ), ), ); // get environment variables with @me.secrets console.log(@me.secrets.FORCE_COLOR); // update vals console.log(@easrng.counter++); }; // you don't have to have an export btw `; fn();
valshot
vladimyr
valshot
Val Shot Generate val source code screenshot using sourcecodeshots.com โš ๏ธ This service is offered for personal use under a reasonable usage policy as stated here: https://sourcecodeshots.com/docs ๐Ÿ“ฃ Special thanks to @pomdtr for their help and contributions! Usage https://vladimyr-valshot.web.val.run/v/<author>/<val> Example https://vladimyr-valshot.web.val.run/v/vladimyr/valshot https://vladimyr-valshot.web.val.run/v/pomdtr/readme
jsr2gh
vladimyr
jsr2gh
jsr2gh Redirect to jsr package's GitHub repository page, like vladimyr-jsr2gh.web.val.run/@luca/flag Usage https://vladimyr-jsr2gh.web.val.run/<scope>/<name> Example https://vladimyr-jsr2gh.web.val.run/@luca/flag https://vladimyr-jsr2gh.web.val.run/@std/assert
libbuffer
vladimyr
libbuffer
// SPDX-License-Identifier: 0BSD
base256kitten
vladimyr
base256kitten
// SPDX-License-Identifier: AGPL-3.0-or-later
authIdUserGuide
postpostscript
authIdUserGuide
authIdUserGuide: steps necessary to sign in as you to HTTP vals which support this pattern Required Val: @[your username/authId Fork @postpostscript/authId Required Val: @[your username/jwks Setup Fork @postpostscript/jwks Set JWKS Environment Variables Go to https://postpostscript-generatejwksenv.web.val.run/?prefix=JWKS Follow the steps there with the prefix "JWKS" Test it out! Go to this val's endpoint Enter your username and click "Go to Your Sign In Page" You are now on your sign in page that you completely control ! Click "Send Sign In Link to My Email" Check for an email with the subject line "Sign In Request" and click the "Sign In" link Review the permissions that the val has asked for. The only token scope that is currently required is "@[your username]/authId/id". If a val has requested any others, you may optionally accept them here Click "Provide Access" You are now signed in!
MyFooter
postpostscript
MyFooter
@postpostscript/MyFooter: my footer component which shares random vals I've liked!
ProfileImage
postpostscript
ProfileImage
An interactive, runnable TypeScript val by postpostscript
sudoku_solver_brute_force
saolsen
sudoku_solver_brute_force
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
pathAsScope
postpostscript
pathAsScope
tests: @postpostscript/pathAsScopeTest
basicAuthV2
pomdtr
basicAuthV2
An interactive, runnable TypeScript val by pomdtr
lucia_sqlite
pomdtr
lucia_sqlite
An interactive, runnable TypeScript val by pomdtr
โ€ฆ
375
โ€ฆ
Next