OnixS Euronext CCG Binary Trading Handler for C++  1.16.0.0
Public Types
ReturnCode Struct Reference

Return Code Values. More...

List of all members.

Public Types

enum  Enum {
  Undefined = 0, TRADE_STATUS_ACTIVE = 16252929, TRADE_STATUS_CANCELLED = 16252930, TRADE_STATUS_REVISED = 16252931,
  MARKET_ON_OPEN_CONVERT = 3145739, STATUS_UNDEFINED = 4194304, STATUS_SUCCESS = 4194305, STATUS_ERROR = 4194306,
  STATUS_VERSION_ERROR = 4194307, INVALID_OPERATION = 4194308, TRADING_CLIENT_FAILURE = 4194316, GATEWAY_ERROR = 4194317,
  EXCHANGE_CONNECTION_ERROR = 4194318, GATEWAY_CONNECTION_ERROR = 4194319, HOST_ERROR = 4194320, SECURITY_ERROR = 4194321,
  USER_ALREADY_LOGGED_ON = 4194322, INVALID_MARKET = 4194325, MARKET_CLOSED = 4194326, NO_PRICE_IN_OUTRIGHT_MARKET = 4194328,
  OUTSIDE_PRICE_LIMITS = 4194329, OUTSIDE_DELTA_LIMITS = 4194330, FAILED_TO_TRADE = 4194331, PARTIAL_TRADE = 4194332,
  REJECTED_CROSSING = 4194333, INVALID_ORDERID = 4194334, REJECTED_RFQ = 4194335, OBSERVER_PULL_ORDER = 4194336,
  ORDER_BUY_SELL_INVALID = 4194339, ORDER_VOLUME_INVALID = 4194340, ORDER_PRICE_TYPE_INVALID = 4194341, ORDER_TIME_TYPE_INVALID = 4194342,
  ORDER_MIN_VOLUME = 4194343, ORDER_OPEN_CLOSE_INVALID = 4194344, ORDER_ACCOUNT_CODE_INVALID = 4194345, ORDER_TRADER_ALLOC_INVALID = 4194346,
  ORDER_TRADE_TYPE_INVALID = 4194348, STRATEGY_NUM_LEGS_INVALID = 4194350, STRATEGY_COMMODITY_INVALID = 4194351, STRATEGY_NOT_BUY_SELL = 4194353,
  STRATEGY_EXPIRY_INVALID = 4194354, STRATEGY_SERIES_INVALID = 4194355, STRATEGY_STOCK_FAILED = 4194356, STRATEGY_LEGS_INVALID = 4194357,
  STRATEGY_CODE_INVALID = 4194359, OBSERVER_LOGOUT = 4194360, CROSS_CONTRACT_NOT_ENABLED = 4194362, CROSS_CONTRACT_MONTH_NOT_ENABLED = 4194363,
  CROSS_LAST_TRADING_DAY_EXPIRED = 4194364, CROSS_MINIMUM_VOLUME = 4194365, CROSS_REJECTED = 4194366, CROSS_REJECTED_PHONE = 4194367,
  CROSS_INVALID_PRICE = 4194368, ORDER_PRICE_INVALID = 4194369, CROSS_LAST_TRADING_TIME_ELAPSED = 4194370, INVALID_PRICE_TYPE = 4194378,
  REPEATED_ORDERID = 4194379, CROSS_MARKET_NOT_YET_TRADED = 4194380, CROSS_OUTSIDE_CURRENT_BID_OFFER = 4194381, CROSS_OUTSIDE_LIFETIME_HIGH_LOW = 4194382,
  INVALID_USE_OF_MARKET = 4194383, TOO_MANY_LOGON_ATTEMPTS = 4194384, POSTING_CODE_INVALID = 4194385, VOLUME_RESTRICTIONS = 4194386,
  ORDER_ACCOUNT_CODE_COMBINATION_INVALID = 4194387, ORDER_ACCOUNT_CODE_MISSING = 4194388, OUTSIDE_GC_TRADE_PERIOD = 4194389, NO_SETTLEMENT_PRICE_IN_MARKET = 4194390,
  ORDER_MEMBER_ALLOCATION_INVALID = 4194391, ORDER_ALLOCATION_INVALID = 4194392, ORDER_TRADER_CARD_REFERENCE_INVALID = 4194393, ORDER_CUSTOMER_REF_INVALID = 4194394,
  ORDER_CTI_INVALID = 4194395, CONTRACT_NOT_REGISTERED = 4194396, ITM_NOT_REGISTERED = 4194397, FACILITY_NOT_ACTIVE = 4194398,
  MMP_LIMIT_INVALID = 4194399, EXPIRY_INVALID = 4194400, MMO_REJECTED_LIMIT_BREACHED = 4194401, USER_SPECIFIED_MISSING = 4194402,
  FACILITY_UNAVAILABLE = 4194403, RECIPIENT_INVALID = 4194404, RECIPIENT_NOT_LOGGED_ON = 4194405, TRADER_EXCHANGE_NOT_TRADER = 4194406,
  TRADER_EXCHANGE_NO_EXCHANGE = 4194407, TRADER_EXCHANGE_SUSPENDED = 4194408, TRADER_EXCHANGE_UNSUSPENDED = 4194409, STRATEGY_OPEN_CLOSE_INVALID = 4194412,
  MMO_TRADER_NOT_AUTHORISED = 4194413, MMO_CANNOT_REVISE = 4194414, MMO_PARTNER_OUTSIDE_PRICE_LIMITS = 4194415, MMO_TRADER_ERROR = 4194416,
  ORDER_ACCOUNT_AUTHORISATION_INVALID = 4194417, BATCH_SIZE_EXCEEDED = 4194418, ITM_NOT_LOGGED_ON = 4194420, PULLED_BY_FIRM = 4194424,
  ALREADY_LOCKED_OUT = 4194428, ALREADY_LOGGED_OUT = 4194429, ORDER_INCOMPATIBLE_PARAMETERS = 4194430, STOP_ORDER_TRIGGERED_AND_PULLED = 4194431,
  MARKET_RATIO_WITHIN_RANGE = 4194432, INCORRECT_NET_PRICE = 4194433, CROSS_INVALID_TXN_CODE = 4194434, STRATEGY_LEGS_YDSP_INVALID = 4194437,
  COMMS_TX_FAILURE = 4194438, COMMS_RX_FAILURE = 4194439, COMMS_HBEAT_FAILURE = 4194440, PULLED_BY_SYSTEM = 4194441,
  LOGON_FAILED_TRADER_KEY_EXPIRED = 4194442, FAILURE_TYPEA = 4194443, FAILURE_TYPEB = 4194444, FAILURE_TYPEC = 4194445,
  FAILURE_TYPED = 4194446, ORDER_TIMEOUT = 4194448, CONTRACT_LEVEL_INVALID = 4194449, MULTIPLE_EXPIRIES_INVALID = 4194450,
  FAILED_BY_FIRM = 4194451, CAB_NOT_ENABLED = 4194453, STRATEGY_TYPE_INVALID = 4194454, ORDER_STOP_TYPE_INVALID = 4194455,
  STRATEGY_TRADING_RIGHTS_INVALID = 4194456, STRATEGY_LEG_DELTA_INVALID = 4194457, STRATEGY_LEG_LOT_SIZE_INVALID = 4194458, STRATEGY_LEG_NO_FUTURE = 4194459,
  STRATEGY_LEG_PRICE_INVALID = 4194460, STRATEGY_LEG_PRICE_TICK_SIZE_INVALID = 4194461, ORDER_PRICE_TICK_SIZE_INVALID = 4194462, CAB_ORDER_PRICE_INVALID = 4194463,
  PROTECTION_TYPE_INVALID = 4194464, PROTECTION_PERIOD_INVALID = 4194465, INVALID_MATCHED_TRADE_ID = 4194466, TRADE_ALREADY_DELETED = 4194467,
  OUTSIDE_UNDERLYING_PRICE_LIMITS = 4194468, OBSERVER_LOCKOUT = 4194469
}

