Skip to content

Help with HuobiPro market buy trading limits: min amount and cost #4799

Description

@syron0
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions