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.
wilt
thisUrl
Script
Programmatically get the API URLs for the val that calls this val. For example: // @wilt.myCoolVal:
const myCoolVal = @wilt.thisUrl("web");
}
// returns:
// https://wilt-myCoolVal.web.val.run If targetVal is passed as entry , returns the URL of the very first val in the current call stack. For example: // @wilt.myFirstCoolVal:
const myFirstCoolVal = @wilt.mySecondCoolVal());
}
// @wilt.mySecondCoolVal:
const mySecondCoolVal = () => {
return @wilt.thisUrl("web", "entry");
}
// Running @wilt.myFirstCoolVal returns:
// https://wilt-myFirstCoolVal.web.val.run
0