Detailed Description

Return Code Values.


Member Enumeration Documentation

enum Enum

Return Code Values.

Enumerator:
TRADE_STATUS_ACTIVE 

Order has traded

TRADE_STATUS_CANCELLED 

Order has been cancelled

TRADE_STATUS_REVISED 

Part of order has been cancelled

MARKET_ON_OPEN_CONVERT 

Returned when MoO order is converted to a Limit order.

STATUS_UNDEFINED 

Indicates the beginning of the enumerated range

STATUS_SUCCESS 

The request has been successful

STATUS_ERROR 

The request has failed

STATUS_VERSION_ERROR 

Gateway connection rejected as incompatible version

INVALID_OPERATION 

Request not permitted as it is an invalid operation

TRADING_CLIENT_FAILURE 

Sent by the Client Application

GATEWAY_ERROR 

Returned if a Gateway fails

EXCHANGE_CONNECTION_ERROR 

Returned if a Gateway loses connection

GATEWAY_CONNECTION_ERROR 

Client application has failed

HOST_ERROR 

Returned if a Gateway cannot connect to the Host

SECURITY_ERROR 

Returned if an ITM's password fails

USER_ALREADY_LOGGED_ON 

ITM attempted to log on but is already logged on

INVALID_MARKET 

Order cannot be submitted as market is invalid

