| 9 | |
| 10 | |
| 11 | class ScanData(Object): |
| 12 | def __init__( |
| 13 | self, |
| 14 | contract=None, |
| 15 | rank=0, |
| 16 | distance="", |
| 17 | benchmark="", |
| 18 | projection="", |
| 19 | legsStr="", |
| 20 | marketName="", |
| 21 | ): |
| 22 | self.contract = contract |
| 23 | self.rank = rank |
| 24 | self.distance = distance |
| 25 | self.benchmark = benchmark |
| 26 | self.projection = projection |
| 27 | self.legsStr = legsStr |
| 28 | self.marketName = marketName |
| 29 | |
| 30 | def __str__(self): |
| 31 | return ( |
| 32 | "Rank: %d, Symbol: %s, SecType: %s, Currency: %s, Distance: %s, Benchmark: %s, Projection: %s, Legs String: %s, MarketName: %s" |
| 33 | % ( |
| 34 | self.rank, |
| 35 | self.contract.symbol, |
| 36 | self.contract.secType, |
| 37 | self.contract.currency, |
| 38 | self.distance, |
| 39 | self.benchmark, |
| 40 | self.projection, |
| 41 | self.legsStr, |
| 42 | self.marketName |
| 43 | ) |
| 44 | ) |
| 45 | |
| 46 | |
| 47 | NO_ROW_NUMBER_SPECIFIED = -1 |
no outgoing calls
no test coverage detected