Friday, October 04, 2024
Software Development

Huobi Rest Api V2 0

If there is “contract_code” parameter, canceling all contracts under this code. Query the order status by option-api/v1/option_order_info.If the status is 10,the order is failed。 The ‘update_time’ field of index data hasn’t been changed over 5 minutes. Periodical Push when the kline data hasn’t changed according to the kline period. When the data received by the client is failed or delayed, the old data buffer in the server will be discarded.The latest BBO will be pushed. When data_type is incremental,snapshot data wil be pushed for the first time.

A:Please refer to the response from endpoint GET /v2/account/withdraw/quota, where quota per request, daily quota, annual quota, overall quota are available. Parent user creates a withdraw request from spot account to an external address , which doesn’t require two-factor-authentication. Via this endpoint, parent user should be able to transfer points between crypto exchange connectors development parent user and sub user, sub user should be able to transfer point to parent user. Group ID is the transaction ID generated while parent user exchanging the ‘terminable’ points. Via this endpoint, user should be able to query ‘termless’ point’s balance, as well as ‘terminable’ point’s balance including its group IDs and individual expiration date.

Added Query Info Of Take

If the user fills in the start-time but does not fill in the end-time parameter, the server will return the historical order from near to far [start-time + 48 hours, start-time]. If an order is created via API, then it’s no longer queryable after being cancelled for 2 hours. Via this endpoint parent user is able to query account list of sub user by specifying a UID. Via this endpoint parent user is able to query a full list of sub user’s UID as well as their status. This endpoint is used by the parent user to query their own API key information, and the parent user to query their sub user’s API key information. Below is the error code, error message and description returned by Account APIs.

Best Cryptocurrencies on Huobi Global • Benzinga Crypto – Benzinga

Best Cryptocurrencies on Huobi Global • Benzinga Crypto.

Posted: Mon, 30 Aug 2021 07:00:00 GMT [source]

This Huobi Spot API has updated features for version 2.0 that include the ability to allow a sub user to make a deposit, an added account ledger query and others. Huobi is a Chinese BitCoin and cryptocurrency online digital asset exchange for BTC, ETH, XRP, LTC, HUSD, LINK and more. Market Detail(market.$contract_code.detail) is the merged market data. The snapshot orderbook subscription(market.$contract_code.depth.$type) is checked once every 100MS.If there is an update,it will be pushed. It will be pushed at least 1 second.The incremental orderbook subscription is checked once every 30MS.If there is an update,it will be pushed.If there is no update, it will not be pushed. A book_l3 message is sent for each snapshot or update of the order book in the level 3 format (order-by-order).

Q3: Are There Historical Kline Data Or Historical Market Trade Data?

If exchange has not reported who the aggressor side of the transaction was, then we will classify who it most probably was based on current market view. If exchange has not reported who was aggressor side of transaction, we will classify who most probably was based on current market view. Get the historical exchange rates between two assets in the form of the timeseries.

huobi api pairs

It allows its clients to purchase, trade, store, borrow, and lend hundreds of digital currencies. The platform offers robust digital asset trading and management services. When querying order cancellation data from Order Details Acquisition interface, if there are parameters created_at and order_type, only 90 days data can be queried.

Encode the hash code with base-64 to generate the signature. Use the pre-signed text in step 6 and your API Secret Key to generate hash code by HmacSHA256 hash function. The connection can be established by a single handshake, and then server can push the notification to client actively. POST/v1/order/orders/submitCancelClientOrderUpdateFor completed orders, clientOrderId will be valid for 2 hours since the order creation . TagNameDescription262MDReqIdMDReqId from Market Data Request message.281MDReqRejReasonReason for the rejection of a Market Data request.

Rate Limit

The request limit define number of maximum requests that could be executed in the 24 hours period (sliding/rollowing window – always last 24 hours from specific moment) for your subscription. Successful HTTP responses have the status code 200 and the body in a format according to documentation of the requested resource.

huobi api pairs

# balane is greater than 1.000, sell total balance on the market. The price is retrieved by first checking if the request went ok. Huobi is a Chinese exchange that offers trading in STEEM/USDT. While their website offers decent translation to English, the API documentation is lacking a bit.

Request Kline Data

The frequency limit of this interface is 5 times per second. “The leverage is invalid. Please contact the customer service.” Only if a user has positions of a single token and has no open orders, the leverage is available to be switched flexibly. Lightning Close Position,is order with rival price and optimal 30 grades. And the unsettled part will be automatically converted into a limited price order. Both order_id and client_order_id can be used for order withdrawl,one of them needed at one time,if both of them are set,the default will be order id。

huobi api pairs

Utils.py contains the required code to perform the API requests. So we will “feed” all market data events into our simple book. This way we can be sure that we have an accurate picture of what is going on in a market . Sometimes, WebSocket’s message is delivered faster than you receive your Order ID which leaves you guessing what this report is all about. To pass the KYC check, users are required to submit their official names together with a government-issued ID and photograph to complete the process. A valid driver’s license, passport, or utility bill will be fine.

Websocket Interface For System Status Updates

Estimated settlement price will be calculated and updated every 6 seconds. The pending take-profit and stop-loss (tp/sl) orders and trigger orders will not occupy the quantity of the position. Besides, the returned data will be [] as well if the interval between “from” and “to” exceeds 2 years.

  • All via API interface submited price limit orders that had been cancelled will only be kept for 2 hours.
  • Please check your own signature code after demo verification is successful.
  • Querying condition “created_at” uses 13-bit long type time stamp .
  • Huobi Global, or simply Huobi, is one of the biggest cryptocurrency exchanges in the world.
  • This interface is used to transfer assets between Spot account and Coin Margined Swap account.
  • Huobi Global is a Singapore based cryptocurrency exchange founded in 2013.

If the above four types of status code appear, the returned data is not accurate and couldn’t be used as reference. The coin margined swap, future, option swap and USDT margined swap limit the rate separately. Please check the ratelimit in the api ratelimit instructions, and you can print the current ratelimit in the header of the API response to check whether the ratelimit is exceeded. It is recommended to increase the request sql server interval delay to avoid exceeding the ratelimit. 11、Modified “trade_type” and “orders” in the interface of querying history orders. Added “reduce positions to close long” and “reduce positions to close short” types in request parameter “trade_type”; Added string “liquidation_type” in orders array of returning parameter. The application will show how to establish two outgoing FIX connections to the XTRD FIX Gateway.

This endpoint allows user to transfer asset between parent and sub account. Via this endpoint, parent user is able to query sub user’s status by specifying a UID. Sub user management APIs provide sub user account management , sub user API key management , sub user address query and balance query. Below is the response code, message and description returned by Wallet APIs.

Sub Subscribe Parameter Rules:

Koinly isn’t just a cryptocurrency tax calculator, it’s also a portfolio tracker. Clients can create Access Key and Secret Key on Huobi which Access Key is the API access key kept by the client. To apply/change API key, please go to “Account-API Management” on Huobi Option.

Back To Top