Huobi marketorder cannot be created
See original GitHub issueMUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):
- https://github.com/ccxt/ccxt/wiki/FAQ
- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-submit-an-issue
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:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok. Thanks. I thought it was the symbol which should be lowercased.
I just switched to lower case for
side
. it worked.@thebottoken good to know you figured it out, thanks for the feedback!