question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kraken fetchOrderTrades() Error

See original GitHub issue

OS: Ubuntu WSL Programming Language version: Python3.8 CCXT version: 1.62.38

Here is the minimal code:

exchange_id = "Kraken"
exchange_class = getattr(ccxt, exchange_id)
exchange = exchange_class(
            {'apiKey': api_key, 'secret': api_secret,
            'enableRateLimit': True,})

orderId = "ABCD-1234" #just an example
orderDetails = exchange.fetch_order_trades(orderId)
print(orderDetails)

Here is the error. What is the trades param or an array of trade id strings? I thought have order id would be enough to get details on the order.

ccxt.base.errors.ArgumentsRequired: kraken fetchOrderTrades() requires a unified order structure in the params argument or a 'trades' param(an array of trade id strings)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnSmithyycommented, Dec 21, 2021

How would I go about handling this? Seems every exchange will have its own additional params needed to perform fetchOrderTrades.

Not all, but this one does, yes. Kraken is not very standard in regard of order trades, unfortunately. I will look into adding a workaround. In the meantime, you have to handle it in a special-case like if (exchange.id === 'kraken') { }.

Ah shoot. I will do a special case for now, I’d love to see what the workaround is when it’s released!

Thank you for taking the time to answer my questions! Keep up the good work you and your team does for ccxt 😃

1reaction
kroitorcommented, Dec 21, 2021

After reading the docs a bit more, I understand that fetchOrder is relating to the order in general and fetchOrderTrades relates to “fills” aka orders/trades that were filled. Is my understanding correct?

Yes, that is correct.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does this error message mean? - Kraken Support
This error occurs when there is an insufficient amount of funds in your chosen currency. To see the available balance for your selected...
Read more >
ccxt/kraken.py at master - GitHub
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges - ccxt/kraken.py at master · ccxt/ccxt....
Read more >
Exchanges — ccxt 2.4.71 documentation
The ccxt library is a collection of available crypto exchanges or exchange classes. Each class implements the public and private API for a...
Read more >
kraken.py | searchcode
searchcode is a free source code search engine. Code snippets and open source (free software) repositories are indexed and searchable.
Read more >
Error Messages, by Exakat
Message File Line $this‑>id . ' allows limit orders only' /php/itbit.php 566 $this‑>id . ' returned ' . $this‑>json($response) /php/cex.php 1234 /php/cex.php 581
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found