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.

Kucoin fetchMyTrades doesn't work

See original GitHub issue
  • OS: Windows
  • Programming Language version: NodeJS
  • CCXT version: 1.75.4

Hello, I’m trying to download order history from Kucoin, but even after searching here in issues, I’m not able to do that.

When I run the command without any option, the result is an empty array. I’m trying to download the history right before the order/trade happened but still without success.

I also found a new fetchMyTradesMethod option, but when I use it, I’m receiving BadRequest: kucoin The interface has been deprecated.

Can I ask for help, please?

  let kucoinMain = new ccxt.kucoin({
    name: 'KucoinMain',
    apiKey: '',
    secret: '',
    password : '',
    enableRateLimit: true,
    //verbose : true,
    //options: { fetchMyTradesMethod: 'private_get_hist_orders' }
  });

  let res = await kucoinMain.fetchMyTrades('LITH/USDT', new Date(2021, 9, 16, 0, 0, 0).getTime());
  console.log(res);
[]

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ludekvodickacommented, Mar 5, 2022

Few more info:

  • fetchClosedOrders also doesn’t work on Kucoin. but fetchBalance correctly displays current assets.

  • The same code works ok for me with Binance/GateIo/FTX

0reactions
carlosmieicommented, Mar 8, 2022

@ludekvodicka Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open Orders Did Not Go Through - KuCoin
We will not intervene or manipulate the price of any token. The user's transactions are entirely free from interference, and the price set...
Read more >
How to retrieve active positions using CCXT library on Kucoin ...
I can get all open orders (take profit ...
Read more >
Utility Sub-commands - Freqtrade
Creates a new strategy from a template similar to SampleStrategy. The file will be named inline with your class name, and will not...
Read more >
Exchanges — ccxt 2.4.71 documentation
Exchanges will remember and track your user credentials and your IP address and will not allow you to query the API too frequently....
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