Skip to content

Commit

Permalink
Merge pull request #418 from pikers/kraken_pair_updates
Browse files Browse the repository at this point in the history
Kraken pair updates
  • Loading branch information
goodboy authored Nov 10, 2022
2 parents a44b8e3 + e547b30 commit 4729e4c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions piker/brokers/kraken/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class Pair(Struct):
margin_call: str # margin call level
margin_stop: str # stop-out/liquidation margin level
ordermin: float # minimum order volume for pair
tick_size: float # min price step size


class OHLC(Struct):
Expand Down Expand Up @@ -270,8 +271,12 @@ async def get_ohlc(
]:

nonlocal queries
if queries > 0:
raise DataUnavailable
if (
queries > 0
or timeframe != 60
):
raise DataUnavailable(
'Only a single query for 1m bars supported')

count = 0
while count <= 3:
Expand Down

0 comments on commit 4729e4c

Please sign in to comment.