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.
pomdtr avatar
pomdtr
valToString
Script
An interactive, runnable TypeScript val by pomdtr
0
adagradschool avatar
adagradschool
stirringCoffeeDonkey
HTTP
An interactive, runnable TypeScript val by adagradschool
0
stevekrouse avatar
stevekrouse
dateMeProfiles
Script
An interactive, runnable TypeScript val by stevekrouse
0
SampurnaOdari avatar
SampurnaOdari
valentine
HTTP
Forked from Prashanta_q2/valentine
0
debbie avatar
debbie
industriousPinkMongoose
Email
Forked from stevekrouse/forwarder
0
dhvanil avatar
dhvanil
web_uVEjrAHlZH
HTTP
An interactive, runnable TypeScript val by dhvanil
0
stevekrouse avatar
stevekrouse
sum
Script
An interactive, runnable TypeScript val by stevekrouse
0
patrick_kw_chiu avatar
patrick_kw_chiu
readMediumPosts
Script
Demo of mongo-http NPM package Great for serverless apps that can only use HTTP or have a hard time persisting database connection See more at the Git Repo and the Medium tutorial ! What this demo does: Read the latest Chinese Medium posts with categories "javascript" or "typescript"
1
tfayyaz avatar
tfayyaz
react_framer_motion_client
HTTP
Forked from tfayyaz/react_tldraw
1
janpaul123 avatar
janpaul123
valle_tmp_857735669745683227119074105407037
HTTP
This code sets up a simple comment box system. * It leverages Deno's blob storage for persistence, * and renders an HTML form to accept new comments, * while displaying all existing comments. * TailwindCSS is used to style the HTML elements.
0
janpaul123 avatar
janpaul123
valle_tmp_679889573882008811461733353061443
HTTP
This code sets up a simple comment box system with Tailwind CSS styling for a prettier interface. * Leverages Deno's blob storage for persistence, * Renders an HTML form to accept new comments, * and displays all existing comments.
0
temptemp avatar
temptemp
elegantJadeParrotfish
HTTP
@jsxImportSource npm:hono@3/jsx
0
dtang18 avatar
dtang18
willumarrymeoratleastbemyvalentine
HTTP
Forked from mewtru/valentine
0
jlast avatar
jlast
visitMetabase
Cron
An interactive, runnable TypeScript val by jlast
1
yawnxyz avatar
yawnxyz
valwriter
HTTP
Forked from stevekrouse/valwriter
0
jxnblk avatar
jxnblk
valTownBadge
Script
Add a Val Town badge to your own HTTP vals Option 1: Middleware Import the middleware from https://www.val.town/v/jxnblk/valTownBadgeMiddleware Wrap your HTML request handler with middleware, and pass import.meta.url to link to your val import wrapper from "https://esm.town/v/jxnblk/valTownBadgeMiddleware"; async function handler(req: Request): Promise<Response> { const html = ` <h1>Hello, world</h1> `; return new Response(html, { headers: { "Content-Type": "text/html; charset=utf-8", }, }); } export default wrapper(handler, import.meta.url); Option 2: HTML string generator Get the HTML string for the badge using https://www.val.town/v/jxnblk/valTownBadge Add the HTML to your response's HTML string wherever you like import valTownBadge from "https://esm.town/v/jxnblk/valTownBadge"; export default async function(req: Request): Promise<Response> { const badge = valTownBadge(import.meta.url); const html = ` <h1>Hello, world</h1> ${badge} `; return new Response(html, { headers: { "Content-Type": "text/html; charset=utf-8", }, }); } Manual options You can also edit the snippet below to manually add the badge in HTML <a href="https://www.val.town/v/jxnblk/valTownBadgeExample" target="_blank" style="text-decoration:none;color:inherit"> <img src="https://jxnblk-valtownbadgesvg.web.val.run/" width="160" height="160"> </a> Or markdown: [![View source on Val Town](https://jxnblk-valtownbadgesvg.web.val.run/)](https://www.val.town/v/jxnblk/valTownBadgeExample) Vals used to create this https://www.val.town/v/jxnblk/valTownBadgeSVG SVG badge image service https://www.val.town/v/jxnblk/valTownLogotypeReact Val Town logo React component https://www.val.town/v/jxnblk/codeIconReact Code icon React component https://www.val.town/v/jxnblk/valTownBadge HTML generator that uses import.meta.url to create a link to your val https://www.val.town/v/jxnblk/valTownBadgeMiddleware Middleware to inject badge HTML in the lower right corner of your page
0