Rest Api Specification For Brokers

Fill in at least one of the take-profit trigger price and stop-loss trigger price. If all the trigger price is not filled in, this type of take-profit and stop-loss order will not be placed. If from_id is not filled and the query direction is prev, query back from the end time; if from_id is not filled and the query direction is next, query from the start time. Query history orders with creation time greater than or equal to the start time but less than or equal to the end time. Created_at should use timestamp of long type as 13 bits , if send the accurate timestamp for “created_at”, query performance will be improved. The real_profit is calculated with the average price in open position and the transaction average price in close position .

Huobi Review 2021: Fees, Payment Methods, Safety! – CryptoNewsZ

Huobi Review 2021: Fees, Payment Methods, Safety!.

Posted: Tue, 21 Sep 2021 07:00:00 GMT [source]

It is recommended that place the server in AWS Tokyo C zone and use the api.hbdm.vn domain, which can effectively reduce network disconnection and network timeout. Take the request character string formed in the last step and API Secret Key as two parameters, encoding them with the Hash Function HmacSHA256 to get corresponding Hash value. 16、Added four kinds of transfer statements between master account and sub-accounts in returning financial record interface.

Get The Balance Of The Margin Loan Account(isolated)

If the Dead man’s switch is turned on and the API call isn’t sent twice within the set time, the platform will cancel all of your orders on the spot market(a maximum cancellation of 500 orders). This endpoint submit cancellation for multiple orders at once with given ids.

huobi api pairs

Stable coin APIs provide stable coin quote query and exchange. A maker rebate would be paid in batch mode for multiple trades. Update when either account balance changed or available balance changed. 4) While there is nothing change between two snapshots in past 100ms, the 150 levels incremental MBP feed still sends out a message which contains two blank objects – bids & asks.

The signature process of option is similar to huobi future . In addition to the following precautions,please refer to the option or the swap or future demo to verify whether the signature is successful. Please check your own signature code after demo verification is successful.The coin margined swap code demo is here. When clients choose merged depth data, WebSocket server will Kanban (development) only display the merged price within price steps in order book. Please note that the merged depth price will not make any change on the actual order price. The return data from Cancel An Order Interface only means that order cancelation designation is executed successfully. To check cancelation result, please check your order status at Get Information Of An Order interface.

Transfer Asset From Cross Margin Account To Spot Trading Account(cross)

If your message will be incorrect, we will send you error message and disconnect connection afterwards. Get current order book snapshot for all or a specific symbol. API calls described in this section are related to downloading OHLCV timeseries data.

huobi api pairs

Client_order_id,order status query is available for orders placed within 8 hours; Otherwise, clients cannot check orders placed beyond 8 hours. Client_order_id, order status query is available for orders placed within 8 hours; Otherwise, clients cannot check orders placed beyond 8 hours. Post-Only orders are limit orders that will never take liquidity (also called maker-only order). There are order limit and position for post-only orders which the upper limit is 500,000 for open/close orders. As long as the user has had funds, there will be settlement records.

Response Parameters:

By default, the asset transfer from sub user’s spot account to parent user’s spot account is allowed. This Explorer encapsulates a shared API Key, and will show the signature calcuation steps and request parameters when it invokes API. If you encounter signature problem, you can copy the API Key and timestamp to your program and compare with the result in Explorer. You can use it to receive real-time market data from us and it’s an alternative to WebSocket protocol. Reconnect message is sent by the server to all connected clients when the server will be restarted or shut down at the defined exact time included in the message content.

2) In order to get these items from Huobi server, adopt the “nextId” as “fromId” and submit another request, with other request parameters no change. The maximum query window size set by “startTime” & “endTime” is 10-day, which mean a maximum of 10-day records are queriable per request. The query window can be within the last 180 days, which means, by adjusting “startTime” & “endTime” accordingly, the records in last 180 days are queriable. This endpoint returns the amount changes of specified user’s account. 2) In order to get these items from Huobi server, adopt the “next-id” as “from-id” and submit another request, with other request parameters no change.

