Navbar
简体中文
shell

Introduction

Documentation Summary

Welcome to the Huobi API! You can use our API to access all market data, trading, and account management endpoints.

We have code example in Shell! You can view code examples in the dark area to the right.

You can use the drop down list above to change the API version. You can also use the language option at the top right to switch documentation language.

Market Maker Program

Market maker program gives clients with good market making strategy an opportunity to access customized trading fee structure.

Eligibility Criteria as a Market Maker on Huobi Global

  1. You should possess good market strategy
  2. You must have at least 20 BTC or equivalent assets, not including rebates in your account with Huobi Global

Application Process as Market Maker on Huobi Global

If you satisfied our eligibility criteria and is interested to participate in our market-making project, please email to MM_service@huobi.com with following information:

  1. UIDs (not linked to any rebate program in any accounts)
  2. Provide screenshot of trading volume for the past 30 days or VIP/corporate status with other Exchanges
  3. A brief description in writing of your market-making strategy

Sub Account

Sub account can be used to isolate asset and trading. Asset can be transferred between master account and sub accounts, then sub account user can trade with asset in sub account only. Asset cannot be withdraw from sub account directly.

Sub account has its individual login credential and API key.

Sub account API can access all reference data and market data endpoints. In addition, sub account API can also access below listed endpoints.

Request Mehtod Description
POST/v1/order/orders/place Place an order
POST/v1/order/orders/{order-id}/submitcancel Request to cancel an order
POST /v1/order/orders/batchcancel Request to cancel a batch of orders
POST /v1/order/orders/batchCancelOpenOrders Request to cancel a batch of orders with criteria
GET /v1/account/accounts get the status of an account
GET /v1/account/accounts/{account-id}/balance Get the balance of an account
GET /v1/order/orders/{order-id} Get the details of an order
GET /v1/order/orders/{order-id}/matchresults Get detail match results of an order
GET /v1/order/orders Search for a group of orders, which meet certain criteria (up to 100)
GET /v1/order/matchresults Search for the trade records of an account
GET /v1/order/openOrders Get the open orders of an account (up to 500)

Changelog

Live Date Time (UTC+8) Change Detail
2019.01.17 07:00 Add subscription parameter model.
Subscription does not return frozen balance of sub-account anymore.
2018.07.10 11:00 In /market/history/kline the size parameter value range changes from [1-1000] to [1-2000].
2018.07.06 16:00 In /v1/order/orders/place add buy-limit-maker and sell-limit-maker order types.
Add new endpoint: /v1/order/openOrders.
Add new endpint: /v1/order/orders/batchCancelOpenOrders
2018.07.02 16:00 ETF endpints now support transfer in/out of HB10.
2018.06.20 16:00 Add new endpoint: /market/tickers.

API Access

Access URLs

REST API

https://api.huobi.pro

Websocket Market Feed

wss://api.huobi.pro/ws

Websocket Asset and Order

wss://api.huobi.pro/ws/v1

Endpoint Rate Limit

Each apikey can send maximum of 100 https requests within 10 seconds. Please contact customer support if you believe you need higher limit rate.

Authentication

To protect API communication from unauthorized change, all non-public API calls are required to be signed.

Create API Key

To be able to create signature you should first acquire an API key and the corresponding secret key. You can manage you API keys by login to your account at huobi.com and go to "API Management" under "Account" section.

Signature Method

To sign a call, you need to a few key components of the call to generate a query string, and then a hash is generated with this string, finally the hash is added to the call.

In order to successfully sign a request, you need to follow below steps

  1. Generate the "Query String" for your query

  2. Use "Query String" and your secret key to to created a signature

  3. Add the signature as a path parameter to your query

Generate the "Query String" for your query

Add the query path section of the query string

[HTTP Method]\n[URL Root]\n[Query Path]\n

For example below

GET\napi.huobi.pro\n/v1/order/orders\n

Add the authentication section of the query string

AccessKeyId=[Your API key]&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=[Your Request Timestamp]

For example below

AccessKeyId=e2xxxxxx-99xxxxxx-84xxxxxx-7xxxx&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2017-05-11T15%3A19%3A30

Add the parameter section of the query string, for example

&order-id=1234567890

The final query string will be this

GET\napi.huobi.pro\n/v1/order/orders\nAccessKeyId=e2xxxxxx-99xxxxxx-84xxxxxx-7xxxx&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2017-05-11T15%3A19%3A30&order-id=1234567890
  1. Add the query path to the query string

  2. Add mandatory authentication parameters to the query string

  3. Add other path parameters to the query string ordered by parameter name (asc)

Use "Query String" and your secret key to to created a signature

The result signature will look like

4F65x5A2bLyMWVQj3Aqp+B4w+ivaA7n5Oi2SuYtCJ9o=
  1. Apply HmacSHA256 hash function with inputs (query string, secret key) to get the hashed string

  2. Encode the hashed string with base-64

Add the signature as a path parameter to your query

The final request with signature will look like

https://api.huobi.pro/v1/order/orders?AccessKeyId=e2xxxxxx-99xxxxxx-84xxxxxx-7xxxx&order-id=1234567890&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2017-05-11T15%3A19%3A30&Signature=4F65x5A2bLyMWVQj3Aqp%2BB4w%2BivaA7n5Oi2SuYtCJ9o%3D

  1. Add all mandatory authentication parameters to your path parameter

  2. Add "&Signature=[Your request signature with URL encode]" to your path parameter

Request Format

All API requests are in either GET or POST method. For GET request, all parameters are path parameters. For POST request, all parameters are in POST body and in JSON format.

Response Format

All response will be returned in JSON format. The top level JSON is a wrapper object which provides three metadata in "status", "ch", and "ts". The actual per API response data is in "data" field.

Response JSON Wrapper Content

Response wrapper content example:

{
  "status": "ok",
  "ch": "market.btcusdt.kline.1day",
  "ts": 1499223904680,
  "data": // per API response data in nested JSON object
}
Field Data Type Description
status string The overall API call result status
ch string The data channel this response was originated from. Some API return does not have this field.
ts int The timestamp in milliseconds for when the response is created
data object The actual response content per API

Error Information

Each error will have a code and err-msg which explain the details of the error.

Market Data API Error Message

Error Code Description
bad-request Bad request
invalid-parameter Request parameter is invalid
invalid-command Request options are wrong

