Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def _create_candle(self, index):
- candle = Candle(index)
- self.candles.append(candle)
- def o(response):
- candle.open = response.result
- def h(response):
- candle.high = response.result
- def l(response):
- candle.low = response.result
- def c(response):
- candle.close = response.result
- def v(response):
- candle.volume = response.result
- def t(response):
- candle.time = response.result
- self._api.send("O", lambda response: candle.open = response.result, self._ds_id, index) # не работает
- self._api.send("H", h, self._ds_id, index)
- self._api.send("L", l, self._ds_id, index)
- self._api.send("C", c, self._ds_id, index)
- self._api.send("V", v, self._ds_id, index)
- self._api.send("T", t, self._ds_id, index)
Add Comment
Please, Sign In to add comment