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 only returns 6 asks and 6 bids and 10 trades

See original GitHub issue

kucoin only returns 6 asks and bids(separately) and 10 trades even if i provide depth parameter.

exchange = ccxt.kucoin()
exchange.loadMarkets()

lel = exchange.fetchOrderBook('ACT/BTC', {"depth":"100"})
pprint.pprint(lel)

{'asks': [[4.535e-05, 631.323],
          [4.536e-05, 2.4947],
          [4.552e-05, 13.2283],
          [4.565e-05, 10.0],
          [4.575e-05, 3737.226],
          [4.576e-05, 4000.0]],
 'bids': [[4.483e-05, 241.0],
          [4.451e-05, 2000.0],
          [4.407e-05, 5555.0],
          [4.391e-05, 2428.0708],
          [4.39e-05, 235.8133],
          [4.375e-05, 820.5871]],
 'datetime': '2018-01-15T17:28:53.819Z',
 'timestamp': 1516037332819}

Should be 150 according to api doc atleast: https://liqui.io/api

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
hippylovercommented, Jan 15, 2018

oh XD. I just looked at the “method depth” name. Goddamit!

1reaction
trainerbillcommented, Jan 19, 2018

@hippylover Same boat. don’t think its possible on their backend. Limit and since have zero affect on the api.

https://kucoinapidocs.docs.apiary.io/#reference/0/market/recently-deal-orders(open)

Read more comments on GitHub >

github_iconTop Results From Across the Web

KuCoin Futures New User Guide
KuCoin Futures Pro is a comprehensive cryptocurrency derivative trading platform and offers various popular leveraged crypto contract ...
Read more >
KuCoin Trading Tutorial (How to Trade Crypto on ... - YouTube
How to trade cryptocurrency on KuCoin - KuCoin trading tutorial with limit orders, chart setup, and trading screen overview.
Read more >
KuCoin Tutorial for Beginners 2022 (How to Trade on KuCoin)
KuCoin tutorial for beginners - how to trade on KuCoin, KuCoin trading bots, lending and more. Trade on KuCoin : ...
Read more >
Trade Crypto on KuCoin Smartphone App - YouTube
How to use KuCoin app to trade cryptocurrency - KuCoin app tutorial ... tab 6 :53 Deposit & transfer crypto on KuCoin 9:07...
Read more >
KuCoin API - An Introductory Guide - AlgoTrading101 Blog
10 min read ... KuCoin API is a method that allows us to automatically trade ... this order book only bids and asks...
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