Get a registered strategy's source, if you still have one to read
The exact source you last submitted for this id — the same text POST /strategy derives strategyId from, whitespace and comments included.
"If available", not "always". A strategy you resolve only through a shared/marketplace listing you copied by reference carries no source of its own, and reads as a 404 here the same as a strategyId you never registered — that is the honest answer either way, since from this endpoint's point of view nothing is there to return.
Request
- Base URL: https://api.qtsurfer.net/v1
- URL: https://api.qtsurfer.net/v1/strategy/{strategyId}/code
- Auth: HTTP bearer
Path parameters
Unique identifier for a compiled strategy, derived from the source itself: the same code always yields the same id, for every caller. How much formatting the id ignores depends on the language — see POST /strategy for exactly which rewrites preserve it and which do not.
The id returned by POST /strategy
Response
The registered source
Example response
{
"strategyId": "6bsh31ikwkuivhtgcoa6s4"
}Changes
No recorded changes to this operation across all 50 revisions of this API.