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.

cobinhood has wrong lot size

See original GitHub issue

https://github.com/ccxt/ccxt/blob/master/python/ccxt/cobinhood.py#L177

                'lot': float(market['quote_increment']),

The lot field of Cobinhood market structure was assigned as quote_increment field of http response. However, they have different semantic meaning. lot field is an amount w.r.t. base currency; while quote_increment field is an amount w.r.t. quote currency (https://cobinhood.github.io/api-public/).

For example, quote_increment of BTC/USDT market is 0.1, which means quote amount of all orders must be a multiple of 0.1USDT. lot of BTC/USDT being 0.1 is not correct.

Unfortunately, it seems Cobinhood does not provide a field in its API of the semantic meaning of lot. I guess its order matching algorithm is based on quote currency amount, which is very uncommon. I suggest leave lot field as undefined.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dancjucommented, Mar 7, 2018

thank you very much! it is working now!

1reaction
mkutnycommented, Mar 6, 2018
  • Looking at their trades it indeed looks like their price precision is 0.1 which is consistent with their quote_increment.
  • I don’t see they provide amount precision too.
  • A side note: lot is deprecated, these values should go into market.precision property.

If you have happened to have some funds on cobinhood could you try to create an order which violates their presumed amount precision? Something like:

ccxt> python examples/py/cli.py cobinhood createLimitBuyOrder BTC/USDT 0.000000001 5000

I wonder what it will say about it.

And don’t forget to cancel this order afterwards )

Read more comments on GitHub >

github_iconTop Results From Across the Web

ccxt-dev/ccxt - Gitter
the method itself does not make a difference here, it's the error handler that ... does decimal_to_precision use lot sizes as well? i'm...
Read more >
Cobinhood (COB) - Whitepaper Database
He used to be entirely right. This post actually made my day. You can not imagine just how a lot time I had...
Read more >
Wrong lot size on MLS, under contract in due diligence period
But Seller declines to give our DD amount or to further renegotiate, though it is a big mistake from them. The seller's agent...
Read more >
Fake volumes in cryptocurrency markets — February report
Wash trading is as high as 88% of the total volume of selected top ... with zero no fees (BitMEX, Bithumb, Cobinhood are...
Read more >
New CoinTracking Features and Updates
Binance (separation of Binance US, import for wrong payout duplicates + import of ... Bitcoin Suisse (new format is now supported) ... Cobinhood...
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