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.
crsven avatar
crsven
refreshPoemWidget
Script
An interactive, runnable TypeScript val by crsven
0
kisen avatar
kisen
queryAQI
Script
An interactive, runnable TypeScript val by kisen
0
augustohp avatar
augustohp
CaptchaGetBalance
Script
Captcha Balance (Generic) Generic method /getBalance implemented by multiple Captcha providers: CapMonster Anti-Captcha NextCaptcha Usage example: import fetchBalanceFromCaptchaProvider from "https://esm.town/v/augustohp/CaptchaGetBalance"; const remainingBalance = await fetchBalanceFromCaptchaProvider(Deno.env.get("CAPMONSTER_KEY"), "capmonster");
0
neverstew avatar
neverstew
spotifyGetPlaylist
Script
Forked from stevekrouse/spotifyCreatePlaylist
0
arash2060 avatar
arash2060
VALLE
HTTP
Forked from janpaul123/VALLE
0
yawnxyz avatar
yawnxyz
lucia_middleware_vanilla
HTTP
Forked from stevekrouse/lucia_middleware_vanilla
0
tylergaw avatar
tylergaw
socialImage
HTTP
Simple image generator A bit of a toy image creator that can be used anywhere images can be, but is intended for social share images in og:image or twitter:image meta tags. Usage examples In a live web page Live example https://tylergaw-socialimageusage.web.val.run/ Live example Val https://www.val.town/v/tylergaw.socialImageUsage Code examples Default This will set the og:image of a web page to a png image of an orange 1200x600 pixel rectangle <meta property="og:image" content="https://tylergaw-socialimage.web.val.run/"> Works the same way as an embedded image <img src="https://tylergaw-socialimage.web.val.run/"> Customize with query parameters General note, some clients are more permissive with unencoded query params than others. It's best to encodeURIComponent for all params. Available params: bg : Sets the background color. Default orange . See Color format examples below for details color : Sets the background color. Default black . See Color format examples below for details w : Sets the width of the image. Default 1200 h : Sets the height of the image. Default 600 text : Sets the text displayed. Default Wellow horld <meta property="og:image" content="https://tylergaw-socialimage.web.val.run/?bg=pink&w=1000&h=400"> Color format examples bg and color parameters can any valid color that works with canvas fillStyle in hex, rgb(a), hsl(a), rrggbbaa, etc format. Note # must be encoded. Hex ?bg=%235f0ac7 rgb(a) ?bg=rgba(100,200,85,0.5) rrggbbaa ?bg=%23ff0095d1 hsl(a) ?bg=hsla(100,100%25,50%25,0.5)
2
stevekrouse avatar
stevekrouse
browserbaseUtils
Script
Forked from browserbase/browserbaseUtils
0
vladimyr avatar
vladimyr
podnews
Script
// import { fetch } from "https://esm.town/v/std/fetch?v=4";
0
iamseeley avatar
iamseeley
api
Script
Forked from pomdtr/api
0
ferruccio avatar
ferruccio
response
Script
An interactive, runnable TypeScript val by ferruccio
0
fil avatar
fil
musee_angers_activites_feed
HTTP
Convert a webpage into an ATOM feed, so I can see when there are new activities in the local museum. feed link: https://fil-musee_angers_activites_feed.web.val.run/
0
stevekrouse avatar
stevekrouse
getSqliteDateMeDocs
Script
// let docs = await getDocs();
0
tmcw avatar
tmcw
valTownApiExampleSearch
Script
Val Town API Search This demonstrates how to use the Val Town API to search for vals that mention "lodash".
0
jrmann100 avatar
jrmann100
tryPush
Script
An interactive, runnable TypeScript val by jrmann100
0
pomdtr avatar
pomdtr
ssr_router
HTTP
SSR Framework for val.town Usage The router map url paths to component vals. Component vals must export a React Component as their default export: export default function() { <h1>Hello World!</h1> } Optionally, you can define an handler next to your component, allowing you to handle query params or form inputs. Use the ctx.render function to pass props to your component. export const handler: Handler = (ctx) => { const url = new URL(ctx.req.url); const params = new URLSearchParams(url.search); return ctx.render({ name: params.get("name") }); }; export default function(props: {name?: string}) { <h1>Hello { name || "World }!</h1> }
0