class EntryOrderRequestBuilder

Parents

EntryOrderRequest

Brief

The builder for creating instances of the EntryOrderRequest class, which is used for creating orders in a trading platform

Public Methods

build

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

enableTrailingStop

Enable trailing stop

EntryOrderRequestBuilder

A constructor, doesn't return any value

setAccountId

Sets the unique identification number of the offer

setAmount

Sets the number of lots

setBuySell

Sets the amount

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 limit rate

setOfferId

Sets the unique identification number of the offer

setRate

Sets the rate

setRateRange

Sets the rate range

setStopPips

Sets the pips the stop order must close the position at

setStopRate

Sets the stop rate

setTimeInForce

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

back