Skip to main content

Public

Security: None

Endpoints under Public section can be accessed freely without requiring any API-key or signatures

Test Connectivity

GET https://futuresopenapi.idax.exchange/fapi/v1/ping This endpoint checks connectivity to the host
{}

Check Server Time

GET https://futuresopenapi.idax.exchange/fapi/v1/time
{
    "serverTime":1607702400000,
    "timezone":Chinese standard time
}

Response:

nametypeexampledescription
serverTimelong1607702400000server timestamp
timezonestringChina standard timeserver time zone

Contract List

GET https://futuresopenapi.idax.exchange/fapi/v1/contracts
[
    {
        "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
    }
]

Response:

nametypeexampledescription
symbolstringE-BTC-USDTContract name
statusnumber1status(0:cannot trade,1:can trade
typestringScontract type, E: perpetual contract, S: test contract, others are mixed contract
sidenumber1Contract direction(backwards:0,1:forward)
multipliernumber0.5Contract face value
multiplierCoinstringBTCContract face value unit
pricePrecisionnumber4Precision of the price
minOrderVolumenumber10Minimum order volume
minOrderMoneynumber10Minimum order value
maxMarketVolumenumber100000Market price order maximum volume
maxMarketMoneynumber100000Market price order maximum value
maxLimitVolumenumber100000Limit price order maximum volume
maxValidOrdernumber100000Maximum valid order quantity

Market

Security: None

Market section can be accessed freely without requiring any API-key or signatures.

Depth

GET https://futuresopenapi.idax.exchange/fapi/v1/depth Market depth data

Query Parameters

NameTypeDescription
limitintegerDefault 100, Max 100
Contract namestringContract Name E.g. E-BTC-USDT
{
  "bids": [
    [
      "3.90000000",   // price
      "431.00000000"  // quantity
    ],
    [
      "4.00000000",
      "431.00000000"
    ]
  ],
  "asks": [
    [
      "4.00000200",  // price
      "12.00000000"  // quantity
    ],
    [
      "5.10000000",
      "28.00000000"
    ]
  ]
}

Response:

nametypeexampledescription
timelong1595563624731Current Timestamp (ms)
bidslistLook belowOrder book purchase info
askslistLook belowOrder book selling info
The fields bids and asks are lists of order book price level entries, sorted from best to worst.
nametypeexampledescription
’ ‘float131.1price level
’ ‘float2.3Total order quantity for this price level

24hrs ticker

GET https://futuersopenapi.idax.exchange/fapi/v1/ticker 24 hour price change statistics

Query Parameters

NameTypeDescription
Contract namestringContract name E.g. E-BTC-USDT
{
    "high": "9279.0301",
    "vol": "1302",
    "last": "9200",
    "low": "9279.0301",
    "rose": "0",
    "time": 1595563624731
}

Response:

nametypeexampledescription
timelong1595563624731Open time
highfloat9900Higher price
lowfloat8800.34Lower price
lastfloat8900Newest price
volfloat4999Trade volume
rosestring+0.5Price variation

Get index/marked price

GET https://futuersopenapi.idax.exchange/fapi/v1/index

Query Parameters

NameTypeDescription
Contract namestringContract name E.g. E-BTC-USDT
limitstringDefault 100, Max 100
{
    "markPrice": 581.5,
    "indexPrice": 646.3933333333333,
    "lastFundingRate": 0.001,
    "contractName": "E-ETH-USDT",
    "time": 1608273554063
}

Response:

nametypeexampleDescription
indexPricefloat0.055Index price
markPricefloat0.0578Marked price
contractNamestringE-BTC-USDTContract name
lastFundingRatefloat0.123Current fund rate

Kline/charts data

GET https://futuresopenapi.idax.exchange/fapi/v1/klines

Query Parameters

NameTypeDescription
ContractNamestringContract name E.g. E-BTC-USDT
intervalstringK-line interval, identifies the sent value as: 1min,5min,15min,30min,1h,1day,1week,1month
limitintegerDefault 100, Max 300
[
    {
        "high": "6228.77",
        "vol": "111",
        "low": "6228.77",
        "idx": 1594640340,
        "close": "6228.77",
        "open": "6228.77"
    },
    {
        "high": "6228.77",
        "vol": "222",
        "low": "6228.77",
        "idx": 1587632160,
        "close": "6228.77",
        "open": "6228.77"
    },
    {
        "high": "6228.77",
        "vol": "333",
        "low": "6228.77",
        "idx": 1587632100,
        "close": "6228.77",
        "open": "6228.77"
    }
]

Response:

nametypeexampledescription
idxlong1538728740000Start timestamp (ms)
openfloat36.00000Open price
closefloat33.00000Closing price
highfloat36.00000Max price
lowfloat30.00000Min price
volfloat2456.111Trade volume

Trading

Security: TRADE

All interfaces under the transaction require signature and API-key verification​

Order creation

POST https://futuresopenapi.idax.exchange/fapi/v1/order Creation of single new orders

Headers

NameTypeDescription
X-CH-TSstringTime stamp
X-CH-APIKEYstringYour API-key
X-CH-SIGNstringSignature

Request Body

NameTypeDescription
volumenumberOrder quantity
pricenumberOrder price
contractNamestringContract name E.g. E-BTC-USDT
typestringOrder type, LIMIT/MARKET
sidestringtrade direction, BUY/SELL
openstringOpen balancing direction, OPEN/CLOSE
positionTypenumberHold-up position, 1 full position, 2 restrictive position
clientOrderIdstringClient order identity, a string with length less than 32 bit
timeInForcestringIOC, FOK, POST_ONLY
{
    "orderId": 256609229205684228
}

Response:

nametypeexampledescription
orderIdString256609229205684228Order ID

Condition order creation

POST https://futuresopenapi.idax.exchange/fapi/v1/conditionOrder

Headers

NameTypeDescription
X-CH-TSstringTime stamp
X-CH-APIKEYstringYour API-key
X-CH-SIGNstringSignature

Request Body

NameTypeDescription
volumenumberOrder quantity
triggerTypestringtrigger type 3UP/4DOWN
triggerPricestringtrigger price
positionTypenumberHold-up position, 1 full position, 2 restrictive position
openstringOpen balancing direction, OPEN/CLOSE
sidestringtrade direction, BUY/SELL
typestringOrder type, LIMIT/MARKET
contractNamestringContract name E.g. E-BTC-USDT
pricenumberOrder price
{
     "orderId": 256609229205684228
}

Cancel order

POST https://futuresopenapi.idax.exchange/fapi/v1/cancel Speed limit rules: 20 times/ 2 seconds

Headers

NameTypeDescription
X-CH-SIGNstringSignature
X-CH-APIKEYstringYour API-key
X-CH-TSintegerTime stamp

Request Body

NameTypeDescription
contractNamestringContract name E.g. E-BTC-USDT
orderIdstringOrder ID
{
    "orderId": 256609229205684228
}

Order details

GET https://futuresopenapi.idax.exchange/fapi/v1/order

Request Body

NameTypeDescription
contractNamestring
[
    {
       "side": "BUY",
       "executedQty": 0,
       "orderId": 259396989397942275,
       "price": 10000.0000000000000000,
       "origQty": 1.0000000000000000,
       "avgPrice": 0E-8,
       "transactTime": "1607702400000",
       "action": "OPEN",
       "contractName": "E-BTC-USDT",
       "type": "LIMIT",
       "status": "INIT"
    }
]

Response:

nametypeexampledescription
orderIdlong150695552109032492Order ID(system generated
contractNamestringE-BTC-USDTContract name
pricefloat10.5Order price
origQtyfloat10.5Order quantity
executedQtyfloat20Order quantity
avgPricefloat10.5Average transaction price
symbolstringBHTUSDTCoin pair name
statusstringNEWOrder status. Possible values are:NEW(new order,not filled)、PARTIALLY_FILLED(partially filled)、FILLED(fully filled)、CANCELLED(already cancelled)andREJECTED(order rejected)
sidestringNEWOrder direction. Possible values can only be:BUY(buy long)and SELL(sell short)
actionstringOPENOPEN/CLOSE
transactTimelong1607702400000Order creation time

Open order

GET https://futuresopenapi.idax.exchange/fapi/v1/openOrders Speed limit rules: Obtain open contract, the user’s current order

Query Parameters

NameTypeDescription
contractNamestringContract name E-BTC-USDT

Headers

NameTypeDescription
X-CH-SIGNstringsignature
X-CH-APIKEYstringYour API-key
X-CH-TSintegertime stamp
[
    {
       "side": "BUY",
       "executedQty": 0,
       "orderId": 259396989397942275,
       "price": 10000.0000000000000000,
       "origQty": 1.0000000000000000,
       "avgPrice": 0E-8,
       "transactTime": "1607702400000",
       "action": "OPEN",
       "contractName": "E-BTC-USDT",
       "type": "LIMIT",
       "status": "INIT"
    }
]

Response:

nametypeexampledescription
orderIdlong150695552109032492Order ID(system generated)
contractNamestringE-BTC-USDTContract name
pricefloat4765.29Order price
origQtyfloat1.01Order quantity
executedQtyfloat1.01Filled orders quantity
avgPricefloat4754.24Filled orders average price
typestringLIMITOrder type. Possible values can only be:LIMIT(limit price) andMARKET(market price)
sidestringBUYOrder direction. Possible values can only be:BUY(buy long)and SELL(sell short)
statusstringNEWOrder status. Possible values are:NEW(new order,not filled)、PARTIALLY_FILLED(partially filled)、FILLED(fully filled)、CANCELLED(already cancelled)andREJECTED(order rejected)
actionstringOPENOPEN/CLOSE
transactTimelong1607702400000Order creation time,

order history

POST https://futuresopenapi.idax.exchange/fapi/v1/orderHistorical

Headers

NameTypeDescription
X-CH-SIGNstringsignature
X-CH-APIKEYstringYour API-key
X-CH-TSstringtime stamp

Request Body

NameTypeDescription
contractNamestringContract name E.g. E-BTC-USDT
limitstringLines per page, default 100, max 1000
fromIdlongStart retrieving from this Id
[
    {
        "side":"BUY",
        "clientId":"0",
        "ctimeMs":1632903411000,
        "positionType":2,
        "orderId":777293886968070157,
        "avgPrice":41000,
        "openOrClose":"OPEN",
        "leverageLevel":26,
        "type":4,
        "closeTakerFeeRate":0.00065,
        "volume":2,
        "openMakerFeeRate":0.00025,
        "dealVolume":1,
        "price":41000,
        "closeMakerFeeRate":0.00025,
        "contractId":1,
        "ctime":"2021-09-29T16:16:51",
        "contractName":"E-BTC-USDT",
        "openTakerFeeRate":0.00065,
        "dealMoney":4.1,
        "status":4
    }
]

profit history

POST https://futuresopenapi.idax.exchange/fapi/v1/profitHistorical

Headers

NameTypeDescription
X-CH-SIGNstringsignature
X-CH-APIKEYstringYour API-key
X-CH-TSstringtime stamp

Request Body

NameTypeDescription
contractNamestringContract name E.g. E-BTC-USDT
limitstringLines per page, default 100, max 1000
fromIdlongStart retrieving from this Id
[
    {
        "side":"SELL",
        "positionType":2,
        "tradeFee":-5.23575,
        "realizedAmount":0,
        "leverageLevel":26,
        "openPrice":44500,
        "settleProfit":0,
        "mtime":1632882739000,
        "shareAmount":0,
        "openEndPrice":44500,
        "closeProfit":-45,
        "volume":900,
        "contractId":1,
        "historyRealizedAmount":-50.23575,
        "ctime":1632882691000,
        "id":8764,
        "capitalFee":0
    }
]

Order record

GET https://futuresopenapi.idax.exchange/fapi/v1/myTrades

Query Parameters

NameTypeDescription
contractNamestringContract name E.g. E-BTC-USDT
limitstringLines per page, default 100, max 1000
fromIdlongStart retrieving from this tradeId

Headers

NameTypeDescription
X-CH-SIGNstringsignature
X-CH-APIKEYstringYour API-key
X-CH-TSstringtime stamp
[
  {
    "symbol": "ETHBTC",
    "id": 100211,
    "bidId": 150695552109032492,
    "askId": 150695552109032493,
    "price": "4.00000100",
    "qty": "12.00000000",
    "time": 1499865549590,
    "isBuyer": true,
    "isMaker": false,
    "fee":"0.001"
  },...
]

Response:

nametypeexampledescription
symbolstringETHBTCCoin name(trade pair)
tradeIdnumber28457Trade ID
bidIdlong150695552109032492Buyer order ID
askIdlong150695552109032493Seller order ID
bidUserIdinteger10024Buyer user ID
askUserIdinteger10025Seller user ID
pricefloat4.01Filled price
qtyfloat12Trade quantity
amountfloat5.38Filled amount
timenumber1499865549590Trade time stamp
feenumber0.001Trading fees
sidestringbuyCurrent order direction BUY purchase, SELL selling
contractNamestringE-BTC-USDTContract name
isMakerbooleantrueis it maker?
isBuyerbooleantrueis it buyer?

Account

Security: USER_DATA

All interfaces under the account require signature and API-key verification​

Account info

GET https://futuresopenapi.xxx.com /fapi/v1/account

Headers

NameTypeDescription
X-CH-SIGNstringSignature
X-CH-APIKEYstringYour API-key
X-CH-TSintegertime stamp
{
    "account": [
        {
            "marginCoin": "USDT",
            "accountNormal": 999.5606,
            "accountLock": 23799.5017,
            "partPositionNormal": 9110.7294,
            "totalPositionNormal": 0,
            "achievedAmount": 4156.5072,
            "unrealizedAmount": 650.6385,
            "totalMarginRate": 0,
            "totalEquity": 99964804.560,
            "partEquity": 13917.8753,
            "totalCost": 0,
            "sumMarginRate": 873.4608,
            "positionVos": [
                {
                    "contractId": 1,
                    "contractName": "E-BTC-USDT",
                    "contractSymbol": "BTC-USDT",
                    "positions": [
                        {
                            "id": 13603,
                            "uid": 10023,
                            "contractId": 1,
                            "positionType": 2,
                            "side": "BUY",
                            "volume": 69642.0,
                            "openPrice": 11840.2394,
                            "avgPrice": 11840.3095,
                            "closePrice": 12155.3005,
                            "leverageLevel": 24,
                            "holdAmount": 7014.2111,
                            "closeVolume": 40502.0,
                            "pendingCloseVolume": 0,
                            "realizedAmount": 8115.9125,
                            "historyRealizedAmount": 1865.3985,
                            "tradeFee": -432.0072,
                            "capitalFee": 2891.2281,
                            "closeProfit": 8117.6903,
                            "shareAmount": 0.1112,
                            "freezeLock": 0,
                            "status": 1,
                            "ctime": "2020-12-11T17:42:10",
                            "mtime": "2020-12-18T20:35:43",
                            "brokerId": 21,
                            "marginRate": 0.2097,
                            "reducePrice": 9740.8083,
                            "returnRate": 0.3086,
                            "unRealizedAmount": 2164.5289,
                            "openRealizedAmount": 2165.0173,
                            "positionBalance": 82458.2839,
                            "settleProfit": 0.4883,
                            "indexPrice": 12151.1175,
                            "keepRate": 0.005,
                            "maxFeeRate": 0.0025
                        }
                    ]
                }
            ]
        }
    ]
}

Response:

nametypedescription
account[]Balance collection
account field:
nametypeexampledescription
marginCoinstringUSDTMargin coin
accountNormalfloat10.05Balance account
accountLockfloat10.07Margin frozen account
partPositionNormalfloat10.07Restricted position margin balance
totalPositionNormalfloat10.07Full position initial margin
achievedAmountfloat10.07Profit and losses occurred
unrealizedAmountfloat10.05Unfilled profit and losses
totalMarginRatefloat10.05Full position margin rate
totalEquityfloat10.07Full position equity
partEquityfloat10.07Restricted position equity
totalCostfloat10.07Full position costs
sumMarginRatefloat10.07All accounts margin rate
positionVos[ ]Position contract record
positionVos field:
nametypeexampledescription
contractIdinteger2Contract id
contractNamestringE-BTC-USDTContract name
contractSymbolstringBTC-USDTContract coin pair
positions[ ]Position details
positions field:
nametypeexampledescription
idinteger2Position id
uidinteger10023User ID
positionTypeinteger1Hold position type(1 full,2 restrictive)
sidestringSELLHold position direction BUY sell long, SELL buy short
volumefloat1.05Hold quantity
openPricefloat1.05Open position price
avgPricefloat1.05Hold average price
closePricefloat1.05Balancing average price
leverageLevelfloat1.05Leverage multiple
holdAmountfloat1.05Hold position margin
closeVolumefloat1.05Balanced quantity
pendingCloseVolumefloat1.05The number of pending closing orders
realizedAmountfloat1.05Profit and losses occurred
historyRealizedAmountfloat1.05Historic accumulated profit and losses
tradeFeefloat1.05Trading fees
capitalFeefloat1.05Capital costs
closeProfitfloat1.05Balancing profit and loss
shareAmountfloat1.05Amount to share
freezeLockinteger0Position freeze status: 0 normal, 1 liquidation freeze, 2 delivery freeze
statusinteger0Position effectiveness,0 ineffective 1 effective
ctimetimeCreation time
mtimetimeUpdate time
brokerIdinteger1023Client id
lockTimetimeliquidation lock time
marginRatefloat1.05Margin rate
reducePricefloat1.05Price reduction
returnRatefloat1.05Return rate (profit rate)
unRealizedAmountfloat1.05Unfilled profit and losses
openRealizedAmountfloat1.05Open position unfilled profit and losses
positionBalancefloat1.05Position value
indexPricefloat1.05Newest marked price
keepRatefloat1.05Scaled minimum kept margin rate
maxFeeRatefloat1.05Balancing maximum fees rate