Trading API Error Message

Error Code Description
base-symbol-error trading symbol does not exist
base-currency-error Trading currency does not exist
base-date-error Bad date format
account-frozen-balance-insufficient-error Insufficient balance
account-transfer-balance-insufficient-error Insufficient balance for transfer
bad-argument Bad arguments
api-signature-not-valid API signature not valid
gateway-internal-error System is busy
ad-ethereum-addresss Ethereum address is needed
order-accountbalance-error Account balance insufficient
order-limitorder-price-error Price of limit order is invalid
order-limitorder-amount-error Amount of limit order is invalid
order-orderprice-precision-error Price precision not supported
order-orderamount-precision-error Amount prevision not supported
order-marketorder-amount-error Market order amount is invalid
order-queryorder-invalid Cannot find queried order
order-orderstate-error Order status is invalid
order-datelimit-error Order query timeout
order-update-error Order update error

Code Demo

Websocket

Python3

Node.js

PHP

REST

Python3

Java

Node.js

C#

go

PHP

C++

Objective-C

QTC++

Python2.7

Ruby

易语言

Issue and Solution

Unstable Connection to API Service

Fail to Sign API Request

Receive "login-required"

Receive "gateway-internal-error"

Reference Data

Get all Supported Trading Symbol

This endpoint returns all Huobi's supported trading symbol.

curl "https://api.huobi.pro/v1/common/symbols"

HTTP Request

GET /v1/common/symbols

Request Parameters

No parameter is needed for this endpoint.

Responds:

  "data": [
    {
        "base-currency": "btc",
        "quote-currency": "usdt",
        "price-precision": 2,
        "amount-precision": 4,
        "symbol-partition": "main",
        "symbol": "btcusdt"
    }
    {
        "base-currency": "eth",
        "quote-currency": "usdt",
        "price-precision": 2,
        "amount-precision": 4,
        "symbol-partition": "main",
        "symbol": "ethusdt"
    }
  ]

Response Content

Field Data Type Description
base-currency string Base currency in a trading symbol
quote-currency string Quote currency in a trading symbol
price-precision integer Quote currency precision when quote price(decimal places)
amount-precision integer Base currency precision when quote amount(decimal places)
symbol-partition string Trading section, possible values: [main,innovation,bifurcation]

Get all Supported Currencies

This endpoint returns all Huobi's supported trading currencies.

curl "https://api.huobi.pro/v1/common/currencys"

HTTP Request

GET /v1/common/currencys

Request Parameters

No parameter is needed for this endpoint.

Response:

  "data": [
    "usdt",
    "eth",
    "etc"
  ]

Response Content

Get Current System Time

This endpoint returns the current system time in milliseconds adjusted to Beijing time zone.

curl "https://api.huobi.pro/v1/common/timestamp"

HTTP Request

GET /v1/common/timestamp

Request Parameters

No parameter is needed for this endpoint.

Response:

  "data": 1494900087029

Response Content

The returned "Data" field contains an integer represents the timestamp in milliseconds adjusted to Beijing time.

Market Data

Get Klines(Candles)

This endpoint retrieves all klines in a specific range.

HTTP Request

GET https://api.huobi.pro/market/history/kline

curl "https://api.huobi.pro/market/history/kline?period=1day&size=200&symbol=btcusdt"

Query Parameters

Parameter Data Type Required Default Description Value Range
symbol string true NA The trading symbol to query All trading symbol supported, e.g. btcusdt, bccbtc
period string true NA The period of each candle 1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year
size integer false 150 The number of data returns [1, 2000]

The above command returns JSON structured like this:

"data": [
  {
    "id": 1499184000,
    "amount": 37593.0266,
    "count": 0,
    "open": 1935.2000,
    "close": 1879.0000,
    "low": 1856.0000,
    "high": 1940.0000,
    "vol": 71031537.97866500
  }
]

Response Content

Field Data Type Description
id integer The UNIX timestamp in seconds as response id
amount float The aggregated trading volume in USDT
count integer The number of completed trades
open float The opening price
close float The closing price
low float The low price
high float The high price
vol float The trading volume in base currency

Get Latest Aggregated Ticker

This endpoint retrieves the latest ticker with some important 24h aggregated market data.

HTTP Request

GET https://api.huobi.pro/market/detail/merged

curl "https://api.huobi.pro/market/detail/merged?symbol=ethusdt"

Request Parameters

Parameter Data Type Required Default Description Value Range
symbol string true NA The trading symbol to query All supported trading symbol, e.g. btcusdt, bccbtc

The above command returns JSON structured like this:

"data": {
  "id":1499225271,
  "ts":1499225271000,
  "close":1885.0000,
  "open":1960.0000,
  "high":1985.0000,
  "low":1856.0000,
  "amount":81486.2926,
  "count":42122,
  "vol":157052744.85708200,
  "ask":[1885.0000,21.8804],
  "bid":[1884.0000,1.6702]
}

Response Content

Field Data Type Description
id integer The UNIX timestamp in seconds as response id
amount float The aggregated trading volume in USDT
count integer The number of completed trades
open float The opening price of last 24 hours
close float The last price of last 24 hours
low float The low price of last 24 hours
high float The high price of last 24 hours
vol float The trading volume in base currency of last 24 hours
bid object The current best bid in format [price, quote volume]
ask object The current best ask in format [price, quote volume]

Get Latest Tickers for All Pairs

This endpoint retrieves the latest tickers for all supported pairs.

HTTP Request

GET https://api.huobi.pro/market/tickers

curl "https://api.huobi.pro/market/tickers"

Request Parameters

No parameters are needed for this endpoint.

The above command returns JSON structured like this:

"data": [  
    {  
        "open":0.044297,
        "close":0.042178,
        "low":0.040110,
        "high":0.045255,
        "amount":12880.8510,  
        "count":12838,
        "vol":563.0388715740,
        "symbol":"ethbtc"
    },
    {  
        "open":0.008545,
        "close":0.008656,
        "low":0.008088,
        "high":0.009388,
        "amount":88056.1860,
        "count":16077,
        "vol":771.7975953754,
        "symbol":"ltcbtc"
    }
]

Response Content

Response content is an array of object, each object has below fields.

