Skip to content

huobi create_market_buy_order() error  #5197

@runrun88

Description

@runrun88
  • OS: window10
  • Programming Language version: py
  • CCXT version 1.18.562
  • Exchange: huobipro
  • Method: create_market_buy_order()

the code ::

         market_price_buy = float(ticker_base['bid'])
        order_result = self.huobi.create_market_buy_order('EOS/BTC', market_buy_size, market_price_buy)

I have add the param: price

But when I use create_market_buy_order() it says error:
InvalidOrder(self.id + " market buy order requires price argument to calculate cost(total amount of quote currency to spend for buying, amount * price). To switch off self warning exception and specify cost in the

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions