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.
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
svenlaa avatar
svenlaa
labLogin
HTTP
Forked from todepond/labLogin
0
mikaello avatar
mikaello
mortgageDeductionCalculator
HTTP
Calculator to see what the real rent on your mortgage is when calculating the income deduction, to make it easier to compare this rent to other rents.
0
trcl avatar
trcl
queryParams
HTTP
Forked from neverstew/queryParams
0
pomdtr avatar
pomdtr
serve_blobs
HTTP
Serve prefixed blobs. Usage import { serveBlobs } from "https://esm.town/v/pomdtr/serve_blobs" export default serveBlobs({ root: "public/" }) All your blobs prefixed by public/ will be publicly accessible. Ex: Go to https://pomdtr-public.web.val.run/example.json to view the blob public/example.json from my account.
3
stevekrouse avatar
stevekrouse
dateMeNotionDatabase
Script
An interactive, runnable TypeScript val by stevekrouse
0
flafi87 avatar
flafi87
wunderground_influx_upload
Cron
An interactive, runnable TypeScript val by flafi87
0
janpaul123 avatar
janpaul123
valle_tmp_00064030846966756093391421685546172
HTTP
// This val serves an HTML page with an input field to enter a name and greets the user when the form is submitted.
0