Field Data Type Description
amount float The aggregated trading volume in USDT of last 24 hours
count integer The number of completed trades of last 24 hours
open float The opening price of last 24 hours
close float The last price of last 24 hours
low float The low price of last 24 hours
high float The high price of last 24 hours
vol float The trading volume in base currency of last 24 hours
symbol string The trading symbol of this object, e.g. btcusdt, bccbtc

Get Market Depth

This endpoint retrieves the current order book of a specific pair.

HTTP Request

GET https://api.huobi.pro/market/depth

curl "https://api.huobi.pro/market/depth?symbol=btcusdt&type=step1"

Request Parameters

Parameter Data Type Required Default Value Description Value Range
symbol string true NA The trading symbol to query All supported trading symbols, e.g. btcusdt, bccbtc
depth integer false 20 The number of market depth to return on each side 5, 10, 20
type string true step0 Market depth aggregation level, details below step0, step1, step2, step3, step4, step5

"type" Details

Value Description
step0 No market depth aggregation
step1 Aggregation level = precision*10
step2 Aggregation level = precision*100
step3 Aggregation level = precision*1000
step4 Aggregation level = precision*10000
step5 Aggregation level = precision*100000

The above command returns JSON structured like this:

"tick": {
    "version": 31615842081,
    "ts": 1489464585407,
    "bids": [
      [7964, 0.0678],
      [7963, 0.9162],
      [7961, 0.1],
      [7960, 12.8898],
      [7958, 1.2],
      [7955, 2.1009],
      [7954, 0.4708],
      [7953, 0.0564],
      [7951, 2.8031],
      [7950, 13.7785],
      [7949, 0.125],
      [7948, 4],
      [7942, 0.4337],
      [7940, 6.1612],
      [7936, 0.02],
      [7935, 1.3575],
      [7933, 2.002],
      [7932, 1.3449],
      [7930, 10.2974],
      [7929, 3.2226]
    ],
    "asks": [
      [7979, 0.0736],
      [7980, 1.0292],
      [7981, 5.5652],
      [7986, 0.2416],
      [7990, 1.9970],
      [7995, 0.88],
      [7996, 0.0212],
      [8000, 9.2609],
      [8002, 0.02],
      [8008, 1],
      [8010, 0.8735],
      [8011, 2.36],
      [8012, 0.02],
      [8014, 0.1067],
      [8015, 12.9118],
      [8016, 2.5206],
      [8017, 0.0166],
      [8018, 1.3218],
      [8019, 0.01],
      [8020, 13.6584]
    ]
  }

Response Content

Field Data Type Description
ts integer The UNIX timestamp in milliseconds adjusted to Beijing time
version integer Internal data
bids object The current all bids in format [price, quote volume]
asks object The current all asks in format [price, quote volume]

Get the Last Trade

This endpoint retrieves the latest trade with its price, volume, and direction.

HTTP Request

GET https://api.huobi.pro/market/trade

curl "https://api.huobi.pro/market/trade?symbol=ethusdt"

Request Parameters

Parameter Data Type Required Default Value Description Value Range
symbol string true NA The trading symbol to query All supported trading symbols, e.g. btcusdt, bccbtc

The above command returns JSON structured like this:

"tick": {
    "id": 600848670,
    "ts": 1489464451000,
    "data": [
      {
        "id": 600848670,
        "price": 7962.62,
        "amount": 0.0122,
        "direction": "buy",
        "ts": 1489464451000
      }
    ]
}

Response Content

Parameter Data Type Description
id integer The unique trade id of this trade
amount float The trading volume in base currency
price float The trading price in quote currency
ts integer The UNIX timestamp in milliseconds adjusted to Beijing time
direction string The direction of the taker trade: 'buy' or 'sell'

Get the Most Recent Trades

This endpoint retrieves the most recent trades with their price, volume, and direction.

HTTP Request

GET https://api.huobi.pro/market/history/trade

curl "https://api.huobi.pro/market/history/trade?symbol=ethusdt&size=2"

Request Parameters

Parameter Data Type Required Default Value Description Value Range
symbol string true NA The trading symbol to query All supported trading symbols, e.g. btcusdt, bccbtc
size integer false 1 The number of data returns [1, 2000]

The above command returns JSON structured like this:

"data": [  
   {  
      "id":31618787514,
      "ts":1544390317905,
      "data":[  
         {  
            "amount":9.000000000000000000,
            "ts":1544390317905,
            "id":3161878751418918529341,
            "price":94.690000000000000000,
            "direction":"sell"
         },
         {  
            "amount":73.771000000000000000,
            "ts":1544390317905,
            "id":3161878751418918532514,
            "price":94.660000000000000000,
            "direction":"sell"
         }
      ]
   },
   {  
      "id":31618776989,
      "ts":1544390311353,
      "data":[  
         {  
            "amount":1.000000000000000000,
            "ts":1544390311353,
            "id":3161877698918918522622,
            "price":94.710000000000000000,
            "direction":"buy"
         }
      ]
   }
]

Response Content

Field Data Type Description
id integer The unique trade id of this trade
amount float The trading volume in base currency
price float The trading price in quote currency
ts integer The UNIX timestamp in milliseconds adjusted to Beijing time
direction string The direction of the taker trade: 'buy' or 'sell'

Get the Last 24h Market Summary

This endpoint retrieves the summary of trading in the market for the last 24 hours.

HTTP Request

GET https://api.huobi.pro/market/detail/

curl "https://api.huobi.pro/market/detail?symbol=ethusdt"

Request Parameters

Parameter Data Type Required Default Value Description Value Range
symbol string true NA The trading symbol to query All supported trading symbols, e.g. btcusdt, bccbtc

The above command returns JSON structured like this:

"tick": {  
   "amount":613071.438479561,
   "open":86.21,
   "close":94.35,
   "high":98.7,
   "id":31619471534,
   "count":138909,
   "low":84.63,
   "version":31619471534,
   "vol":5.6617373443873316E7
}

Response Content

Field Data Type Description
id integer The UNIX timestamp in seconds as response id
amount float The aggregated trading volume in USDT
count integer The number of completed trades
open float The opening price of last 24 hours
close float The last price of last 24 hours
low float The low price of last 24 hours
high float The high price of last 24 hours
vol float The trading volume in base currency of last 24 hours
version integer Internal data

Account

Get all Accounts of the Current User

This endpoint returns a list of accounts owned by this API user.

