cobinhood has wrong lot size
See original GitHub issuehttps://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:
- Created 6 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
thank you very much! it is working now!
price
precision is 0.1 which is consistent with theirquote_increment
.amount
precision too.lot
is deprecated, these values should go intomarket.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:
I wonder what it will say about it.
And don’t forget to cancel this order afterwards )