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

Class RealTimeBar

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

Source from the content-addressed store, hash-verified

160
161
162class RealTimeBar(Object):
163 def __init__(
164 self,
165 time=0,
166 endTime=-1,
167 open_=0.0,
168 high=0.0,
169 low=0.0,
170 close=0.0,
171 volume=UNSET_DECIMAL,
172 wap=UNSET_DECIMAL,
173 count=0,
174 ):
175 self.time = time
176 self.endTime = endTime
177 self.open_ = open_
178 self.high = high
179 self.low = low
180 self.close = close
181 self.volume = volume
182 self.wap = wap
183 self.count = count
184
185 def __str__(self):
186 return (
187 "Time: %s, Open: %s, High: %s, Low: %s, Close: %s, Volume: %s, WAP: %s, Count: %s"
188 % (
189 intMaxString(self.time),
190 floatMaxString(self.open_),
191 floatMaxString(self.high),
192 floatMaxString(self.low),
193 floatMaxString(self.close),
194 decimalMaxString(self.volume),
195 decimalMaxString(self.wap),
196 intMaxString(self.count),
197 )
198 )
199
200
201class HistogramData(Object):

Callers 2

processRealTimeBarMsgMethod · 0.70
realtimeBarMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected