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.
axel_sb avatar
axel_sb
nameNationality
Script
// Predict the nationality of a name
0
rozek avatar
rozek
HTTP_StatusCode
HTTP
An interactive, runnable TypeScript val by rozek
0
willthereader avatar
willthereader
umbrellaReminder
Script
Forked from stevekrouse/umbrellaReminder
0
vtdocs avatar
vtdocs
saveFormData
Script
An interactive, runnable TypeScript val by vtdocs
0
curtcox avatar
curtcox
transmitter
HTTP
Forked from curtcox/echo
0
charmaine avatar
charmaine
valTownProPerks
Script
Other awesome perks I found for Val Town Pro hidden in docs, not covered on the Pricing Page . Updated: Oct 5, 2024. Subject to change. Custom Domains Ability to have custom domains Additional std/email Options Ability to email anyone via the to, cc, and bcc fields socialDataProxy to retrieve data from X 100 calls to SocialData every day, which will allow for calling it in an interval that runs once every 15 min
0
mdgrech avatar
mdgrech
umbrellaReminder
Cron
Forked from stevekrouse/umbrellaReminder
0
bennybowden avatar
bennybowden
coffeeBrewApp
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
rozek avatar
rozek
vtu_updateUser
Script
(documentation follows)
0
wilt avatar
wilt
serializeRequest
Script
// Adapted from https://stackoverflow.com/a/57451139
0
tomas_padrieza avatar
tomas_padrieza
sendEmail
Script
Simple function to provide the Email sending capability. The internal is limited to the Pro version only.
0
neverstew avatar
neverstew
superchargedQueryParams
Script
⚡ Supercharge your query params Tired of the old x=y query param limitations? Ever wished you could say x>y or x!=y as well? Now you can! Parse query params with superchargedQueryParams and you get an array of operations for each parameter instead: import { superchargeQueryParams } from "https://esm.town/v/neverstew/superchargeQueryParams"; console.log(superchargeQueryParams(new URL("https://example.com?a=b&c>d&e!=f&e>=g"))) // {"a":[{"eq":"b"}],"c":[{"gt":"d"}],"e":[{"ne":"f"},{"gte":"g"}]}
1
stevekrouse avatar
stevekrouse
curl
Script
curl Debug an HTTP request like curl --verbose Usage @stevekrouse.curl("https://example.com")
0
ton3m avatar
ton3m
WeatherAndTime
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
dvsj avatar
dvsj
GetWebsiteMetadata
HTTP
You know how when you paste a URL in Twitter or Slack it shows you a nice preview? This val gives you that data. Given a URL, this will return metadata about the website like title , description , imageURL , image as base64 etc. Sample input - paste this in your URL bar https://dvsj-GetWebsiteMetadata.web.val.run?targetURL=https://dvsj.in https://dvsj-GetWebsiteMetadata.web.val.run?targetURL=<your-target-url-here> Sample output: { status: 200, url: "https://dvsj.in", title: "Dav-is-here ➜", description: "Davis' not-so-secret stash", imgUrl: "https://www.dvsj.in/cover-picture.png", imgData: "data:image/png;base64,qwertyblahblah" } FAQ: Why is imgData sent when imgUrl is already present? Because you shouldn't hotlink images from 3rd parties. Store the base64 image on your server and use it in your app. It's unfair to use their server bandwidth and could be a security issue for you if they change the content of the link later.
2
usefulthink avatar
usefulthink
myApi
Script
An interactive, runnable TypeScript val by usefulthink
0