huobipro fetchOpenOrders: consider using different endpoints depends on whether symbol param is present
See original GitHub issue- OS: MacOS 10.14.5
- Programming Language version: Nodejs 10.15.3
- CCXT version: 1.18.829
- Exchange: huobipro
- Method: fetchOpenOrders
Suggestion:
- Use
v1/order/openOrders
ifsymbol
parameter is present. - If not, there’s a way to get open orders of all symbols using
v1/order/orders?states=submitted,partial-filled,created
. The documentation says the endpoint will be deprecated, but their website is currently using it anyway
This is the request URL comes from their website querying for open orders
https://www.hbg.com/-/x/pro/v1/order/orders?states=submitted,partial-filled,created&size=11
(I guess the APIs they’re using are the same except the https://www.hbg.com/-/x/pro/v1/
part)
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Exchanges — ccxt 2.4.71 documentation
symbols : A non-associative array (a list) of symbols available with an exchange, ... Some exchanges may have varying rate limits for different...
Read more >Change Log – Huobi API Reference v1.0 - GitHub Pages
Release Time (UTC +8) API New / Update
2022.06.24 POST /v2/sub‑user/api‑key‑generation update
2022.06.17 POST /v1/dw/withdraw/api/create update
2022.01.21 GET v1/common/symbols , GET v1/common/currencys Update
Read more >CCXT | PDF | Java Script | Software - Scribd
The ccxt library currently supports the following cryptocurrency exchange markets and trading APIs: country / region logo id name ver doc . ....
Read more >Binance Actual Exchange Site Bitfinex Pc – Astangaayurvedcenter
Play Video. Bitfinex, the controversy-ridden cryptocurrency exchange, announced its collaboration with a hybrid Ethereum-based trading platform, Ethfinex, to ...
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 FreeTop 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
Top GitHub Comments
The “fetchOpenOrdersV1” method in the huobipro class that calls is the “order/orders” api endpoint is returning the following error from huobi for me when no symbol is provided:
Looking through the docs they too seem to reflect requiring the symbol field on the order/orders endpoint now.
Unless I’m missing something in the docs, there is not a method that returns all open orders as far as I can tell.
We have reverted the defaults and the called endpoints to how they were before adding this change and we have added two options:
The
fetchOpenOrdersV1
method is the default and it will use theprivateGetOrderOrders
endpoint by default.Related: #5376.