class CloseAllPositionsRequest

Parents

object

Brief

The class provides information for a close all positions market order request

Public Methods

CloseAllPositionsRequest

This method is a constructor for the class provides information for a close all positions market order request. It initializes the properties with default values and does not return any values

getAcctId

Required method. Gets the account ID

getCustomId

Gets the custom ID to use in request

getExpirationDate

Gets the expiration datetime. Applicable only for orders with GTD time-in-force option.

getRateRange

Gets the rate range.

getSide

Gets the side for which remove positions. If not set, then positions will be removed for all sides

getSymbol

Gets the symbol for which remove positions. If not set, then positions will be removed for all instruments.

getTimeInForce

Gets the time in force ('GTC', 'IOC', 'FOK', 'DAY', 'GTD'). By default 'GTC'.

isRateRangeFilled

Checks whether the rate range is set for the request

isSideFilled

Checks whether the side is set for the request

isSymbolFilled

Checks whether the symbol is set for the request

back