Skip to content

Commit

Permalink
🪪 fix(order): kraken order_id 🪪 (#220)
Browse files Browse the repository at this point in the history
* #patch

* remove unused imports
  • Loading branch information
alkalescent authored Jan 14, 2023
1 parent 73db735 commit 17be766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/execute_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@

order = kr.order(base, quote, side, spend_ratio, test)
if not test:
order = kr.get_order(order['txid'])
order_id = order['txid'][0]
order = kr.get_order(order_id)
trades = kr.get_trades(order['trades'])
order = kr.standardize_order(order, trades)
order['exchange'] = C.KRAKEN
Expand Down

0 comments on commit 17be766

Please sign in to comment.