HTTP Request

GET https://api.huobi.pro/v1/account/accounts

curl "https://api.huobi.pro/v1/account/accounts"

Request Parameters

The above command returns JSON structured like this:

  "data": [
    {
      "id": 100009,
      "type": "spot",
      "state": "working",
      "user-id": 1000
    }
  ]

Response Content

Field Data Type Description Value Range
id integer Unique account id NA
state string Account state working, lock
type string The type of this account spot, margin, otc, point

Get Account Balance of a Specific Account

This endpoint returns the balance of an account specified by account id.

HTTP Request

GET https://api.huobi.pro/v1/account/accounts/{account-id}/balance

'account-id': The specified account id to get balance for, can be found by query '/account/accounts' endpoint.

curl "https://api.huobi.pro/v1/account/accounts/100009/balance"

Request Parameters

The above command returns JSON structured like this:

"data": {
    "id": 100009,
    "type": "spot",
    "state": "working",
    "list": [
      {
        "currency": "usdt",
        "type": "trade",
        "balance": "500009195917.4362872650"
      },
      {
        "currency": "usdt",
        "type": "frozen",
        "balance": "328048.1199920000"
      },
     {
        "currency": "etc",
        "type": "trade",
        "balance": "499999894616.1302471000"
      }
    ],
  }
}

Response Content

Field Data Type Description Value Range
id integer Unique account id NA
state string Account state working, lock
type string The type of this account spot, margin, otc, point
list object The balance details of each currency

Per list item content

Field Data Type Description Value Range
currency string The currency of this balance NA
type string The balance type trade, frozen
balance string The balance in the main currency unit NA

Get Account Balance of a Sub-Account

This endpoint returns the balance of a sub-account specified by sub-account uid.

HTTP Request

GET https://api.huobi.pro/v1/account/accounts/{sub-account-uid}

'sub-account-uid': The specified sub account id to get balance for.

curl "https://api.huobi.pro/v1/account/accounts/10758899"

Request Parameters

The above command returns JSON structured like this:

"data": [
  {
    "id": 9910049,
    "type": "spot",
    "list": [
              {
        "currency": "btc",
          "type": "trade",
          "balance": "1.00"
      },
      {
        "currency": "eth",
        "type": "trade",
        "balance": "1934.00"
      }
      ]
  },
  {
    "id": 9910050,
    "type": "point",
    "list": []
  }
]

Response Content

Field Data Type Description Value Range
id integer Unique account id NA
type string The type of this account spot, margin, otc, point
list object The balance details of each currency NA

Per list item content

Field Data Type Description Value Range
currency string The currency of this balance NA
type string The balance type trade, frozen
balance string The balance in the main currency unit NA

Get the Aggregated Balance of all Sub-accounts of the Current User

This endpoint returns the balances of all the sub-account aggregated.

HTTP Request

GET https://api.huobi.pro/v1/subuser/aggregate-balance

curl "https://api.huobi.pro/v1/subuser/aggregate-balance"

The above command returns JSON structured like this:

  "data": [
      {
        "currency": "eos",
        "balance": "1954559.809500000000000000"
      },
      {
        "currency": "btc",
        "balance": "0.000000000000000000"
      },
      {
        "currency": "usdt",
        "balance": "2925209.411300000000000000"
      }
   ]

Request Parameters

Response Content

Field Data Type Description
currency string The currency of this balance
balance string The total balance in the main currency unit including all balance and frozen banlance

Transfer Asset between Parent and Sub Account

This endpoint allows user to transfer asset between parent and sub account.

HTTP Request

POST https://api.huobi.pro/v1/subuser/transfer

curl -X POST "https://api.huobi.pro/v1/subuser/transfer" -H "Content-Type: application/json" -d '{"sub-uid": 12345, "currency": "btc", "amount": 123.5, "type": "master-transfer-in"}'

Request Parameters

Parameter Data Type Required Description Value Range
sub-uid integer true The target sub account uid to transfer to or from NA
currency string true The crypto currency to transfer NA
amount decimal true The amount of asset to transfer NA
type string true The type of transfer master-transfer-in, master-transfer-out, master-point-transfer-in, master-point-transfer-out

The above command returns JSON structured like this:

  "data": 12345

Response Content

Field Data Type Description
data integer Unique transfer id

Wallet (Deposit and Withdraw)

Create a Withdraw Request

This endpoint creates a withdraw request from your spot trading account to an external address.

HTTP Request

POST https://api.huobi.pro/v1/dw/withdraw/api/create

curl -X POST -H "Content-Type: application/json" "https://api.huobi.pro/v1/dw/withdraw/api/create" -d
'{
  "address": "0xde709f2102306220921060314715629080e2fb77",
  "amount": "0.05",
  "currency": "eth",
  "fee": "0.01"
}'

Request Parameters

Parameter Data Type Required Default Description
address string true NA The desination address of this withdraw
currency string true NA The crypto currency to withdraw
amount string true NA The amount of currency to withdraw
fee string false NA The fee to pay with this withdraw
addr-tag string false NA A tag specified for this address

The above command returns JSON structured like this:

{  
  "data": 1000
}

Response Content

Field Data Type Description
data integer Transfer id

Cancel a Withdraw Request

This endpoint cancels a previously created withdraw request by its transfer id.

HTTP Request

POST https://api.huobi.pro/v1/dw/withdraw-virtual/{withdraw-id}/cancel

curl -X POST "https://api.huobi.pro/v1/dw/withdraw-virtual/1000/cancel"

'withdraw-id': the id returned when previously created a withdraw request

Request Parameters

The above command returns JSON structured like this:

  "data": 700

Response Content

Parameter Data Type Description
data integer Withdraw cancel id

Search for Existed Withdraws and Deposits

This endpoint searches for all existed withdraws and deposits and return their latest status.

HTTP Request

GET https://api.huobi.pro/v1/query/deposit-withdraw

curl "https://api.huobi.pro/v1/query/deposit-withdraw?currency=xrp&type=deposit&from=5&size=12"

Request Parameters

Parameter Data Type Required Description Value Range
currency string true The crypto currency to withdraw NA
type string true Define transfer type to search deposit, withdraw
from string true The transfer id to begin search NA
size string true The number of items to return NA

The above command returns JSON structured like this:

{  
    "data": [
      {
        "id": 1171,
        "type": "deposit",
        "currency": "xrp",
        "tx-hash": "ed03094b84eafbe4bc16e7ef766ee959885ee5bcb265872baaa9c64e1cf86c2b",
        "amount": 7.457467,
        "address": "rae93V8d2mdoUQHwBDBdM4NHCMehRJAsbm",
        "address-tag": "100040",
        "fee": 0,
        "state": "safe",
        "created-at": 1510912472199,
        "updated-at": 1511145876575
      }
    ]
}

Response Content

Field Data Type Description
id integer Transfer id
type string Define transfer type to search, possible values: [deposit, withdraw]
currency string The crypto currency to withdraw
tx-hash string The on-chain transaction hash
amount integer The number of crypto asset transfered in its minimum unit
address string The deposit or withdraw source address
address-tag string The user defined address tag
fee integer The amount of fee taken by Huobi in this crypto's minimum unit
state string The state of this transfer (see below for details)
created-at integer The timestamp in milliseconds for the transfer creation
updated-at integer The timestamp in milliseconds for the transfer's latest update

List of possible withdraw state

State Description
submitted Withdraw request submitted successfully
reexamine Under examination for withdraw validation
canceled Withdraw canceled by user
pass Withdraw validation passed
reject Withdraw validation rejected
pre-transfer Withdraw is about to be released
wallet-transfer On-chain transfer initiated
wallet-reject Transfer rejected by chain
confirmed On-chain transfer completed with one confirmation
confirm-error On-chain transfer faied to get confirmation
repealed Withdraw terminated by system

List of possible deposit state

State Description
unknown On-chain transfer has not been received
confirming On-chain transfer waits for first confirmation
confirmed On-chain transfer confirmed for at least one block
safe Multiple on-chain confirmation happened
orphan Confirmed but currently in an orphan branch

Trading

Place a New Order

This endpoint place a new order and send to the exchange to be matched.

HTTP Request

POST https://api.huobi.pro/v1/order/orders/place

curl -X POST -H "Content-Type: application/json" "https://api.huobi.pro/v1/order/orders/place" -d
'{
   "account-id": "100009",
   "amount": "10.1",
   "price": "100.1",
   "source": "api",
   "symbol": "ethusdt",
   "type": "buy-limit"
  }'

Request Parameters

Parameter Data Type Required Default Description Value Range
account-id string true NA The account id used for this trade NA
symbol string true NA The trading symbol to trade All supported trading symbol, e.g. btcusdt, bccbtc
type string true NA The order type buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc, buy-limit-maker, sell-limit-maker
amount string true NA The amount to buy (quote currency) or to sell (base currency) NA
price string false NA The limit price of limit order, only needed for limit order NA
source string false api When trade with margin use 'margin-api' api, margin-api

The above command returns JSON structured like this:

  "data": "59378"

Response Content

Get All Open Orders

This endpoint returns all open orders which have not been filled completely.

HTTP Request

GET https://api.huobi.pro/v1/order/openOrders

curl "https://api.huobi.pro/v1/order/openOrders?account-id=100009&symbol=btcusdt&side=buy&size=5"

Request Parameters

Parameter Data Type Required Default Description Value Range
account-id string false NA The account id used for this trade NA
symbol string false NA The trading symbol to trade All supported trading symbols, e.g. btcusdt, bccbtc
side string false NA Filter on the direction of the trade buy, sell
size int false 10 The number of orders to return [1, 2000]

The above command returns JSON structured like this:

  "data": [
    {
      "id": 5454937,
      "symbol": "ethusdt",
      "account-id": 30925,
      "amount": "1.000000000000000000",
      "price": "0.453000000000000000",
      "created-at": 1530604762277,
      "type": "sell-limit",
      "filled-amount": "0.0",
      "filled-cash-amount": "0.0",
      "filled-fees": "0.0",
      "source": "web",
      "state": "submitted"
    }
  ]

Response Content

Field Data Type Description
id integer order id
symbol string The trading symbol to trade, e.g. btcusdt, bccbtc
price string The limit price of limit order
created-at int The timestamp in milliseconds when the order was created
type string The order type, possible values are: buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc, buy-limit-maker, sell-limit-maker
filled-amount string The amount which has been filled
filled-cash-amount string The filled total in quote currency
filled-fees string Transaction fee paid so far
source string The source where the order was triggered, possible values: sys, web, api, app
state string submitted, partical-filled, cancelling

Submit Cancel for an Order

This endpoint submit a request to cancel an order.

HTTP Request

POST https://api.huobi.pro/v1/order/orders/{order-id}/submitcancel

'order-id': the previously returned order id when order was created

curl -X POST "https://api.huobi.pro/v1/order/orders/59378/submitcancel"

Request Parameters

No parameter is needed for this endpoint.

The above command returns JSON structured like this:

  "data": "59378"

Response Content

Submit Cancel for Multiple Orders by IDs

This endpoint submit cancellation for multiple orders at once with given ids.

HTTP Request

POST https://api.huobi.pro/v1/order/orders/batchcancel

curl -X POST -H 'Content-Type: application/json' "https://api.huobi.pro/v1/order/orders/batchcancel" -d
'{
  "order-ids": [
    "1", "2", "3"
  ]
}'

Request Parameters

Parameter Data Type Required Description
order-ids list true The order ids to cancel. Max list size is 50.

The above command returns JSON structured like this:

{  
  "data": {
    "success": [
      "1",
      "3"
    ],
    "failed": [
      {
        "err-msg": "记录无效",
        "order-id": "2",
        "err-code": "base-record-invalid"
      }
    ]
  }
}

Response Content

Field Data Type Description
success list The order ids with thier cancel request sent successfully
failed list The details of the failed cancel request

Submit Cancel for Multiple Orders by Criteria

This endpoint submit cancellation for multiple orders at once with given criteria.

HTTP Request

POST https://api.huobi.pro/v1/order/orders/batchcancelopenorders

curl -X POST -H 'Content-Type: application/json' "https://api.huobi.pro/v1/order/orders/batchcancelopenorders" -d
'{
  "account-id": "100009",
  "symbol": "btcusdt",
  "side": "buy",
  "size": 5
}'
Parameter Data Type Required Default Description Value Range
account-id string false NA The account id used for this cancel NA
symbol string false NA The trading symbol to cancel All supported trading symbols, e.g. btcusdt, bccbtc
side string false NA Filter on the direction of the trade buy, sell
size int false 100 The number of orders to cancel [1, 100]

