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.
vincentntang avatar
vincentntang
usdBTC
Script
// Get the current price of Bitcoin in US dollars
0
kennymark avatar
kennymark
usdBTC
Script
// Get the current price of Bitcoin in US dollars
1
tophtucker avatar
tophtucker
usdETH
Script
// Get the current price of Ethereum in US dollars
0
testregistry avatar
testregistry
usdETH
Script
// Get the current price of Ethereum in US dollars
0
peterqliu avatar
peterqliu
selfDestruct
Script
💥 Deletes the val using it, or whatever url is fed it. Handy for sharing single-use scripts without cluttering people's accounts. If used in an HTTP val, this will run immediately when anyone forks it, making for a zero-click execution as long as ValTown immediately serves a preview of the forked val. Add this to your code last and then do not run it, or you will lose your work. Recommend first checking that the val owner isn't you, so that only forked copies will self-destruct. Usage selfDestruct(import.meta.url) Returns a promise of successful deletion, though the val would not be around to read it.
3
LifeNexus avatar
LifeNexus
cryptoTransactionTracker
Cron
@jsxImportSource https://esm.sh/react
0
technobabble avatar
technobabble
usdETH
Script
// Get the current price of Ethereum in US dollars
0
carlos avatar
carlos
usdBTC
Script
// Get the current price of Bitcoin in US dollars
0
christian avatar
christian
usdBTC
Script
// Get the current price of Bitcoin in US dollars
0
dexa avatar
dexa
usdETH
Script
// Get the current price of Ethereum in US dollars
0
evan avatar
evan
usdETH
Script
// Get the current price of Ethereum in US dollars
0
ashish avatar
ashish
usdBTC
Script
An interactive, runnable TypeScript val by ashish
0
greeffer avatar
greeffer
usdETH
Script
// Get the current price of Ethereum in US dollars
0
devon avatar
devon
usdETH
Script
// Get the current price of Ethereum in US dollars
0
weaverwhale avatar
weaverwhale
generateMerchantTransactionData
Script
// console.log(generateMerchantTransactionData());
0
stevekrouse avatar
stevekrouse
newRSSItems
Script
An interactive, runnable TypeScript val by stevekrouse
2