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.
insecureSSLCertExample
stevekrouse
insecureSSLCertExample
This is an example call of @stevekrouse/insecureFetch
password_auth_example
pomdtr
password_auth_example
valtownByExample
pomdtr
valtownByExample
Val town by example Usage Simple Example To add an example, just create a val. The val should start with a JSDoc style multi line comment that describes the example: /** * @title HTTP server: Hello World * @description An example of a HTTP server that serves a "Hello World" message. */ // this comment will be displayed on the left export const server = () => new Response("Hello world!") The title is required. Then, you can write the code. Code can be prefixed with a comment that describes the code. The comment will be rendered next to the code in the example page. Make sure your val is public, then go to https://pomdtr-val_town_by_example.web.val.run/v/<your-username>/<your-val> Using multiple vals You can add another val to your example by adding an @include directive /** * @title HTTP server: Hello World * @description An example of a HTTP server that serves a "Hello World" message. * @include pomdtr/secondary_val */ See @pomdtr/react_example Adding external resources to your example You can attach an external link to your val by using the @resource directive. External resources are specified using a markdown link. /** * @title HTTP server: Hello World * @description An example of a HTTP server that serves a "Hello World" message. * @resource [Val Town Docs](https://docs.val.town) **/ Adding examples to the homepage Just add your val in @pomdtr/val_town_by_example_toc
dependencies
pomdtr
dependencies
An interactive, runnable TypeScript val by pomdtr
react_example
pomdtr
react_example
* @title Running React on the Client * @description Vals can also be used to host client-side code! * @preview https://pomdtr-react_example_server.web.val.run * @include pomdtr/react_example_client * @resource [React - Quick Start](https://react.dev/learn)
openaiFineTuneData
stevekrouse
openaiFineTuneData
An interactive, runnable TypeScript val by stevekrouse
openaiUploadFile
stevekrouse
openaiUploadFile
An interactive, runnable TypeScript val by stevekrouse
val_town_by_example_parse
pomdtr
val_town_by_example_parse
An interactive, runnable TypeScript val by pomdtr
isMyWebsiteDown
didier
isMyWebsiteDown
Remix of: andreterron/isMyWebsiteDown
api
pomdtr
api
An interactive, runnable TypeScript val by pomdtr
api
zeroftdev
api
Remix of: pomdtr/api
limeDeer
yawnxyz
limeDeer
this is used by a bunch of things as a "ping" so don't archive or delete it lol
popcorn
pomdtr
popcorn
An interactive, runnable TypeScript val by pomdtr
goldTyrannosaurus
archer1121
goldTyrannosaurus
// Fetches a random joke.
popcorn_types
pomdtr
popcorn_types
An interactive, runnable TypeScript val by pomdtr
get_gemini_models
cotr
get_gemini_models
List all of the Gemini AI models: https://ai.google.dev/tutorials/rest_quickstart#list_models