public method IO2GTradingSettingsProvider.getMargins

Brief

Checks whether the three level margin policy is used and specifies the three margin levels. Returns 'true' if margin policy is three level and 'false' otherwise.

Declaration
C++
virtual bool  getMargins (const char * instrument, IO2GAccountRow * accountRow, double & mmr, double & emr, double & lmr) = 0

Parameters
instrument

The name of the instrument to get the trading setting for.

accountRow

The account information for the account to get the trading setting for.

mmr

[out] The maintenance margin level.

emr

[out] The entry margin level.

lmr

[out] The limitation margin level.

Details

In case of one level margin, the three margin levels have equal values. Fills mmr/emr/lmr with -1.0 in case of error.

Declared in IO2GTradingSettingsProvider

back