Help with HuobiPro market buy trading limits: min amount and cost
See original GitHub issue- Programming Language version: JS (React Native 0.57.8)
- CCXT version: 1.18.193
- Exchange: huobipro
Hi, I have a question regarding trading limits for HoubiPro: does limits.amount.min
, in this case, represent the minimum cost of the order, instead of the minimum amount of base currency?
The warning returned while creating an order without the price argument states that:
[…] To switch off self warning exception and specify cost in the amount argument, set .options[createMarketBuyOrderRequiresPrice] = False.[…]
so it seems that if I don’t set that flag, I have to specify the base currency amount, right?
However, I receive an invalid-amount
error response even if the amount is greater than limits.amount.min
.
An example could be ADA/BTC, whose minimum amount is reported to be 0.1:
huobipro.createOrder('ADA/BTC', 'market', 'buy', 191.03, 0.000011)
I have a successful outcome only if the cost of the order exceeds what is reported in the minimum.
Thanks in advance for your time. Please let me know if you need some more information.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Great, I can confirm that now it’s solved and working correctly. Thanks for your support!
Thank you a lot for the detailed answer.
This is the verbose output generated by the already mentioned
createOrder
call:Please note that I have replaced AccessKeyId and account-id with “X”, hoping it’s not a problem.
Reading the log, it seems that the requested amount is actually invalid: 0.