commit
4729e4c6bc
|
@ -85,6 +85,7 @@ class Pair(Struct):
|
||||||
margin_call: str # margin call level
|
margin_call: str # margin call level
|
||||||
margin_stop: str # stop-out/liquidation margin level
|
margin_stop: str # stop-out/liquidation margin level
|
||||||
ordermin: float # minimum order volume for pair
|
ordermin: float # minimum order volume for pair
|
||||||
|
tick_size: float # min price step size
|
||||||
|
|
||||||
|
|
||||||
class OHLC(Struct):
|
class OHLC(Struct):
|
||||||
|
@ -270,8 +271,12 @@ async def open_history_client(
|
||||||
]:
|
]:
|
||||||
|
|
||||||
nonlocal queries
|
nonlocal queries
|
||||||
if queries > 0:
|
if (
|
||||||
raise DataUnavailable
|
queries > 0
|
||||||
|
or timeframe != 60
|
||||||
|
):
|
||||||
|
raise DataUnavailable(
|
||||||
|
'Only a single query for 1m bars supported')
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
while count <= 3:
|
while count <= 3:
|
||||||
|
|
Loading…
Reference in New Issue