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.

Huobi marketorder cannot be created

See original GitHub issue

MUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):

Make sure your local version of CCXT is up to date. Check by comparing the output of ccxt.version to https://github.com/ccxt/ccxt/blob/master/package.json#L3

  • OS: linux
  • Programming Language version: nodejs
  • CCXT version: 1.56.18
this.exchange.createMarketOrder(pair, side, amount); // user huobi pro account to create marketorder
(node:476942) UnhandledPromiseRejectionWarning: ExchangeError: huobipro {"status":"error","err-code":"invalid-type","err-msg":"Parameter `type` is invalid.","data":null}
    at huobipro.handleErrors (/home/aaa/bb/node_modules/ccxt/js/huobi.js:1592:23)
    at /home/aaa/bbb/node_modules/ccxt/js/base/Exchange.js:657:18
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async timeout (/home/aaa/bbb/node_modules/ccxt/js/base/functions/time.js:195:24)
    at async huobipro.createOrder (/home/aaa/bbb/node_modules/ccxt/js/huobi.js:1195:26)
    at async BulkTradeMO.run (/home/aaa/bbb/strategy/BulkTradeMO.ts:101:22)
    at async main (/home/aaa/bbb/strategy/SlowTrade.ts:66:11)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thebottokencommented, Sep 12, 2021

Ok. Thanks. I thought it was the symbol which should be lowercased.

I just switched to lower case for side. it worked.

0reactions
kroitorcommented, Sep 12, 2021

@thebottoken good to know you figured it out, thanks for the feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create market buy order on Huobi Global #14412
This time is not a bug but an implementation quirk, Huobi and some other exchanges for market buy orders require the user to...
Read more >
Limit Order Operation Instruction(Web) - Huobi
Post only order,It will not be immediately traded in the market. If the order is immediately concluded with an existing order, the order...
Read more >
“Trigger Order” Function Introduction ... - Huobi
It is bought or sold at the current market price according to the buying amount or selling quantity set by the user in...
Read more >
Trading Guide of Trigger Orders-Huobi-Official Huobi Website
Order price: The price users enter to sell/buy contracts. Once the latest traded price has reached the "trigger price"/” Trigger”, the system will...
Read more >
Limit Order Operation Instruction(Web) - Huobi
Post only orders will not be immediately traded on the market. If the order is immediately concluded with an existing order, the order...
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