The above command returns JSON structured like this:

  "data": {
    "success-count": 2,
    "failed-count": 0,
    "next-id": 5454600
  }

Response Content

Field Data Type Description
success-count integer The number of cancel request sent successfully
failed-count integer The number of cancel request failed
next-id integer the next order id that can be cancelled

Get the Order Detail of an Order

This endpoint returns the detail of one order.

HTTP Request

GET https://api.huobi.pro/v1/order/orders/{order-id}

'order-id': the previously returned order id when order was created

curl "https://api.huobi.pro/v1/order/orders/59378"

Request Parameters

No parameter is needed for this endpoint.

The above command returns JSON structured like this:

{  
  "data": {
    "id": 59378,
    "symbol": "ethusdt",
    "account-id": 100009,
    "amount": "10.1000000000",
    "price": "100.1000000000",
    "created-at": 1494901162595,
    "type": "buy-limit",
    "field-amount": "10.1000000000",
    "field-cash-amount": "1011.0100000000",
    "field-fees": "0.0202000000",
    "finished-at": 1494901400468,
    "user-id": 1000,
    "source": "api",
    "state": "filled",
    "canceled-at": 0,
    "exchange": "huobi",
    "batch": ""
  }
}

Response Content

Field Data Type Description
id integer order id
symbol string The trading symbol to trade, e.g. btcusdt, bccbtc
account-id string The account id which this order belongs to
amount string The amount of base currency in this order
price string The limit price of limit order
created-at int The timestamp in milliseconds when the order was created
finished-at int The timestamp in milliseconds when the order was changed to a final state. This is not the time the order is matched.
canceled-at int The timestamp in milliseconds when the order was canceled, if not canceled then has value of 0
type string The order type, possible values are: buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc, buy-limit-maker, sell-limit-maker
filled-amount string The amount which has been filled
filled-cash-amount string The filled total in quote currency
filled-fees string Transaction fee paid so far
source string The source where the order was triggered, possible values: sys, web, api, app
state string Order state: submitted, partical-filled, cancelling, filled, canceled
exchange string Internal data
batch string Internal data

Get the Match Result of an Order

This endpoint returns the match result of an order.

HTTP Request

GET https://api.huobi.pro/v1/order/orders/{order-id}/matchresult

'order-id': the previously returned order id when order was created

curl "https://api.huobi.pro/v1/order/orders/59378/matchresult"

Request Parameters

No parameter is needed for this endpoint.

The above command returns JSON structured like this:

  "data": [
    {
      "id": 29553,
      "order-id": 59378,
      "match-id": 59335,
      "symbol": "ethusdt",
      "type": "buy-limit",
      "source": "api",
      "price": "100.1000000000",
      "filled-amount": "9.1155000000",
      "filled-fees": "0.0182310000",
      "created-at": 1494901400435
    }
  ]

Response Content

Parameter Data Type Description
id integer Internal id
symbol string The trading symbol to trade, e.g. btcusdt, bccbtc
order-id string The order id of this order
match-id string The match id of this match
price string The limit price of limit order
created-at int The timestamp in milliseconds when the match and fill is done
type string The order type, possible values are: buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc, buy-limit-maker, sell-limit-maker
filled-amount string The amount which has been filled
filled-fees string Transaction fee paid so far
source string The source where the order was triggered, possible values: sys, web, api, app

Search Past Orders

This endpoint returns orders based on a specific searching criteria.

HTTP Request

GET https://api.huobi.pro/v1/order/orders

curl "https://api.huobi.pro/v1/order/orders?symbol=ethusdt&type=buy-limit&staet=filled"

Request Parameters

Parameter Data Type Required Default Description Value Range
symbol string true NA The trading symbol to trade All supported trading symbols, e.g. btcusdt, bccbtc
types string false NA The types of order to include in the search buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc
states string false NA The states of order to include in the search submitted, partial-filled, partial-canceled, filled, canceled
start-date string false -61d Search starts date, in format yyyy-mm-dd NA
end-date string false today Search ends date, in format yyyy-mm-dd NA
from string false NA Search order id to begin with NA
direct string false both Search direction when 'from' is used next, prev
size int false 100 The number of orders to return [1, 100]

The above command returns JSON structured like this:

  "data": [
    {
      "id": 59378,
      "symbol": "ethusdt",
      "account-id": 100009,
      "amount": "10.1000000000",
      "price": "100.1000000000",
      "created-at": 1494901162595,
      "type": "buy-limit",
      "field-amount": "10.1000000000",
      "field-cash-amount": "1011.0100000000",
      "field-fees": "0.0202000000",
      "finished-at": 1494901400468,
      "user-id": 1000,
      "source": "api",
      "state": "filled",
      "canceled-at": 0,
      "exchange": "huobi",
      "batch": ""
    }
  ]

Response Content

Field Data Type Description
id integer Order id
account-id integer Account id
user-id integer User id
amount string The amount of base currency in this order
symbol string The trading symbol to trade, e.g. btcusdt, bccbtc
price string The limit price of limit order
created-at int The timestamp in milliseconds when the order was created
canceled-at int The timestamp in milliseconds when the order was canceled, or 0 if not canceled
canceled-at int The timestamp in milliseconds when the order was finished, or 0 if not finished
type string The order type, possible values are: buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc, buy-limit-maker, sell-limit-maker
filled-amount string The amount which has been filled
filled-cash-amount string The filled total in quote currency
filled-fees string Transaction fee paid so far
source string The source where the order was triggered, possible values: sys, web, api, app
state string submitted, partical-filled, cancelling
exchange string Internal data
batch string Internal data

Search Match Results

This endpoint returns the match results of past and open orders based on specific search criteria.

HTTP Request

GET https://api.huobi.pro/v1/order/matchresults

curl "https://api.huobi.pro/v1/order/matchresults?symbol=ethusdt"

Request Parameters

