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.
stevekrouse avatar
ntfy_example
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
stu43005 avatar
fetchTextWithEncoding
@stu43005
Script
An interactive, runnable TypeScript val by stu43005
stevekrouse avatar
f0_example
@stevekrouse
Script
file0 example https://www.file0.dev/ sets seem to take about 1s and gets about 200ms for a very small json object You'll need to set F0_SECRET_KEY in your environment variables for this to work. signup at https://www.file0.dev/ to get a key
stevekrouse avatar
testVTClient2
@stevekrouse
Script
// Forked from @stevekrouse.testsVTClient
just_be avatar
oura
@just_be
Script
An interactive, runnable TypeScript val by just_be
geltoob avatar
VALLE
@geltoob
HTTP (deprecated)
Forked from janpaul123/VALLE
zerovox avatar
readwiseReaderReadItemsRss
@zerovox
HTTP (deprecated)
Forked from maxm/rssFeedExample
stevekrouse avatar
VALLE
@stevekrouse
HTTP (deprecated)
Forked from janpaul123/VALLE
fab1an avatar
extractRandomWords
@fab1an
HTTP (deprecated)
An interactive, runnable TypeScript val by fab1an
keenanzucker avatar
reactClientDemo
@keenanzucker
HTTP (deprecated)
Forked from wilhelm/reactClientDemo
stevekrouse avatar
time
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
maxm avatar
stiffCoffeeLamprey
@maxm
Script
Forked from stevekrouse/resyBot
stevekrouse avatar
forwarder
@stevekrouse
Email
Forked from maas/forwarder
dthyresson avatar
ideas
@dthyresson
Script
Ideas Movie Mashup with AI - done! Bedtime Story genertator - done! Drum machine pattern from PDF maker Movie emoji plots: "Sure, here's a summarized plot of "Pretty in Pink" using only emoji, along with their explanations, including iconic scenes:" Sure, here's a summarized plot of "Pretty in Pink" using only emoji, along with their explanations, including iconic scenes: πŸ‘©β€πŸŽ€πŸ«πŸ‘—πŸ’”πŸ‘¦πŸ‘¨β€πŸ‘§πŸ“šπŸ‘ πŸ’ƒπŸŽΈβ€οΈπŸŽ©πŸŽΈπŸš—πŸŽ¨πŸ‘« 1. **πŸ‘©β€πŸŽ€ (Girl with Punk Hair)** - Andie, the main character, who has a unique and alternative style. 2. **🏫 (School)** - The high school setting where the story takes place. 3. **πŸ‘— (Dress)** - The pink prom dress that Andie makes for herself, representing her individuality. 4. **πŸ’” (Broken Heart)** - The heartbreaks and romantic tensions throughout the movie. 5. **πŸ‘¦ (Boy)** - Blane, the rich boy Andie falls for. 6. **πŸ‘¨β€πŸ‘§ (Father and Daughter)** - Andie's relationship with her supportive, but struggling father. 7. **πŸ“š (Books)** - The academic environment and high school dynamics. 8. **πŸ‘  (High-Heeled Shoe)** - The social divide between the rich "preppies" and the less affluent students. 9. **πŸ’ƒ (Dancer)** - The iconic prom scene. 10. **🎸 (Guitar)** - The music and band scenes, especially featuring Duckie. 11. **❀️ (Heart)** - The romantic plot and relationships. 12. **🎩 (Top Hat)** - Duckie's unique style and his memorable entrance at the prom. 13. **πŸš— (Car)** - Andie's car, which she often uses to get around. 14. **🎨 (Palette)** - Andie's creative and artistic side, including her job at the record store. 15. **πŸ‘« (Couple)** - The final pairing and resolution of romantic relationships.
pomdtr avatar
email_auth
@pomdtr
Script
Email Auth for Val Town ⚠️ Require a pro account (needed to send email to users) Usage Create an http server, and wrap it in the emailAuth middleware. import { emailAuth } from "https://esm.town/v/pomdtr/email_auth" import { verifyUserEmail } from "https://esm.town/v/pomdtr/verifyUserEmail" export default emailAuth((req) => { return new Response(`your mail is ${req.headers.get("X-User-Email")}`); }, { verifyEmail: verifyUserEmail }); πŸ’‘ If you do not want to put your email in clear text, just move it to an env var (ex: Deno.env.get("email") ) If you want to allow anyone to access your val, just use: import { emailAuth } from "https://esm.town/v/pomdtr/email_auth" export default emailAuth((req) => { return new Response(`your mail is ${req.headers.get("X-User-Email")}`); }, { verifyEmail: (_email) => true }); Each time someone tries to access your val but is not allowed, you will get an email with: the email of the user trying to log in the name of the val the he want to access You can then just add the user to your whitelist to allow him in (and the user will not need to confirm his email again) ! TODO [ ] Add expiration for verification codes and session tokens [ ] use links instead of code for verification [ ] improve errors pages
kishore avatar
prism_feature_notifications
@kishore
Cron
Forked from thesephist/prism_feature_notifications