Stop this strategy's live run
Changed onRequests a stop. The run winds down at its own next check-in rather than instantly — poll GET/PATCH .../live and expect state to remain RUNNING for a short window after desired flips to STOPPED. Calling this again on an already-stopped run is not an error; it returns the same (unchanged) state. A stopped run has no stream: its streamUrl, if it had one, stops working and is not in this response.
Request
- Base URL: https://api.qtsurfer.net/v1
- URL: https://api.qtsurfer.net/v1/strategy/{strategyId}/live
- 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
Stop requested (or already stopped) — the run's current state
Example response
{
"strategyId": "6bsh31ikwkuivhtgcoa6s4",
"sources": [
{
"venueType": "cx",
"exchange": "binance",
"segment": "spot",
"instruments": [
"BTC/USDT"
]
}
]
}Changes
- info
endpoint added
- info