trade29.sc.commands.FlattenAndCancelResponse#

class trade29.sc.commands.FlattenAndCancelResponse(request, response)#

A response containing the results of flattening and cancelling a position.

Attributes

request_id

(int) The request ID associated with this response.

request

(MarketDepthRequest) The request passed through the SCBridge to get this response.

rdata

(dict) The raw data from the T29-SC-dX DLL as a dictionary.

is_success

(bool) If position was already flat and no orders were open, then this will be False, if not then it will be True.