| 136 | } |
| 137 | |
| 138 | class BarData(Object): |
| 139 | def __init__(self): |
| 140 | self.date = "" |
| 141 | self.open = 0.0 |
| 142 | self.high = 0.0 |
| 143 | self.low = 0.0 |
| 144 | self.close = 0.0 |
| 145 | self.volume = UNSET_DECIMAL |
| 146 | self.wap = UNSET_DECIMAL |
| 147 | self.barCount = 0 |
| 148 | |
| 149 | def __str__(self): |
| 150 | return ( |
| 151 | f"Date: {self.date}, " |
| 152 | f"Open: {floatMaxString(self.open)}, " |
| 153 | f"High: {floatMaxString(self.high)}, " |
| 154 | f"Low: {floatMaxString(self.low)}, " |
| 155 | f"Close: {floatMaxString(self.close)}, " |
| 156 | f"Volume: {decimalMaxString(self.volume)}, " |
| 157 | f"WAP: {decimalMaxString(self.wap)}, " |
| 158 | f"BarCount: {intMaxString(self.barCount)}" |
| 159 | ) |
| 160 | |
| 161 | |
| 162 | class RealTimeBar(Object): |
no outgoing calls
no test coverage detected