MARKET_CLOSED 

Market not available

NO_PRICE_IN_OUTRIGHT_MARKET 

Order cannot be submitted into the strategy as there is no price available in the outright market

OUTSIDE_PRICE_LIMITS 

Order has been rejected as outside price limits

OUTSIDE_DELTA_LIMITS 

Strategy cannot be submitted as outside delta limits set by Market Control

FAILED_TO_TRADE 

If a non-resting order type fails to trade and is rejected

PARTIAL_TRADE 

Part of the order has traded

REJECTED_CROSSING 

An order has attempted to trade with another order submitted by the same ITM

INVALID_ORDERID 

Order cannot be revised or pulled as Order Id is invalid

REJECTED_RFQ 

For any given contract, submission of RFQs (both Host and Trader) is not permitted for a short time after submission of an earlier RFQ, except where the volume is greater than the initial RFQ in that contract

OBSERVER_PULL_ORDER 

Order pulled by Market Control

ORDER_BUY_SELL_INVALID 

Incorrect buy or sell indicator given for the order

ORDER_VOLUME_INVALID 

Order cannot be submitted as the volume is invalid

ORDER_PRICE_TYPE_INVALID 

Order submitted has been rejected as the price type is invalid

ORDER_TIME_TYPE_INVALID 

Order submitted has been rejected as the time type is invalid

ORDER_MIN_VOLUME 

Returned if an order attempts to trade below the minimum volume threshold

ORDER_OPEN_CLOSE_INVALID 

Returned for outright orders if an invalid value is submitted

ORDER_ACCOUNT_CODE_INVALID 

If the account code is mandatory, an order will be rejected if an invalid account code is specified

ORDER_TRADER_ALLOC_INVALID 

If the account code indicates a give-up, the trader allocation must be valid

ORDER_TRADE_TYPE_INVALID 

Order submitted has been rejected as the trade type is invalid

STRATEGY_NUM_LEGS_INVALID 

No of legs for the strategy invalid

STRATEGY_COMMODITY_INVALID 

Strategy cannot be created as commodity invalid

STRATEGY_NOT_BUY_SELL 

No buy or sell flag specified

STRATEGY_EXPIRY_INVALID 

Invalid expiry month specified in the strategy

STRATEGY_SERIES_INVALID 

Invalid option call or put specified

STRATEGY_STOCK_FAILED 

Returned if the underlying is not known

STRATEGY_LEGS_INVALID 

Legs invalid for the strategy specified

STRATEGY_CODE_INVALID 

Strategy code does not exist

OBSERVER_LOGOUT 

ITM logged out by Market Control

CROSS_CONTRACT_NOT_ENABLED 

Ex-pit trade has been rejected as the ex-pit trading facility is not enabled for the contract

CROSS_CONTRACT_MONTH_NOT_ENABLED 

Returned if Market Control has rejected the ex-pit trade as the contract month is not enabled

CROSS_LAST_TRADING_DAY_EXPIRED 

Trading Host sends this rejection reason when it checks for 'Insufficient days before expiry'. Trading Host sends 'invalid market' if the last trading day has expired

CROSS_MINIMUM_VOLUME 

Ex-pit trade is rejected if submitted with less than the minimum volume required by the contract specification

CROSS_REJECTED 

Ex-pit trade has been rejected by Market Control

CROSS_REJECTED_PHONE 

Ex-pit trade has been rejected by Market Control, contact the Exchange

CROSS_INVALID_PRICE 

Returned if Market Control rejects the trade as the price is invalid

ORDER_PRICE_INVALID 

Order cannot be submitted as the price is invalid

CROSS_LAST_TRADING_TIME_ELAPSED 

Ex-pit trades can only be traded up to a specified number of minutes before the contract close. If an attempt is made to submit one of these trades after this time then the Host will return this rejection error

INVALID_PRICE_TYPE 

Order cannot be submitted as price type invalid or mismatch between price type and time type

REPEATED_ORDERID 

Returned if an ITM uses the same Order Id in a batched operation

CROSS_MARKET_NOT_YET_TRADED 

Ex-pit trade has been rejected if conventional trading activity has not occurred in a particular market prior to the submission of ex-pit trades

