🚀Futures
Public Security: None Endpoints under the Public section can be accessed freely without requiring any API-key or signatures.
Test Connectivity
GET
https://futuresopenapi.fokawa.com/fapi/v1/ping
This endpoint checks connectivity to the host.
Response Example:
{}Check Server Time
GET
https://futuresopenapi.fokawa.com/fapi/v1/time
Response Example:
{
"serverTime": 1607702400000,
"timezone": "China standard time"
}Contract List
GET
https://futuresopenapi.fokawa.com/fapi/v1/contracts
Response Example:
[
{
"symbol": "H-HT-USDT",
"pricePrecision": 8,
"side": 1,
"maxMarketVolume": 100000,
"multiplier": 6,
"minOrderVolume": 1,
"maxMarketMoney": 10000000,
"type": "H",
"maxLimitVolume": 1000000,
"maxValidOrder": 20,
"multiplierCoin": "HT",
"minOrderMoney": 0.001,
"maxLimitMoney": 1000000,
"status": 1
}
]Market
Security: None Market section can be accessed freely without requiring any API-key or signatures.
Depth
GET
https://futuresopenapi.fokawa.com/fapi/v1/depth
Query Parameters:
limit: Integer (Default 100, Max 100)contractName: String (Contract Name, e.g., E-BTC-USDT)
Response Example:
24hrs Ticker
GET
https://futuresopenapi.fokawa.com/fapi/v1/ticker
Query Parameters:
contractName: String (Contract Name, e.g., E-BTC-USDT)
Response Example:
Get Index/Marked Price
GET
https://futuresopenapi.fokawa.com/fapi/v1/index
Query Parameters:
contractName: String (Contract Name, e.g., E-BTC-USDT)limit: String (Default 100, Max 100)
Response Example:
Kline/Charts Data
GET
https://futuresopenapi.fokawa.com/fapi/v1/klines
Query Parameters:
contractName: String (Contract Name, e.g., E-BTC-USDT)interval: String (K-line interval, e.g., 1min, 5min, 15min, 30min, 1h, 1day, 1week, 1month)limit: Integer (Default 100, Max 300)
Response Example:
Trading Security: TRADE All interfaces under the transaction require signature and API-key verification.
Order Creation
POST
https://futuresopenapi.fokawa.com/fapi/v1/order
Creation of single new orders.
Headers:
X-CH-TS: String (Timestamp)X-CH-APIKEY: String (Your API-key)X-CH-SIGN: String (Signature)
Request Body:
volume: Number (Order quantity)price: Number (Order price)contractName: String (Contract name, e.g., E-BTC-USDT)type: String (Order type, LIMIT/MARKET)side: String (Trade direction, BUY/SELL)open: String (Open balancing direction, OPEN/CLOSE)positionType: Number (Hold-up position, 1 full position, 2 restrictive position)clientOrderId: String (Client order identity, a string with length less than 32 characters)timeInForce: String (IOC, FOK, POST_ONLY)
Response Example:
Condition Order Creation
POST
https://futuresopenapi.fokawa.com/fapi/v1/conditionOrder
Headers:
X-CH-TS: String (Timestamp)X-CH-APIKEY: String (Your API-key)X-CH-SIGN: String (Signature)
Request Body:
volume: Number (Order quantity)triggerType: String (Trigger type 3UP/4DOWN)triggerPrice: String (Trigger price)positionType: Number (Hold-up position, 1 full position, 2 restrictive position)open: String (Open balancing direction, OPEN/CLOSE)side: String (Trade direction, BUY/SELL)type: String (Order type, LIMIT/MARKET)contractName: String (Contract name, e.g., E-BTC-USDT)price: Number (Order price)
Response Example:
Cancel Order
POST
https://futuresopenapi.fokawa.com/fapi/v1/cancel
Speed Limit Rules: 20 times/2s
Headers:
X-CH-SIGN: String (Signature)X-CH-APIKEY: String (Your API-key)X-CH-TS: Integer (Timestamp)
Request Body:
contractName: String (Contract name, e.g., E-BTC-USDT)orderId: String (Order ID)
Response Example:
Order Details
GET
https://futuresopenapi.fokawa.com/fapi/v1/order
Query Parameters:
contractName: String (Contract name, e.g., E-BTC-USDT)
Response Example:
Open Order
GET
https://futuresopenapi.fokawa.com/fapi/v1/openOrders
Speed Limit Rules: Obtain open contract, the user's current order.
Query Parameters:
contractName: String (Contract name, e.g., E-BTC-USDT)
Headers:
X-CH-SIGN: String (Signature)X-CH-APIKEY: String (Your API-key)X-CH-TS: Integer (Timestamp)
Response Example:
Order History
POST
https://futuresopenapi.fokawa.com/fapi/v1/orderHistorical
Headers:
X-CH-SIGN: String (Signature)X-CH-APIKEY: String (Your API-key)X-CH-TS: String (Timestamp)
Request Body:
contractName: String (Contract name, e.g., E-BTC-USDT)limit: String (Lines per page, default 100, max 1000)fromId: Long (Start retrieving from this Id)
Response Example:
Profit History
POST
https://futuresopenapi.fokawa.com/fapi/v1/profitHistorical
Headers:
X-CH-SIGN: String (Signature)X-CH-APIKEY: String (Your API-key)X-CH-TS: String (Timestamp)
Request Body:
contractName: String (Contract name, e.g., E-BTC-USDT)limit: String (Lines per page, default 100, max 1000)fromId: Long (Start retrieving from this Id)
Response Example:
Order Record
GET
https://futuresopenapi.fokawa.com/fapi/v1/myTrades
Query Parameters:
contractName: String (Contract name, e.g., E-BTC-USDT)limit: String (Lines per page, default 100, max 1000)fromId: Long (Start retrieving from this tradeId)
Headers:
X-CH-SIGN: String (Signature)X-CH-APIKEY: String (Your API-key)X-CH-TS: String (Timestamp)
Response Example:
Account
Security: USER_DATA All interfaces under the account require signature and API-key verification.
Account Info
GET
https://futuresopenapi.fokawa.com/fapi/v1/account
Headers:
X-CH-SIGN: String (Signature)X-CH-APIKEY: String (Your API-key)X-CH-TS: Integer (Timestamp)
Response Example:
Last updated