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.
pomdtr avatar
pomdtr
email_auth
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
6
dthyresson avatar
dthyresson
ideas
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.
0
davidhariri avatar
davidhariri
aqi
Cron
Forked from stevekrouse/aqi
0
janpaul123 avatar
janpaul123
valle_tmp_4374095821764219776697402648626
HTTP
// To create a simple JavaScript formatter, we can utilize the Prettier library available in Deno.
0
jxnblk avatar
jxnblk
VALLE
HTTP
Forked from janpaul123/VALLE
0
maxharper26 avatar
maxharper26
api_v1
HTTP
Forked from stevekrouse/sqlite
1
vawogbemi avatar
vawogbemi
date_me_form
HTTP
Forked from stevekrouse/date_me_form
0
yawnxyz avatar
yawnxyz
hnCloneOAuth
Script
An interactive, runnable TypeScript val by yawnxyz
2
christian avatar
christian
cityLookup
Script
// Cities named Brooklyn
0
todepond avatar
todepond
up
HTTP
An interactive, runnable TypeScript val by todepond
0
zzz avatar
zzz
YoutubeTranscript
Script
An interactive, runnable TypeScript val by zzz
1
peterzakin avatar
peterzakin
VALLE
HTTP
Forked from janpaul123/VALLE
0
horatiothomas avatar
horatiothomas
dream_interpreter_journal_dictionary_app
HTTP
Forked from horatiothomas/dream_interpreter_journal_dictionary
1
tgrv avatar
tgrv
VALLE
HTTP
Forked from janpaul123/VALLE
0
g avatar
g
vtdb
Script
Val Town Database This val exports vtdb , a correctly typed Kysely instance to query the @sqlite.db database containing public vals. Example usage: import { vtdb } from 'https://esm.town/v/g/vtdb'; const vals = await vtdb.selectFrom('vals') .selectAll() .orderBy('created_at desc') .limit(5) .execute(); console.log(vals.map((val) => val.name));
1
koch avatar
koch
reminders
Cron
An interactive, runnable TypeScript val by koch
0