Parameter Data Type Required Default Description Value Range
symbol string true NA The trading symbol to trade All supported trading symbols, e.g. btcusdt, bccbtc
types string false NA The types of order to include in the search buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc
states string false NA The states of order to include in the search submitted, partial-filled, partial-canceled, filled, canceled
start-date string false -61d Search starts date, in format yyyy-mm-dd NA
end-date string false today Search ends date, in format yyyy-mm-dd NA
from string false NA Search order id to begin with NA
direct string false both Search direction when 'from' is used next, prev
size int false 100 The number of orders to return [1, 100]

The above command returns JSON structured like this:

  "data": [
    {
      "id": 29553,
      "order-id": 59378,
      "match-id": 59335,
      "symbol": "ethusdt",
      "type": "buy-limit",
      "source": "api",
      "price": "100.1000000000",
      "filled-amount": "9.1155000000",
      "filled-fees": "0.0182310000",
      "created-at": 1494901400435
    }
  ]

Response Content

Field Data Type Description
id integer Internal id
symbol string The trading symbol to trade, e.g. btcusdt, bccbtc
order-id string The order id of this order
match-id string The match id of this match
price string The limit price of limit order
created-at int The timestamp in milliseconds when the match and fill is done
type string The order type, possible values are: buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc, buy-limit-maker, sell-limit-maker
filled-amount string The amount which has been filled
filled-fees string Transaction fee paid so far
source string The source where the order was triggered, possible values: sys, web, api, app

Margin Loan

Transfer Asset from Spot Trading Account to Margin Account

This endpoint transfer specific asset from spot trading account to margin account.

HTTP Request

POST https://api.huobi.pro/v1/dw/transfer-in/margin

curl -X POST -H 'Content-Type: application/json' "https://api.huobi.pro/v1/dw/transfer-in/margin" -d
'{
  "symbol": "ethusdt",
  "currency": "eth",
  "amount": "1.0"
}'

Request Parameters

Parameter Data Type Required Default Description
symbol string true NA The trading symbol to borrow margin, e.g. btcusdt, bccbtc
currency string true NA The currency to borrow
amount string true NA The amount of currency to borrow

The above command returns JSON structured like this:

  "data": 1000

Response Content

Field Data Type Description
data integer Transfer id

Transfer Asset from Margin Account to Spot Trading Account

This endpoint transfer specific asset from margin account to spot trading account.

HTTP Request

POST https://api.huobi.pro/v1/dw/transfer-out/margin

curl -X POST -H 'Content-Type: application/json' "https://api.huobi.pro/v1/dw/transfer-out/margin" -d
'{
  "symbol": "ethusdt",
  "currency": "eth",
  "amount": "1.0"
}'

Request Parameters

Parameter Data Type Required Default Description
symbol string true NA The trading symbol to borrow margin, e.g. btcusdt, bccbtc
currency string true NA The currency to borrow
amount string true NA The amount of currency to borrow

The above command returns JSON structured like this:

  "data": 1000

Response Content

Field Data Type Description
data integer Transfer id

Request a Margin Loan

This endpoint place an order to apply a margin loan.

HTTP Request

POST https://api.huobi.pro/v1/margin/orders

curl -X POST -H 'Content-Type: application/json' "https://api.huobi.pro/v1/margin/orders" -d
'{
  "symbol": "ethusdt",
  "currency": "eth",
  "amount": "1.0"
}'

Request Parameters

Parameter Data Type Required Default Description
symbol string true NA The trading symbol to borrow margin, e.g. btcusdt, bccbtc
currency string true NA The currency to borrow
amount string true NA The amount of currency to borrow

The above command returns JSON structured like this:

  "data": 1000

Response Content

Field Data Type Description
data integer Margin order id

Repay Margin Loan

This endpoint repays margin loan with you asset in your margin account.

HTTP Request

POST https://api.huobi.pro/v1/margin/orders/{order-id}/repay

'order-id': the previously returned order id when loan order was created

curl -X POST -H 'Content-Type: application/json' "https://api.huobi.pro/v1/margin/orders/1000/repay" -d
'{
  "amount": "1.0"
}'

Request Parameters

Parameter Data Type Required Default Description
amount string true NA The amount of currency to repay

The above command returns JSON structured like this:

  "data": 1000

Response Content

Field Data Type Description
data integer Margin order id

Search Past Margin Orders

This endpoint returns margin orders based on a specific searching criteria.

HTTP Request

GET https://api.huobi.pro/v1/margin/loan-orders

curl "https://api.huobi.pro/v1/margin/load-orders?symbol=ethusdt"

Request Parameters

Parameter Data Type Required Default Description Value Range
symbol string true NA The trading symbol to trade All supported trading symbols, e.g. btcusdt, bccbtc
types string false NA The types of order to include in the search buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc
states string false NA The states of order to include in the search submitted, partial-filled, partial-canceled, filled, canceled
start-date string false -61d Search starts date, in format yyyy-mm-dd NA
end-date string false today Search ends date, in format yyyy-mm-dd NA
from string false NA Search order id to begin with NA
direct string false both Search direction when 'from' is used next, prev
size int false 100 The number of orders to return [1, 100]

The above command returns JSON structured like this:

  "data": [
    {
      "loan-balance": "0.100000000000000000",
      "interest-balance": "0.000200000000000000",
      "interest-rate": "0.002000000000000000",
      "loan-amount": "0.100000000000000000",
      "accrued-at": 1511169724531,
      "interest-amount": "0.000200000000000000",
      "symbol": "ethbtc",
      "currency": "btc",
      "id": 394,
      "state": "accrual",
      "account-id": 17747,
      "user-id": 119913,
      "created-at": 1511169724531
    }
  ]

Response Content

Field Data Type Description
id integer Order id
account-id integer Account id
user-id integer User id
symbol string The margin loan pair to trade, e.g. btcusdt, bccbtc
currency string The currency in the loan
created-at int The timestamp in milliseconds when the order was created
accrued-at int The timestamp in milliseconds when the last accure happened
type string The order type, possible values are: buy-market, sell-market, buy-limit, sell-limit, buy-ioc, sell-ioc, buy-limit-maker, sell-limit-maker
loan-amount string The amount of the origin loan
loan-balance string The amount of the loan left
interest-rate string The loan interest rate
interest-amount string The accumulated loan interest
interest-balance string The amount of loan interest left
state string Loan state, possible values: created, accrual, cleared, invalid

Get the Balance of the Margin Loan Account

This endpoint returns the balance of the margin loan account.

HTTP Request

GET https://api.huobi.pro/v1/margin/accounts/balance

