class IO2GPermissionChecker

Parents
IAddRef

Brief

Checks permissions.

Details

To get an instance of the class, use the method IO2GLoginRules.getPermissionChecker.

IO2GPermissionChecker [hide]

 IO2GLoginRules *loginRules = session->getLoginRules();
 IO2GPermissionChecker *permissionChecker = loginRules->getPermissionChecker();
 std::cout << "canCreateMarketOpenOrder = "  << ParseO2GPermissionStatus(permissionChecker->canCreateMarketOpenOrder(instrument.c_str())) << std::endl;
 permissionChecker->release();
 loginRules->release();

Public Methods

canAcceptQuote

Determines whether the user may accept a quote provided by the dealer.

canChangeEntryOrder

Determines whether the user may change entry orders.

canChangeMarketCloseOrder

Determines whether the user may change close market orders.

canChangeMarketOpenOrder

Determines whether the user may change open market orders.

canChangeNetCloseOrder

Determines whether the user may change an order to close all positions for an instrument on an account.

canChangeNetStopLimitOrder

Determines whether the user may change net stop/limit orders.

canChangeOfferSubscription

Determines whether the user may change the offer subscription.

canChangeStopLimitOrder

Determines whether the user may change stop/limit orders.

canCreateEntryOrder

Determines whether the user may create entry orders.

canCreateMarketCloseOrder

Determines whether the user may create close market orders.

canCreateMarketOpenOrder

Determines whether the user may create open market orders.

canCreateNetCloseOrder

Determines whether the user may create an order to close all positions for an instrument on an account.

canCreateNetStopLimitOrder

Determines whether the user may create net stop/limit orders.

canCreateOCO

Determines whether the user may create a new OCO order.

canCreateStopLimitOrder

Determines whether the user may create stop/limit orders.

canDeleteEntryOrder

Determines whether the user may delete entry orders.

canDeleteMarketCloseOrder

Determines whether the user may delete close market orders.

canDeleteMarketOpenOrder

Determines whether the user may delete open market orders.

canDeleteNetCloseOrder

Determines whether the user may delete an order to close all positions for an instrument on an account.

canDeleteNetStopLimitOrder

Determines whether the user may delete net stop/limit orders.

canDeleteQuote

Determines whether the user may delete a quote provided by the dealer.

canDeleteStopLimitOrder

Determines whether the user may delete stop/limit orders.

canExcludeOCO

Determines whether the user may exclude orders from the existing OCO order.

canJoinOCO

Determines whether the user may add orders to the existing OCO order.

canRequestQuote

Determines whether the user may request a quote.

canUseDynamicTrailingForEntryLimit

Determines whether the user may use trailing entry limit and net limit orders with a dynamic step.

canUseDynamicTrailingForEntryStop

Determines whether the user may use trailing entry stop and net stop orders with a dynamic step.

canUseDynamicTrailingForLimit

Determines whether the user may use trailing limit orders with a dynamic step.

canUseDynamicTrailingForStop

Determines whether the user may use trailing stop orders with a dynamic step.

canUseFluctuateTrailingForEntryLimit

Determines whether the user may use trailing entry limit and net limit orders with a fixed step.

canUseFluctuateTrailingForEntryStop

Determines whether the user may use trailing entry stop and net stop orders with a fixed step.

canUseFluctuateTrailingForLimit

Determines whether the user may use trailing limit orders with a fixed step.

canUseFluctuateTrailingForStop

Determines whether the user may use trailing stop orders with a fixed step.

back