class EntryOrderRequestBuilder
Parents
object
Brief
The builder for creating instances of the EntryOrderRequest class, which is used for creating orders in a trading platform
| Public Methods | |
|---|---|
| EntryOrderRequestBuilder | A constructor, doesn't return any value |
| setAccountId | Sets the unique identification number of the offer |
| setOfferId | Sets the unique identification number of the offer |
| setAmount | Sets the number of lots |
| setBuySell | Sets the amount |
| setRate | Sets the rate |
| setStopRate | Sets the stop rate |
| setLimitRate | Sets the limit rate |
| setStopPips | Sets the pips the stop order must close the position at |
| setLimitPips | Sets the pips the limit order must close the position at |
| setRateRange | Sets the rate range |
| enableTrailingStop | Enable trailing stop |
| setTimeInForce | Sets the time in force ('GTC', 'DAY', 'GTD') |
| setExpirationDate | Sets the expiration datetime. Applicable only for orders with GTD time-in-force option. |
| setCustomId | Sets the custom ID |
| build | Builds a new instance of the EntryOrderRequest class with the set parameters |