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.
tmcw avatar
tmcw
nhttpExample
HTTP
nhttp example This uses the tiny nhttp framework with the Val Town Web API . New frameworks like nhttp works really well with our system because they rely on the standard Request & Response objects! Server examples Hono Peko Itty Router Nhttp
0
dotim avatar
dotim
tempo
Script
An interactive, runnable TypeScript val by dotim
0
horatiothomas avatar
horatiothomas
dream_interpreter
Cron
interpret your dream
1
stevekrouse avatar
stevekrouse
nanoid
Script
Nano Id Function Usage @stevekrouse.nanoid() // Returns something like "MRRdswxjEph4sDiuEzlBM" Example: https://www.val.town/v/stevekrouse.exampleNanoId
0
nimalu avatar
nimalu
messageMe
Script
An interactive, runnable TypeScript val by nimalu
0
argimko avatar
argimko
md_links_resolver
HTTP
I have some MD-text with links that does HTTP-redirects. I need app that replace all links with its origins.
0
just_be avatar
just_be
hi
HTTP
An interactive, runnable TypeScript val by just_be
0
aazad avatar
aazad
YoutubeSearchApp
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
easrng avatar
easrng
alias
Script
Forked from neverstew/alias
0
stevekrouse avatar
stevekrouse
stripHTML
Script
Strip HTML Remove HTML tags from a string by parsing the HTML. There are certainly faster ways of doing this, ie html.replace(/<\/[^>]+(>|$)/g, "") // source https://stackoverflow.com/a/5002161 but this way is likely the most correct in that you're using a proper HTML parser.
1
tmcw avatar
tmcw
httpMockingExample
HTTP
HTTP Val Mocking example This is an example of mocking an HTTP val. Let's say that you're developing a val that responds to a POST request. That's tricky to debug and develop in the Browser preview tab, which just shows a GET request. But you can do it, because with web-standard Request & Response objects, requests and responses are values, and we can create those values ourselves.
1
samjb123 avatar
samjb123
umbrellaReminder
Cron
Forked from stevekrouse/umbrellaReminder
0
neverstew avatar
neverstew
renderFormAndSaveData
HTTP
Forked from vtdocs/renderFormAndSaveData
1
stevekrouse avatar
stevekrouse
cors_example_backend
HTTP
Forked from stevekrouse/cors_example
0
yawnxyz avatar
yawnxyz
env
Script
This is used to load .env secrets from either a Node or a Deno environment. This is used for projects converted to Node projects with dnt — so you can use valtown in your Node projects!
0
singpolyma avatar
singpolyma
sendxmppapi
HTTP
Simple API for sending a message over XMPP to any Jabber ID on the federated network. For a wrapper to use in vals see https://www.val.town/v/singpolyma/sendxmpp await fetch("https://singpolyma-sendxmppapi.web.val.run", { method: "POST", body: JSON.stringify({ target: "someone@example.com", body: "Hello!" }) })
0