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.
neverstew avatar
neverstew
slackReplyToMessage
Script
Forked from vtdocs/slackReplyToMessage
0
all avatar
all
killamix
HTTP
Forked from all/astuteIndigoGoldfish
0
stevekrouse avatar
stevekrouse
followings
Script
An interactive, runnable TypeScript val by stevekrouse
0
thomasatflexos avatar
thomasatflexos
redirect
Express (deprecated)
This is a handler for when Notion redirects during OAuth 2.0 workflow
0
taurusismagic avatar
taurusismagic
BestTime2post
HTTP
@jsxImportSource https://esm.sh/react@18.2.0
0
stevekrouse avatar
stevekrouse
apricotTurkey
Script
Forked from yawnxyz/apricotTurkey
0
yawnxyz avatar
yawnxyz
translator
HTTP
Forked from yawnxyz/voice
7
dhvanil avatar
dhvanil
val_7zpl8w4v8d
HTTP
An interactive, runnable TypeScript val by dhvanil
0
maxm avatar
maxm
transformEvalCode
Script
See: https://www.val.town/v/maxm/eval
0
stevekrouse avatar
stevekrouse
parentReference
Script
Forked from easrng/thisReference
1
awhitter avatar
awhitter
gemini_coder
HTTP
Forked from stevekrouse/gemini_coder
0
pomdtr avatar
pomdtr
playground
Script
Forked from easrng/playground
0
maxm avatar
maxm
emojiVectorEmbeddings
Script
// Initialize OpenAI client
0
substrate avatar
substrate
substrateBadge
HTTP
Forked from jxnblk/valTownBadge02
0
feb avatar
feb
zodSchemaPlayground
HTTP
Zod Schema to Typescript Playground A simple site to convert zod schema to typescript type definitions. The type getting converted will be the one returned in the body of the input, so make sure that you return the schema at the very end.
0
yawnxyz avatar
yawnxyz
diesel
Script
Diesel Diesel is a lightweight data manipulation library inspired by Tom Wright's Dasel, designed for easy querying and transformation of various data formats such as JSON, YAML, CSV, and TOML. It allows users to select, update, and delete data using a simple selector syntax. Heavily adapted from https://github.com/TomWright/dasel Features Multi-format Support : Works with JSON, YAML, CSV, and TOML. Dynamic Selectors : Use conditions to filter data dynamically. Function Support : Built-in functions for data manipulation (e.g., length, sum, avg). Easy Integration : Can be used in both Deno and Val Town environments. Usage import Diesel from "https://esm.town/v/yawnxyz/diesel"; async function main() { const jsonData = ` { "users": [ {"id": 1, "name": "Alice", "age": 30}, {"id": 2, "name": "Bob", "age": 25}, {"id": 3, "name": "Charlie", "age": 35} ], "settings": { "theme": "dark", "notifications": true } } `;**** const diesel = new Diesel(jsonData, 'json'); try { console.log("All data:", await diesel.select('')); console.log("All users:", await diesel.select('users')); console.log("First user's name:", await diesel.select('users.[0].name')); console.log("Users over 30:", await diesel.select('users.(age>30)')); await diesel.put('settings.theme', 'light'); console.log("Updated settings:", await diesel.select('settings')); // await diesel.delete('users.[1]'); // console.log("Users after deletion:", await diesel.select('users')); console.log("Data in YAML format:"); console.log(await diesel.convert('yaml')); console.log("Data in TOML format:"); console.log(await diesel.convert('toml')); console.log("Number of users:", await diesel.select('users.length()')); console.log("User names in uppercase:", await diesel.select('users.[*].name.toUpper()')); } catch (error) { console.error("An error occurred:", error); } } main(); Installation To use Diesel, simply import it in your Deno project as shown in the usage example. License This project is licensed under the MIT License.
0