CROSS_OUTSIDE_CURRENT_BID_OFFER 

Ex-pit trade has been rejected as outside current best bid/offer

CROSS_OUTSIDE_LIFETIME_HIGH_LOW 

Ex-pit trade has been rejected as the price outside lifetime high/low price range of the delivery month to date

INVALID_USE_OF_MARKET 

Market cannot be used for the request

TOO_MANY_LOGON_ATTEMPTS 

In order to protect the Trading Host from multiple failed logons, the Gateway will stop forwarding logon requests to the Trading Host after a configurable number of failed logins. The Gateway will continue to stop failed logons for a period of time

POSTING_CODE_INVALID 

The Posting Code field can be mandatory and validated on order submission. If a trader enters an invalid posting code, the Trading Host will reject the order

VOLUME_RESTRICTIONS 

Guaranteed Cross failed due to insufficient volume

ORDER_ACCOUNT_CODE_COMBINATION_INVALID 

The Trading Host will reject a Guaranteed Cross if the combination of Account Codes is not a valid combination

ORDER_ACCOUNT_CODE_MISSING 

If the account code is mandatory, an order will be rejected if no account code is specified

OUTSIDE_GC_TRADE_PERIOD 

The Guaranteed Cross facility can be configured to require the submission of a Request for Quote (RFQ) to the market at a configurable time prior to the execution of the Guaranteed Cross trade. The error status is returned if the Guaranteed Cross facility requires an RFQ and it is outside the RFQ period

NO_SETTLEMENT_PRICE_IN_MARKET 

Order cannot be submitted as there is no settlement price in the market

ORDER_MEMBER_ALLOCATION_INVALID 

If the account code indicates a give-up, the member allocation must be present

ORDER_ALLOCATION_INVALID 

If the account code indicates a give-up, the trader allocation must be present

ORDER_TRADER_CARD_REFERENCE_INVALID 

The Private Reference (5476) can be configured to be mandatory and non-blank on order submission. The Trading host will reject an order if the field is incorrectly populated

ORDER_CUSTOMER_REF_INVALID 

The Customer Reference field can be configured to be mandatory and non-blank on order submission. The Trading host will reject an order if the field is incorrectly populated

ORDER_CTI_INVALID 

If the Customer Trader Identifier is mandatory and validated and an invalid value is given for an order. The Trading Host will reject the order

CONTRACT_NOT_REGISTERED 

The relevant contract is not currently registered for use in the Market Maker Protection facility

ITM_NOT_REGISTERED 

The ITM supplied is not currently registered to use the Market Maker Protection facility in the specified contract

FACILITY_NOT_ACTIVE 

An operation has been requested on a contract where the facility is not Active

MMP_LIMIT_INVALID 

An operation had been requested where a Market Maker Protection Limit has been specified that is out of range

EXPIRY_INVALID 

An operation has been requested specifying an expiry that is not valid in the relevant contract

MMO_REJECTED_LIMIT_BREACHED 

A Quote submission has been rejected as a limit breach condition exists and the Market Maker Protection action is set to Pull Quotes, Warning Message or Warning Message and Pull Quotes

USER_SPECIFIED_MISSING 

Returned if orders are submitted contain insufficient information to be processed

FACILITY_UNAVAILABLE 

The facility is not active

RECIPIENT_INVALID 

Invalid ITM specified as the intended recipient, ITM is not a trader. For example for stock order routing

RECIPIENT_NOT_LOGGED_ON 

The intended recipient is not logged on. For example for stock order routing

TRADER_EXCHANGE_NOT_TRADER 

Returned if Market Control attempt to suspend an ITM which is not recognised on that host

TRADER_EXCHANGE_NO_EXCHANGE 

Returned if an invalid Exchange is given when Market Control attempt to suspend an ITM

TRADER_EXCHANGE_SUSPENDED 

Returned if Market Control suspend an ITM on an Exchange or if an ITM attempts to submit an order on an Exchange on which they are suspended

TRADER_EXCHANGE_UNSUSPENDED 

Returned if Market Control cancel an ITM's suspension

STRATEGY_OPEN_CLOSE_INVALID 

Returned if the contract does not support indicators of this length

MMO_TRADER_NOT_AUTHORISED 

Returned if an ITM attempts to submit a quote in a contract that they are not registered for

MMO_CANNOT_REVISE 

Returned if an ITM attempts to revise a quote using the normal revise order transaction

MMO_PARTNER_OUTSIDE_PRICE_LIMITS 

