B
     9-eä  ã               @   sH   d Z ddlmZ ddlmZmZ G dd„ deƒZdZG dd„ deƒ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.
é    )ÚObject)ÚUNSET_INTEGERÚUNSET_DOUBLEc               @   s   e Zd Zddd„Zdd„ ZdS )	ÚScanDataNr   Ú c             C   s(   || _ || _|| _|| _|| _|| _d S )N)ÚcontractÚrankÚdistanceÚ	benchmarkÚ
projectionÚlegsStr)Úselfr   r   r	   r
   r   r   © 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\scanner.pyÚ__init__   s    zScanData.__init__c          	   C   s.   d| j | jj| jj| jj| j| j| j| jf S )NzmRank: %d, Symbol: %s, SecType: %s, Currency: %s, Distance: %s, Benchmark: %s, Projection: %s, Legs String: %s)	r   r   ÚsymbolÚsecTypeÚcurrencyr	   r
   r   r   )r   r   r   r   Ú__str__   s    zScanData.__str__)Nr   r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s   
r   éÿÿÿÿc               @   s   e Zd Zdd„ Zdd„ ZdS )ÚScannerSubscriptionc             C   s‚   t | _d| _d| _d| _t| _t| _t| _	t| _
t| _d| _d| _d| _d| _d| _d| _t| _t| _d| _t| _d| _d| _d S )Nr   F)ÚNO_ROW_NUMBER_SPECIFIEDÚnumberOfRowsÚ
instrumentÚlocationCodeÚscanCoder   Ú
abovePriceÚ
belowPricer   ÚaboveVolumeÚmarketCapAboveÚmarketCapBelowÚmoodyRatingAboveÚmoodyRatingBelowÚspRatingAboveÚspRatingBelowÚmaturityDateAboveÚmaturityDateBelowÚcouponRateAboveÚcouponRateBelowÚexcludeConvertibleÚaverageOptionVolumeAboveÚscannerSettingPairsÚstockTypeFilter)r   r   r   r   r      s*    zScannerSubscription.__init__c             C   s   d| j | j| jf }|S )Nz.Instrument: %s, LocationCode: %s, ScanCode: %s)r   r   r   )r   Úsr   r   r   r   5   s    zScannerSubscription.__str__N)r   r   r   r   r   r   r   r   r   r      s   r   N)	Ú__doc__Úibapi.object_implemr   Úibapi.commonr   r   r   r   r   r   r   r   r   Ú<module>   s
   