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 fetch_my_trade fails with recent timestamps

See original GitHub issue
  • OS: Windows 10 64 bit
  • Programming Language version: Python 3.6
  • CCXT version: 1.18.430
  • Exchange: kucoin
  • Method: fetchMyTrades

When I do fetchMyTrades without a since parameter (just kucoin.fetchMyTrades( ) ) I get my trades from after 2019-02-18 (last recent one was today). However, when I give a timestamp that is inbetween 2019-02-18 and now, e.g. exchange.fetchMyTrades(since=1551448000000)

I get: []

PS: When I provide some timestamp before 2019-02-18, e.g. 1540048000000, it works again as expected.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
kroitorcommented, Jul 4, 2019

We are going to add a new option that changes this behavior for fetchMyTrades:

import ccxt
exchange = ccxt.kucoin({
    'options': {
        // ← default, also: 
        'fetchMyTradesMethod': 'private_get_fills', // 'private_get_limit_fills', 'private_get_hist_orders'
    }
})
1reaction
MarcelBeiningcommented, Apr 3, 2019

Yes I’ll close. I will start complaining @ kucoin as long as they do not make this as simple as the other endpoint paginations 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exchanges — ccxt 2.4.71 documentation
The fetchTrades method shown above returns an ordered list of trades (a flat array, sorted by timestamp in ascending order, oldest trade first,...
Read more >
KuCoin API error for historical data in python - Stack Overflow
I need to download 1min kline data from 2019 from Kucoin API. ... '%Y-%m-%d %H:%M').replace(tzinfo=timezone.utc).timestamp()) data ...
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 >
python/ccxt/kucoin.py - searchcode
searchcode is a free source code search engine. Code snippets and open source (free software) repositories are indexed and searchable.
Read more >
CCXT-REST API Documentation
Retreives the current exchange connection details given the ... If the exchange integration had an authentication issue (most probably nonce error).
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