One or more order(s) of a quote pair is outside price limits

MMO_TRADER_ERROR 

Returned if an ITM registered to submit quote orders attempts to submit a resting order type

ORDER_ACCOUNT_AUTHORISATION_INVALID 

Returned when a trader has entered an order to be booked to an account or member he is not authorised to book to

BATCH_SIZE_EXCEEDED 

The number of incoming orders in a batched submission will be throttled for a contract to restrict the number of orders to a level specified by the parent exchange for that ITM type

ITM_NOT_LOGGED_ON 

The ITM is not logged on

PULLED_BY_FIRM 

Returned when order(s) have been pulled by the member

ALREADY_LOCKED_OUT 

Indicates that an ITM is already locked out

ALREADY_LOGGED_OUT 

Indicates that an ITM is already logged out

ORDER_INCOMPATIBLE_PARAMETERS 

A Stop order has been specified as an At the Opening order or as part of a Cabinet trade

STOP_ORDER_TRIGGERED_AND_PULLED 

Returned when a stop order is triggered but cannot trade or enter the order book and has been pulled

MARKET_RATIO_WITHIN_RANGE 

Returned when a trader submits a request to create a new Ratio ICS market and a market with the same underlying legs and a ratio that has the same value (truncated to 2 decimal places) already exists

INCORRECT_NET_PRICE 

Returned when the value of the Strategy Net Price (SNP) calculated by the Trading Host from the leg prices for a Ratio ICS does not match the value specified by the ITM in the Order Price

CROSS_INVALID_TXN_CODE 

The ex-pit trade has been rejected on the basis of an invalid transaction code

STRATEGY_LEGS_YDSP_INVALID 

Returned if an attempt is made to create a Ratio ICS market which has an underlying market without a YDSP value

COMMS_TX_FAILURE 

Failed to transmit a message

COMMS_RX_FAILURE 

Failed to receive a message due to one of the following reasons: Bad connection | Connection has been closed | Inconsistency in number of bytes received versus indicated

COMMS_HBEAT_FAILURE 

Too many heartbeats have been missed

PULLED_BY_SYSTEM 

Returned when order(s) have been pulled as the result of a market suspension or market closed

LOGON_FAILED_TRADER_KEY_EXPIRED 

For future use

FAILURE_TYPEA 

For future use

FAILURE_TYPEB 

For future use

FAILURE_TYPEC 

For future use

FAILURE_TYPED 

For future use

ORDER_TIMEOUT 

Indicates the inbound time taken by a clip order exceeds the configured maximum for the contract

CONTRACT_LEVEL_INVALID 

Returned if the action is not permitted at contract-level

MULTIPLE_EXPIRIES_INVALID 

Indicates an operation across multiple expiry months is not permitted for the contract

FAILED_BY_FIRM 

Indicates that an action performed by the MTM has failed

CAB_NOT_ENABLED 

Cabinet trade has been rejected as the CAB trading facility is not enabled for the contract

STRATEGY_TYPE_INVALID 

Strategy type trade has been rejected as the Strategy type trading facility is not enabled for the contract

ORDER_STOP_TYPE_INVALID 

Stop order type trade has been rejected as the Stop order trading facility is not enabled for the contract

STRATEGY_TRADING_RIGHTS_INVALID 

Trader does not have trading rights to create strategy market

STRATEGY_LEG_DELTA_INVALID 

Strategy leg has an invalid delta

STRATEGY_LEG_LOT_SIZE_INVALID 

Strategy leg has an invalid lot size

STRATEGY_LEG_NO_FUTURE 

Strategy leg has no future market

STRATEGY_LEG_PRICE_INVALID 

Strategy leg price is invalid

STRATEGY_LEG_PRICE_TICK_SIZE_INVALID 

Strategy leg price is not a valid tick size multiple

ORDER_PRICE_TICK_SIZE_INVALID 

Order price is not a valid tick size multiple

CAB_ORDER_PRICE_INVALID 

Cabinet order cannot be submitted as the price is invalid

PROTECTION_TYPE_INVALID 

An invalid protection type has been submitted

PROTECTION_PERIOD_INVALID 

An invalid protection period has been submitted

INVALID_MATCHED_TRADE_ID 

The matched trade id to cancel does not exist

TRADE_ALREADY_DELETED 

The matched trade id to cancel has already been deleted

OUTSIDE_UNDERLYING_PRICE_LIMITS 

Strategy cannot be submitted as outside underlying price limits

OBSERVER_LOCKOUT 

ITM locked out by Market Control