Skip to main content

Get server time

GET /v4/public/time
Java
Response

Get client ip

GET /v4/public/client
Java
Response

Get symbol information

GET /v4/public/symbol Parameters

Limit Flow Rules

1.single symbol:10/s/ip 2.multiple symbols:10/s/ip

FILTER

Filter, defines a series of trading rules. There are different filters for different fields or entities. Here we mainly introduce the filter for the entity symbol. For symbols, there are two kinds of filters, one is a global filter, and the other is a filter customized for a certain trading pair. PRICE FILTER The price filter is used to check the validity of the price parameter in the order. Contains the following three parts: 1.min Defines the minimum allowable price in the order 2.max Defines the maximum price allowed in the order 3.tickSize Defines the step interval of price in the order, that is, price must be equal to minPrice+(integer multiple of tickSize) Each of the above items can be null, when it is null, it means that this item is no longer restricted The logical pseudocode is as follows:
  • price >= min
  • price <= max
  • (price-minPrice) % tickSize == 0
QUANTITY FILTER The logic is similar to PRICE FILTER ,but for the order quantity. It contains three parts: 1.min minimum allowed 2.max maximum allowed 3.tickSize  Step interval, that is, quantity must be equal to minQuantity+(integer multiple of tickSize) Each of the above items can be null, when it is null, it means that this item is no longer restricted The logical pseudocode is as follows:
  • quantity>= min
  • quantity<= max
  • (quantity-minQuantity)% tickSize == 0
QUOTE_QTY FILTER Limit the amount of the order It internally defines the minimum allowable value-min When min is null, the order is not limited Otherwise the restriction rules are as follows: 1.For orders of the LIMIT type,must meet the following conditions: price*quantity>=min 2.For orders of the MARKET type and BUY type,must meet the following conditions: quoteQty>=min,(quoteQty,The required amount when placing an order of MARKET type by amount) PROTECTION_LIMIT FILTER There are price protection restrictions for orders whose order type (orderType) is LIMIT, including the following four parts: 1.buyMaxDeviation: The maximum deviation of the buy order, determine the minimum buy order price based on this value and the latest transaction price 2.buyPriceLimitCoefficient: The buy limit coefficient, determine the maximum buy order price based on this value and the latest transaction price 3.sellMaxDeviation: The maximum deviation of the sell order, determine the maximum sell order price based on this value and the latest transaction price 4.sellPriceLimitCoefficient: The sell limit coefficient, determine the minimum sell order price based on this value and the latest transaction price If there is no latest transaction price, there will be no restrictions, or if the above parameters are null, the corresponding direction type orders will not be restricted. In order to pass the limit price protection, the order price must meet the following conditions (latestPrice is the latest transaction price) buy order: price >= latestPrice-latestPricebuyMaxDeviation  && price <= latestPrice+latestPricebuyPriceLimitCoefficient sell order: price <= latestPrice+latestPricesellMaxDeviation  && price >= latestPrice-latestPricesellPriceLimitCoefficient PROTECTION_MARKET FILTER There is a price limit protection mechanism for orders of the order type MARKET, which internally specifies the maximum deviation rate(maxDeviation). For market type orders, the market price must meet the following conditions for the order to pass(sellBestPrice  sell one price,buyBestPrice buy one price,latestPrice The latest transaction price, these data are obtained through historical transaction data) buy order: latestPrice + latestPrice* maxDeviation >= sellBestPrice sell order: latestPrice - latestPrice* maxDeviation <= buyBestPrice For the above situation maxDeviation,latestPrice,sellBestPrice,buyBestPrice All may be empty or there is no latest transaction price, buy one price, sell one price, there is no limit PROTECTION_ONLINE FILTER Limit the price of orders of the MARKET type within the specified time range after the opening The maximum price multiple is defined inside this filter(maxPriceMultiple),duration(durationSeconds)。 Limitation logic: when it is within the durationSeconds time range after the opening of the symbol, Orders with an order type of LIMIT must meet the following conditions to pass price<=openPrice*maxPriceMultiple,(openPrice is the opening price). There are no restrictions on other types of orders or orders outside the opening time frame. For maxPriceMultiple, durationSeconds can be null, when they are null, no opening protection limit is applied.
Response

Get depth data

GET /v4/public/depth Parameters

Limit Flow Rules

10/s/ip
Java
Response

Get K-line data

GET /v4/public/kline Parameters

Limit Flow Rules

10/s/ip
Response

Query the list of recent transactions

GET /v4/public/trade/recent Parameters

Limit Flow Rules

10/s/ip
Java
Response

Query historical transaction list

GET /v4/public/trade/history Parameters

Limit Flow Rules

10/s/ip
Java
Response

Full ticker

GET /v4/public/ticker Parameters

Limit Flow Rules

1.single symbol:10/s/ip 2.multiple symbols:10/s/ip
Java
Response

Get latest prices ticker

GET /v4/public/ticker/price Parameters

Limit Flow Rules

1.single symbol:10/s/ip 2.multiple symbols:10/s/ip
Java
Response

Get the best pending order ticker

GET /v4/public/ticker/book Parameters

Limit Flow Rules

1.single symbol:10/s/ip 2.multiple symbols:10/s/ip
Response

Get 24h statistics ticker

GET /v4/public/ticker/24h Parameters

Limit Flow Rules

1.single symbol:10/s/ip 2.multiple symbols:10/s/ip
Response