public method O2GTradingSettingsProvider.getMaxQuantity

Brief

Gets the maximum allowed amount of an order.

Declaration
Java
int  getMaxQuantity (String instrument, O2GAccountRow accountRow)

Parameters
instrument

The symbol of an instrument. For example, EUR/USD, USD/JPY, GBP/USD.

accountRow

The instance of the O2GAccountRow class that contains account information.

Details

In the case of FX instruments, the returned value is expressed in the base currency of the instrument.
In the case of CFD instruments, the returned value is expressed in contracts.

If you place an order with the amount greater than the returned value of this method, your order is rejected.

Declared in O2GTradingSettingsProvider

back