B
     9-ec  ã               @   sŽ   d Z G dd„ dƒZeddƒZeddƒZeddƒZed	d
ƒZeddƒZeddƒZeddƒZeddƒZ	eddƒZ
eddƒZeddƒZeddƒZdS )zÊ
Copyright (C) 2019 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
 and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable.
c               @   s$   e Zd Zdd„ Zdd„ Zdd„ ZdS )ÚCodeMsgPairc             C   s   || _ || _d S )N)Ú	errorCodeÚerrorMsg)ÚselfÚcodeÚmsg© r   ú®G:\My Drive\STUDY\EPAT\09 TBP - Trading & Back-testing Platforms\TBP04 - Backtesting & Live Trading\IB IBridgePy API\02 Python 3.7 IBridgePy_Win_Anaconda37_64\ibapi\errors.pyÚ__init__   s    zCodeMsgPair.__init__c             C   s   | j S )N)r   )r   r   r   r   r      s    zCodeMsgPair.codec             C   s   | j S )N)r   )r   r   r   r   r      s    zCodeMsgPair.msgN)Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r   r   r      s   r   iõ  zAlready connected.iö  aa  Couldn't connect to TWS. Confirm that "Enable ActiveX and Socket EClients" 
is enabled and connection port is the same as "Socket Port" on the 
TWS "Edit->Global Configuration...->API->Settings" menu. Live Trading ports: 
TWS: 7496; IB Gateway: 4001. Simulated Trading ports for new installations 
of version 954.1 or newer:  TWS: 7497; IB Gateway: 4002i÷  z,The TWS is out of date and must be upgraded.iø  zNot connectediù  z Fatal Error: Unknown message id.iú  zUnsupported versioniû  zBad message lengthiü  zBad messageiý  z(Exception caught while reading socket - i  zFailed to create socketi  zSSL specific error: iC  zInvalid symbol in string - N)Ú__doc__r   ZALREADY_CONNECTEDÚCONNECT_FAILÚ
UPDATE_TWSÚNOT_CONNECTEDZ
UNKNOWN_IDZUNSUPPORTED_VERSIONÚ
BAD_LENGTHÚBAD_MESSAGEZSOCKET_EXCEPTIONZFAIL_CREATE_SOCKZSSL_FAILZINVALID_SYMBOLr   r   r   r   Ú<module>   s   	









