trade29.sc.commands.PositionUpdateResponse#
- class trade29.sc.commands.PositionUpdateResponse(request, response)#
A response containing information on an account’s 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.
position_quantity
(float) The quantity of the position, where a positive value means the position is long and a negative value means it’s short.
average_price
(float) The average price that the position was entered at.
open_profit_loss
(float) The profit/loss since the open position was entered, where a positive value is a profit and a negative value is a loss.