Message: AccountPositionFilter

File: WebAPI/order_2.proto

Description

Specify account and its positions.

Used in

LiquidateAll

Fields

account_id

Type: sint32

Description: ID of an account.

Source: trading_account_2.Account.account_id.

contract_id

Type: uint32

Description: Server side contract ID.

Source: metadata_2.ContractMetadata.contract_id.

is_short

Type: bool

Description: Specifies whether only short (true) or only long (false) positions should be selected. If not specified, both short and long positions will be selected.

current_day_only

Type: bool

Description: Specifies whether only positions of current day (true) or only positions of previous days (false) should be selected. If not specified, positions of current and previous day(s) will be selected. Should be used only if instrument supports explicit close for positions. If specified, and any instrument not supporting explicit close matches this filter, ServerMsg.OrderRequestReject is sent.