Skip to content

Kill, leave the strategy reducing only, and close every position with a

POST
/admin/strategies/{code}/flatten
curl --request POST \
--url http://localhost:3001/admin/strategies/string/flatten \
--header 'Authorization: Bearer <token>'

Limit order inside its price band.

code
required
string

Strategy code

Flattening

Media typeapplication/json

What a control action did, for the cockpit.

object
cancel_failures
required
Array<string>
cancelled
required
integer
flatten_orders
required
integer
skipped
required
Array<string>

Example generated

{
"cancel_failures": [
"example"
],
"cancelled": 1,
"flatten_orders": 1,
"skipped": [
"example"
]
}

Not found