Skip to content

Commit

Permalink
Avoid ValueError when querying with the txid of an open transaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiktraxl committed Aug 24, 2020
1 parent ceb9af7 commit 39dd7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pykrakenapi/pykrakenapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ def query_orders_info(self, txid, trades=False, userref=None, otp=None):
orders = pd.concat((orders, descr), axis=1)
for col in ['closetm', 'expiretm', 'opentm', 'starttm']:
if col in orders:
orders.loc[:, col] = orders[col].astype(int)
orders.loc[:, col] = orders[col].astype(float)
for col in ['cost', 'fee', 'price', 'vol', 'vol_exec',
'descr_price', 'descr_price2']:
orders.loc[:, col] = orders[col].astype(float)
Expand Down

0 comments on commit 39dd7a7

Please sign in to comment.