curl "https://api.huobi.pro/v1/margin/accounts/balance?symbol=btcusdt"

Request Parameters

Parameter Data Type Required Default Description
symbol string true NA The trading symbol to borrow margin, e.g. btcusdt, bccbtc

The above command returns JSON structured like this:

"data": [
        {
            "id": 18264,
            "type": "margin",
            "state": "working",
            "symbol": "btcusdt",
            "fl-price": "0",
            "fl-type": "safe",
            "risk-rate": "475.952571086994250554",
            "list": [
                {
                    "currency": "btc",
                    "type": "trade",
                    "balance": "1168.533000000000000000"
                },
                {
                    "currency": "btc",
                    "type": "frozen",
                    "balance": "0.000000000000000000"
                },
                {
                    "currency": "btc",
                    "type": "loan",
                    "balance": "-2.433000000000000000"
                },
                {
                    "currency": "btc",
                    "type": "interest",
                    "balance": "-0.000533000000000000"
                },
                {
                    "currency": "btc",
                    "type": "transfer-out-available",//可转btc
                    "balance": "1163.872174670000000000"
                },
                {
                    "currency": "btc",
                    "type": "loan-available",//可借btc
                    "balance": "8161.876538350676000000"
                }
            ]
        }
]

Response Content

Field Data Type Description
symbol string The margin loan pair, e.g. btcusdt, bccbtc
state string Loan state, possible values: created, accrual, cleared, invalid
risk-rate string The risk rate
fl-price string The price which triggers closeout
list array The list of margin accounts and their details

ETF (HB10)

Huobi's platform allows clients to create ETF holdings with their matching assets, and also allows clients to redempt ETF to comprised assets.

Creation and Redemption Configuration

This endpoint will return the basic information of ETF creation and redemption, as well as ETF constituents, including max amount of creation, min amount of creation, max amount of redemption, min amount of redemption, creation fee rate, redemption fee rate, eft create/redeem status.

HTTP Request

curl "https://api.huobi.pro/etf/swap/config?etf_name=hb10"

Request Parameter

Parameter Data Type Required Description
etf_name string true The name of the ETF, currently only support hb10

Response:

{
  "code": 200,
  "data": {
    "purchase_min_amount": 10000,
    "purchase_max_amount": 100000,
    "redemption_min_amount": 10000,
    "redemption_max_amount": 10000,
    "purchase_fee_rate": 0.001,
    "redemption_fee_rate": 0.002,
    "etf_status":1,
    "unit_price":
    [
      {
        "currency": "eth",
        "amount": 19.9
      },
      {
        "currency": "btc",
        "amount": 9.9
      }
    ]
  },
  "message": null,
  "success": true
}

Response Content

Field Data Type Description
purchase_min_amount integer Minimum creation amounts per request
purchase_max_amount integer Max creation amounts per request
redemption_min_amount integer Minimum redemption amounts per request
redemption_max_amount integer Max redemption amounts per request
purchase_fee_rate decimal Creation fee rate
redemption_fee_rate decimal Redemption fee rate
etf_status integer status of the ETF: Normal(1), Rebalancing Start(2), Creation and Redemption Suspended(3), Creation Suspended(4), Redemption Suspended(5)
unit_price array ETF constitution in format of {amount, currency}

Order Creation/Redemption

This endpoint allow clients to order creation or redemption of ETF.

HTTP Request

curl -X POST -H 'Content-Type: application/json' "https://api.huobi.pro/etf/swap/in" -d
'{"etf_name": "hb10", "amount": 10000}'

curl -X POST -H 'Content-Type: application/json' "https://api.huobi.pro/etf/swap/out" -d
'{"etf_name": "hb10", "amount": 10000}'

Request Parameter

Parameter Required Data Type Description
etf_name true string ETF name, currently only support hb10
amount true integer The amount to create or redemption

Response:

{
    "code": 200,
    "data": null,
    "message": null,
    "success": true
}

Response Content

Field Data Type Description
code integer The overall status of the order, please find details in below table
data object The data content if available
message string The message of the order result
success boolean If the order is successful

Response code details

Code Description
200 Successful
10404 Invalid ETF name
13403 Insufficient asset to create ETF
13404 Create and redemption disabled due to system setup
13405 Create and redemption disabled due to configuration issue
13406 Invalid API call
13410 API authentication fails
13500 System error
13601 Create and redemption disabled during rebalance
13603 Create and redemption disabled due to other reason
13604 Create suspended
13605 Redemption suspended
13606 Amount incorrect. For the cases when creation amount or redemption amount is not in the range of min/max amount, this code will be returned.

Show Past Creation/Redemption

This endpoints allows clients to get past creation and redemption.(up to 100 records)

HTTP Request

curl "https://api.huobi.pro/etf/swap/list"

Request Parameter

Parameter Required Data Type Description
etf_name true string ETF name, currently only support hb10
offset true integer The offset of the records, set to 0 for the latest records
limit true integer The number of records to return, max is 100

Response:

{
  "code": 200,
  "data": [
    {
      "id": 112222,
      "gmt_created": 1528855872323,
      "currency": "hb10",
      "amount": 11.5,
      "type": 1,
      "status": 2,
      "detail":
      {
        "used_ currency_list":
        [
          {
            "currency": "btc",
            "amount": 0.666
          },
          {
            "currency": "eth",
            "amount": 0.666
          }
        ],
        "rate": 0.002,
        "fee": 100.11,
        "point_card_amount":1.0,
        "obtain_ currency_list":
        [
          {
            "currency": "hb10",
            "amount": 1000
          }
        ]
      }
    }
  ],
  "message": null,
  "success": true
}

Response Content

Field Data Type Description
id integer Creation/Redemption id
gmt_created integer Operation timestamp
currency string ETF name
amount decimal Creation/Redmption amount
type integer Creation(1), Redemption(2)
status integer Operation result
detail array Please find details below

Fields under "Detail"

Field Data Type Description
used_currency_list array For creation this is the list and amount of underlying assets used for ETF creation. For redemption this is the amount of ETF used for redemption.
rate decimal Fee rate
fee decimal The actual fee amount
point_card_amount decimal Discount from point card
obtain_currency_list array For creation this is the amount for ETF created. For redemption this is the list and amount of underlying assets obtained.

Websocket Subscription