It’s worth mentioning that Huobi Global, unlike many other exchanges, has never been hacked and has millions of customers all over the globe. Robust security features are a staple on Huobi to safeguard users’ funds. 98% of the cryptocurrency is kept in cold storage on multi-signature wallets, while 2% is held online to facilitate smooth operations. In the unlikely event of a hack or catastrophic event, a recovery fund is available to cover monies lost by its users. This money is known as the user protection fund initiative, with plans to store 20,000 BTC in reserve. The Huobi API has major limitations which makes it practically impossible to sync all trades for all different trading pairs at the moment. We are currently in discussion with Huobi about this and we hope that they will fix this on their end in the near future.

Cancel Conditional Orders Before Triggering

Most of the interface is now complete, and the user can continue to extend it based on my design, working with me to improve it. These APIs don’t require API keys, but it has 10 calls / second limit. If you miss this step, Koinly can’t identify when you’re moving funds between your own wallets, which is tax free. Instead, it’ll identify these as deposits or withdrawals, which are subject to tax.

huobi api pairs

The records of cancelled and unfilled limit orders are only kept for 24 hours. Client_order_id, order status query is available for orders placed within 24 hours; Otherwise, clients cannot check orders placed beyond 24 hours. If you encounter errors such as , indicating that your available position is not enough.You need to query the api option-api/v1/option_position_info to get your available position. Besides the above one rest interface, for getting the infomation that system maintenance with service suspended, could by subscrib system status updates websocket interface. When the contract status is “delivery completed”, the next settlement time of the contract is an empty string.

Add Periodical Push Of Websocket Subscription Of Position: Every 5s

Get historical quote updates within requested time range, returned in time ascending order. Get full list of supported time periods available for requesting OHLCV timeseries data. You can also obtain historical exchange rates of any asset pair, grouped into time periods. Get the current exchange rate between requested asset and all other assets. The concurrency limit defines the number of maximum concurrent API calls/requests that the API could process for your subscription at the current moment. Every API call/request increases the Concurrency limit against quota, and when it finishes, decreases it.

  • The overall access rate, from all API keys under same UID, to single endpoint, shouldn’t exceed the rate limit applied on that endpoint.
  • There are two types of interface, you can choose the proper one according to your scenario and preferences.
  • There is a delay in “Order Details Acquisition” interface (/swap-api/v1/swap_order_detail), so it is better to fill in “created_at” and “order_type” .
  • 16、Added four kinds of transfer statements between master account and sub-accounts in returning financial record interface.

To generate the security code for SMS and Email, you are required to click the “Send” button. Huobi Global reserves the right in its sole discretion to amend, revise, or cancel this announcement at any time and for any reasons without prior notice. In order to facilitate users to use API more conveniently and safely, Huobi Global introduce a new feature, which will allow users to assign permissions to each API Keys. If it is incremental data, you have to maintain local orderbook bids/ asks data. In nodejs and javascript, JSON.parse defaults to int, and numbers with more than 18 digits are parsed using the json-bigint package. Since this push is a poll query status, there may be a delay of 1-2 seconds.

Add An Interface: Subscribe Estimated Funding Rate Kline Data

If you have transactions from before that date, try contacting Huobi customer support for a full historical CSV file. You can import the historical transactions to Coinpanda as well. Note that Huobi only allows for data export for the past 4 months from their API. If you have transactions from before that date, you will need to upload a CSV file with older transactions as well.

Request Format For Subscribe Account Equity Updates Data

It is suggested to use order-ids instead of client-order-ids, so that the cancellation is faster, more accurate and more stable. This endpoint submit a request to cancel an order based on client-order-id . This endpoint crypto exchange connectors development returns the balance of a sub-user specified by sub-uid. This endpoint is used by the parent user to delete the API key of the sub user. This endpoint allow users to view the user ID of the account easily.

Leave a Reply

Your email address will not be published. Required fields are marked *