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
subaudio
@stevekrouse
HTTP (deprecated)
Forked from substrate/subaudio
tmcw avatar
activitypub
@tmcw
HTTP (deprecated)
WebFinger This is a not-quite-complete ActivityPub implementation based on my blog post about building an AP implementation . It includes enough to look up bot@tmcw-activitypub.web.val.run on Mastodon and get some basic information.
jamiedubs avatar
syntheticLoot
@jamiedubs
HTTP (deprecated)
dark greetings cryptoadventurers. This val will print the contents of a given Ethereum wallet's Synthetic Loot , which is procedurally generated from your wallet address. To look at your sLoot in a browser with some fun pixel art, check out timshel's Synthetic Loot Viewer to use this endpoint, pass ?address=0x... e.g. https://jamiedubs-syntheticloot.web.val.run/?account=0xf296178d553c8ec21a2fbd2c5dda8ca9ac905a00 the default response type is JSON. You can also get a simple list of the loot bag contents using ?format=text . e.g. https://jamiedubs-syntheticloot.web.val.run/?account=0xf296178d553c8ec21a2fbd2c5dda8ca9ac905a00&format=text
janpaul123 avatar
valle_tmp_8577620427908266060740786834009
@janpaul123
HTTP (deprecated)
// Initialize sample stories and store them in blob storage
janpaul123 avatar
valle_tmp_46943868107891815759175483516619
@janpaul123
HTTP (deprecated)
An interactive, runnable TypeScript val by janpaul123
jdan avatar
traversePairwise
@jdan
Script
An interactive, runnable TypeScript val by jdan
eczajk avatar
usgsSite
@eczajk
Script
An interactive, runnable TypeScript val by eczajk
ianvph avatar
capturePostHogEvent
@ianvph
Script
An interactive, runnable TypeScript val by ianvph
briscoe avatar
getTideTimes
@briscoe
Script
An interactive, runnable TypeScript val by briscoe
substrate avatar
subaudio
@substrate
HTTP (deprecated)
sub.audio – generate subtitles and chapters for any audio URL. Speech-to-text and chapter summaries powered by Substrate 🪩 To fork, sign up for Substrate to get your own API key and $50 free credits
samwho avatar
featureflags
@samwho
HTTP
Feature Flags This val demonstrates a very simple feature flag implementation. There is a const in the file called FLAGS which stores the feature flags defined, fork this val and modify this value to setup your own flags. Defining flags The example FLAGS value is: const FLAGS: Record<string, Flag> = { "flag1": Flag.rollout(0.5), "flag2": Flag.enabled().block("user_123"), "flag3": Flag.disabled().allow("hello@samwho.dev"), }; This demonstrates: flag1 -- a flag that will be enabled for 50% of users (more on how users are defined later) flag2 -- a flag that is enabled for everyone except user_123 flag3 -- a flag that is disabled for everyone except hello@samwho.dev Endpoints There are two endpoints: / -- the root endpoint fetches all flags for the given user. /:id -- fetches just one flag value, given by :id , for the given user. Specifying users By default, the user is determined by IP address. If you want to be more specific, you can pass in the ?userId query parameter to any endpoint and that will be used instead. How it works This val works by hashing the userId and using the resulting value to determine whether a flag should be enabled or disabled. In a 50% rollout, for example, the numeric hash of the userId is taken and divided by the maximum hash value. If the result is less than the rollout percentage, the flag is enabled. This allows for completely stateless feature flags, no database required. To prevent the same users getting features first all of the time, the flag name is prepended to the userId before hashing.
francoischalifour avatar
getInvitesFromReddit
@francoischalifour
Script
An interactive, runnable TypeScript val by francoischalifour
jxnblk avatar
ReactStream
@jxnblk
Script
Forked from jxnblk/resrvStreaming
stevekrouse avatar
html
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
ttodosi avatar
dailyStandupBot
@ttodosi
Cron
Forked from stevekrouse/dailyStandupBot
stevekrouse avatar
dateme_layout
@stevekrouse
Script
Forked from pomdtr/dateme_layout