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.
![vladimyr avatar](https://images.clerk.dev/oauth_github/img_2TYEBDWl6QE7Nsk4AHoXsDuwvBE.png)
vladimyr
licenseBadge
HTTP
Val license badge generator Generates readme badge from SPDX-License-Identifier comment. ![](https://vladimyr-licensebadge.web.val.run/v/vladimyr/licenseBadge) Usage https://vladimyr-licensebadge.web.val.run/v/<author>/<val> Example https://vladimyr-licensebadge.web.val.run/v/vladimyr/licenseBadge https://vladimyr-licensebadge.web.val.run/v/vladimyr/valshot https://vladimyr-licensebadge.web.val.run/v/vladimyr/base256kitten
1
nbbaier
filterVals
Script
filterVals This val exports a utility function that returns a list of all a user's val, filtered by a callback function. Example Get the names of all your private vals: import { filterVals } from "https://esm.town/v/nbbaier/filterVals";
const id = <user_id>
const vals = await filterVals(id, (v) => v.privacy === "private")
const privateValNames = vals.map(v => v.name);
1