class MarketOrderRequestBuilder

Parents

MarketOrderRequest

Brief

The builder of the MarketOrderRequest class

Public Methods

build

Builds a new instance of the MarketOrderRequest class with the set parameters

enableTrailingStop

Enable trailing stop

MarketOrderRequestBuilder

A constructor

setAccountId

Sets the unique identification number of the account

setAmount

Sets the order amount

setBuySell

Sets the trade operation of the order

setCustomId

Sets the custom ID

setExpirationDate

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

setLimitPips

Sets the pips the limit order must close the position at

setLimitRate

Sets the price at which the limit order must close the position

setOfferId

Sets the unique identification number of the offer

setRateRange

Sets the rate range

setStopPips

Sets the pips the stop order must close the position at

setStopRate

Sets the price at which the stop order must close the position

setTimeInForce

Sets the time in force ('GTC', 'IOC', 'FOK', 'DAY', 'GTD')

back