The Lab

Below is a table of result/error codes provided by the API methods when a customer application encounters an error or Whisperer API violation.

 

APIResultDescription
OKSuccess (no error)

COULD_NOT_CONNECT

Connection failed, Server down or invalid host/port
TIMEOUTKeepalive messages timed out connection probably stale
BUFFER_FULLIncoming or outgoing buffers are full
COULD_NOT_OPENFile could not be opened

SOCKERR_DNS

Error resolving the remote address for connection
SOCKERR_CREATEError creating communication socket
SOCKERR_CONNECTError connecting to the remote port
SOCKERR_CLOSEDConnection closed unexpectedly
SOCKERR_READINGError reading from the remote socket
SOCKERR_WRITINGError writing to the remote socket
NOT_CONNECTEDThe dispatcher is not connected
NOT_RUNNINGThe dispatcher is not running
IS_CONNECTEDThe client is already connected
IS_RUNNINGThe dispatcher is already running; only one thread may dispatch on a client instance.
IS_STOPPINGThe dispatcher is stopping; no more outgoing messages allowed
EXCEPTION_THROWNAn exception was raised within a handler function
PROTOCOL_ERRORAn error occurred while encoding/decoding the network protocol.
INCOMPATIBLE_PROTOCOLThe server protocol version is incompatible with the client's protocol version.
INVALID_USERThe supplied username is invalid
INVALID_PASSWORDThe supplied password is invalid for the given username.
USER_ALREADY_CONNECTEDThe supplied username is already connected to the server via another client
COULD_NOT_LOGINOther error attempting to login
INVALID_FEEDThe FeedID provided is invalid
INVALID_MARKETThe MarketID provided is invalid
INVALID_ORDERIDUnable to handle invalid/zero/ or negative price or amount
INVALID_BATCHIDThe batch definition ID provided is invalid
INVALID_CLIENT_ORDERIDThe client ID provided is invalid
INVALID_MARKETDATA_FEEDThe Feed does not support Marketdata
INVALID_TRADING_FEEDThe Feed does not support Trading
USER_LOCKEDThe user is prohibited from logging in
SYSTEM_LOCKEDServer is locked, no users will be able to connect
ADMIN_HANDLER_FAULTAdmin users must use the API's admin handler, normal users must not
INVALID_PERAMETERA parameter provided is invalid
NOT_IMPLEMENTEDThe feature is not implemented
NOT_APPLICABLENull
  • No labels