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.
LavaC avatar
sendToPushDeer
@LavaC
Script
An interactive, runnable TypeScript val by LavaC
neverstew avatar
testTesting
@neverstew
Script
Test testing An example showing how a simple test can be written using the deno test runner
xkonti avatar
gptApiTemplate
@xkonti
HTTP (deprecated)
Forked from xkonti/gameIdeaApi
pomdtr avatar
webdavServer
@pomdtr
Script
Webdav Manage your vals from a webdav client (ex: https://cyberduck.io/) ⚠️ some webdav operations are not supported, so support can vary between clients. Installation Click "Create Val" on the code block, and change it's type to http. import { basicAuth } from "https://esm.town/v/pomdtr/basicAuth"; import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken"; import { serveVals } from "https://esm.town/v/pomdtr/webdavServer"; export default basicAuth(serveVals, { verifyUser: (user) => { return verifyToken(user); }, }); Use a val town token as the username, and keep the password blank to authenticate.
zzz avatar
YoutubeSummary
@zzz
Script
// https://api.val.town/v1/express/zzz.rime?text=Hello%20Val%20Town
vladimyr avatar
licenseBadge
@vladimyr
HTTP (deprecated)
Val license badge generator Generates readme badge from SPDX-License-Identifier comment. ![](https://vladimyr-licensebadge.web.val.run/v/vladimyr/licenseBadge) Usage https://vladimyr-licensebadge.web.val.run/v/<author>/<val> Example https://vladimyr-licensebadge.web.val.run/v/vladimyr/licenseBadge https://vladimyr-licensebadge.web.val.run/v/vladimyr/valshot https://vladimyr-licensebadge.web.val.run/v/vladimyr/base256kitten
stevekrouse avatar
vid
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
ttodosi avatar
whatDoYouThinkOfItSoFar
@ttodosi
Cron
Forked from edgeeffect/whatDoYouThinkOfItSoFar
liamdanielduffy avatar
REACT_DOM_MINIFIED_PT2
@liamdanielduffy
Script
// set by liamdanielduffy.buildReactDomMinified at 2023-06-01T12:04:43.610Z
alplune avatar
mathFact
@alplune
Script
An interactive, runnable TypeScript val by alplune
stevekrouse avatar
testThisExpressUrl
@stevekrouse
Express
An interactive, runnable TypeScript val by stevekrouse
xkonti avatar
htmlBuilder
@xkonti
Script
* Renders the provided tag into HTML string.
jdan avatar
regionalIndicatorOfLetter
@jdan
Script
String.fromCodePoint(@jdan.regionalIndicatorOfLetter("J")); // => 🇯
andreterron avatar
inferRequestVal
@andreterron
Script
An interactive, runnable TypeScript val by andreterron
nbbaier avatar
filterVals
@nbbaier
Script
filterVals This val exports a utility function that returns a list of all a user's val, filtered by a callback function. Example Get the names of all your private vals: import { filterVals } from "https://esm.town/v/nbbaier/filterVals"; const id = <user_id> const vals = await filterVals(id, (v) => v.privacy === "private") const privateValNames = vals.map(v => v.name);
karfau avatar
mainReference
@karfau
Script
Forked from stevekrouse/parentReference