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.
dlisboa avatar
dlisboa
easyAQIExample
Script
An interactive, runnable TypeScript val by dlisboa
0
danny avatar
danny
nasaAPOD
Script
Forked from iBrokeit/nasaAPOD
0
pomdtr avatar
pomdtr
raw
HTTP
Fetch the source of a val This val was created before the introduction of https://esm.town Usage curl https://pomdtr-raw.web.val.run/v/<author>/<name>.<extension>[?v=<version>] To see the code of this val, use https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts Examples Fetching the val code $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.tsx You can also use js , jsx and ts extension (only the content-type change, there is no transpilation). Fetching private val Pass an api token as an username $ curl "https://<token>@pomdtr-raw.web.val.run/v/pomdtr/privateVal.ts" Fetching the val README $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.md Getting an image $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.png Fetching a specific version of a val $ curl https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts?v=66 You need to be authenticated to use this method. Fetching the val metadata $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.json Running vals locally using Deno Create a new val.ts file referencing the @pomdtr.add import { add } from "https://pomdtr-raw.web.val.run/v/pomdtr/add.ts"; console.log(add(1, 2)); then use deno run $ deno run ./val.ts 3 If you val accept a request and return a response, you can pass it to Deno.Serve to run it locally! import {raw} from "https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts"; Deno.serve(raw); If your val is private, you can set the DENO_AUTH_TOKENS env. DENO_AUTH_TOKENS=<val-town-token>@pomdtr-raw.web.val.run deno run val.ts
4
stevekrouse avatar
stevekrouse
sendPDF
Script
An interactive, runnable TypeScript val by stevekrouse
3
U9G avatar
U9G
imdb_title
Script
An interactive, runnable TypeScript val by U9G
0
Love avatar
Love
versatileWhiteJay
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
willthereader avatar
willthereader
InventionDetailstoJSONConverter
HTTP
@jsxImportSource https://esm.sh/react
0
tempdev avatar
tempdev
primewire
Script
An interactive, runnable TypeScript val by tempdev
0
janpaul123 avatar
janpaul123
valle_tmp_305701972711345937273198924748763
HTTP
// This val will respond with a colorful and fun HTML page
0
stevekrouse avatar
stevekrouse
unserializeableLogEx
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
code_search_is_easy
HTTP
Forked from pomdtr/code_search_is_easy
0
noartem avatar
noartem
fetchGHRepoInfo
Script
An interactive, runnable TypeScript val by noartem
0
artivilla avatar
artivilla
slothdaobot
HTTP
SlothDAObot Allow your discord guild to run the following actions in their own channels: /links --2 to print a list of links in the last 2 weeks /summary --2 to print a summary of all the content shared in the last 2 weeks How to deploy Create a new discord bot new appplication: https://discord.com/developers/applications Under applications > OAuth2 , header OAuth2 URL Generator , select Bot Under Bot Permissions , select all options that are relevant (see example for this bot below) Copy Generated URL from the bottom of the page and open and install for your guild/community. Note, the permissions are not saved on the page upon refreashing the page.
0
pncumhsk avatar
pncumhsk
get
Script
An interactive, runnable TypeScript val by pncumhsk
0
janpaul123 avatar
janpaul123
valle_tmp_86669542161959955391274329473221
HTTP
// Function to initialize the stories in blob storage
0
charles_heese avatar
charles_heese
blushGorilla
Cron
// Fetches a random joke.
0