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.
elliotbraem
githubActivityReport
Github Activity Report Generates an activity report of GitHub events for a specified user.
The report groups events by day, repository, and event type, providing an organized view of the user's activities over a specified date range. Usage Parameters userName (required): The GitHub username for which to generate the activity report. startDate (optional): The start date of the activity report in YYYY-MM-DD format. If not provided, the report includes all events up to the endDate . endDate (optional): The end date of the activity report in YYYY-MM-DD format. If not provided, the report includes all events from the startDate onwards. Response Structure The API returns a JSON response body with the following structure: {
"YYYY-MM-DD": {
"repository_name": {
"event_type": [
{
"id": "event_id",
"created_at": "event_timestamp",
"payload": { /* event payload */ }
},
// More events...
]
},
// More repositories...
},
// More dates...
}

stevekrouse
switchbot
Open the Val Town Ground Floor Switchbot This webpage will let Val Town employees or guests to use these bots. The original version of this val was for a party. That fork is preserved here: @stevekrouse/switchbot_party Next steps [ ] Add one of @pomdtr's login methods [ ] Allow all @val.town emails to login [ ] Have any other email login ping me for approval or make a private val with a list of approved emails Switchbot API This val authenticates to the switchbot API with SWITCHBOT_TOKEN and SWITCHBOT_KEY . Learn how to get your own Switchbot API keys here: Switchbot Docs .
dglazkov
bbrun
A simple chat app harness for your board Provides a very simple chat app UI for a Breadboard board. For now, requires you to be running a board server. This harness actually acts
as a proxy to the board server run API endpoint ,
and puts a nice (well, somewhat nice) frontend on top of it. The frontend is somewhat limited in what it can show, currently supporting only
LLMContent and array of LLMContent outputs, and only LLMContent array input. The script will look for the BB_LIVE_KEY in your Val Town environment, which
must contain your board server API key. To use, create an HTTP val, then import the proxy function from this script and call it like this:
import { proxy } from "https://esm.town/v/dglazkov/bbrun";
export default proxy(
"url-to-the-board.bgl.json",
);