MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / BarData

Class BarData

packages/ibkr/ref/source/pythonclient/ibapi/common.py:138–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138class 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
162class RealTimeBar(Object):

Callers 3

decodeHistoricalDataBarFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected