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.
linkInBioTemplate
stevekrouse
linkInBioTemplate
@jsxImportSource https://esm.sh/react
gists
yieldray
gists
Get A Website for Your Gists Example: https://yieldray-gists.web.val.run Usage: fork this val and replace with your github usename
cron_client_react_fork
stevekrouse
cron_client_react_fork
Remix of: stevekrouse/cron_client_side_script_fork
react_http
stevekrouse
react_http
Client Side React Helper Example Usage /** @jsxImportSource https://esm.sh/react */ import { useState } from "https://esm.sh/react@18.2.0"; import react_http from "https://esm.town/v/stevekrouse/react_http?v=6"; export function App() { const [count, setCount] = useState(0); return ( <div> <h1>Example App</h1> <button onClick={() => setCount(count + 1)} className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" > {count} </button> </div> ); } export default () => react_http({ component: App, sourceURL: import.meta.url, head: `<meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <script src="https://cdn.tailwindcss.com"></script> <title>Example App</title>`, }); Gotchas Only use https imports The val with your React component will be imported in the browser. Thus, only use https imports in this val and any that it imports. Replace any npm: with https://esm.sh/ and everything should work great.
cron_client_side_script_fork
stevekrouse
cron_client_side_script_fork
Remix of: stevekrouse/cron
translator
yawnxyz
translator
Remix of: yawnxyz/voice
getWeather
stevekrouse
getWeather
Remix of: sdan/getWeather
harlequinCobra
stevekrouse
harlequinCobra
Remix of: stevekrouse/getWeather
rssNotifyExample
stevekrouse
rssNotifyExample
An interactive, runnable TypeScript val by stevekrouse
cron
stevekrouse
cron
CronGPT This is a minisite to help you create cron expressions, particularly for crons on Val Town. It was inspired by Cron Prompt , but also does the timezone conversion from wherever you are to UTC (typically the server timezone). Tech Hono for routing ( GET / and POST /compile .) Hono JSX HTMX (probably overcomplicates things; should remove) @stevekrouse/openai, which is a light wrapper around @std/openai I'm finding HTMX a bit overpowered for this, so I have two experimental forks without it: Vanilla client-side JavaScript: @stevekrouse/cron_client_side_script_fork Client-side ReactJS (no SSR): @stevekrouse/cron_client_react_fork I think (2) Client-side React without any SSR is the simplest architecture. Maybe will move to that.
kyselyVtTypes
pomdtr
kyselyVtTypes
Remix of: easrng/kyselyVtTypes
pipes
pomdtr
pipes
An interactive, runnable TypeScript val by pomdtr
beigeSawfish
stevekrouse
beigeSawfish
Remix of: stevekrouse/compress_response
compress_response
stevekrouse
compress_response
Compress Response Isn't it cool that browsers can natively decompress stuff? There are a couple of supported compression algorithms: gzip (used below), compress , deflate , br . Learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding If you don't add the content-encoding header, the gzip result looks like: ��������� �� �.���� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������YDA��"�� Which is incredibly short for a 500kb string! (Which shouldn't be surprising because it's just "hi" 250k times)
openapi_schema
pomdtr
openapi_schema
* This file was auto-generated by openapi-typescript. * Do not make direct changes to the file.
bookmark
michaelmang
bookmark
Remix of: ramkarthik/bookmark