Compare commits
1 Commits
fcf68b3fe9
...
53148b453d
Author | SHA1 | Date |
---|---|---|
|
53148b453d |
piker/brokers
deribit
|
@ -51,6 +51,7 @@ __brokers__: list[str] = [
|
|||
'ib',
|
||||
'kraken',
|
||||
'kucoin',
|
||||
'deribit',
|
||||
|
||||
# broken but used to work
|
||||
# 'questrade',
|
||||
|
@ -61,7 +62,6 @@ __brokers__: list[str] = [
|
|||
# wstrade
|
||||
# iex
|
||||
|
||||
'deribit',
|
||||
# bitso
|
||||
]
|
||||
|
||||
|
|
|
@ -31,9 +31,7 @@ from typing import (
|
|||
Callable,
|
||||
)
|
||||
|
||||
from pendulum import (
|
||||
now,
|
||||
)
|
||||
from pendulum import now
|
||||
import trio
|
||||
from trio_typing import TaskStatus
|
||||
from rapidfuzz import process as fuzzy
|
||||
|
@ -420,6 +418,7 @@ class Client:
|
|||
new_bars: list[tuple] = []
|
||||
for i in range(len(result.close)):
|
||||
|
||||
timestamp = (start_time + (i * (60 * 1000))) / 1000.0
|
||||
_open = result.open[i]
|
||||
high = result.high[i]
|
||||
low = result.low[i]
|
||||
|
@ -427,12 +426,12 @@ class Client:
|
|||
volume = result.volume[i]
|
||||
|
||||
row = [
|
||||
(start_time + (i * (60 * 1000))) / 1000.0, # time
|
||||
result.open[i],
|
||||
result.high[i],
|
||||
result.low[i],
|
||||
result.close[i],
|
||||
result.volume[i]
|
||||
timestamp, # time
|
||||
_open,
|
||||
high,
|
||||
low,
|
||||
close,
|
||||
volume
|
||||
]
|
||||
|
||||
new_bars.append((i,) + tuple(row))
|
||||
|
|
Loading…
Reference in New Issue