Skip to main content

Public

Security: None

Test Connectivity

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

Check Server Time

GET https://openapi.idax.exchange/sapi/v1/time This endpoint checks connectivity to the server and retrieves server timestamp
{
    "timezone": "GMT+08:00",
    "serverTime": 1595563624731
}

Pairs List

GET https://openapi.idax.exchange/sapi/v1/symbols
{
    "symbols": [
        {
          "quantityPrecision":1,
          "symbol":"spc1mont",
          "pricePrecision":5,
          "quoteAssetName":"MNT",
          "baseAssetName":"SPC",
          "baseAsset":"SPC1",
          "quoteAsset":"MONT"
        },
        {
          "quantityPrecision":1,
          "symbol":"spc1ardx1557",
          "pricePrecision":6,
          "quoteAssetName":"ARDX",
          "baseAssetName":"SPC",
          "baseAsset":"SPC1",
          "quoteAsset":"ARDX1557"
        },
        {
          "quantityPrecision":1,
          "symbol":"usdttestmnttest",
          "pricePrecision":8,
          "quoteAssetName":"MNTTEST",
          "baseAssetName":"USDTTEST",
          "baseAsset":"USDTTEST",
          "quoteAsset":"MNTTEST"
        },
        {
          "quantityPrecision":1,
          "symbol":"zesc1620mont",
          "pricePrecision":3,
          "quoteAssetName":"MNT",
          "baseAssetName":"ZESC",
          "baseAsset":"ZESC1620",
          "quoteAsset":"MONT"
        },
        {
          "quantityPrecision":1,
          "symbol":"zesc1620ardx1557",
          "pricePrecision":6,
          "quoteAssetName":"ARDX",
          "baseAssetName":"ZESC",
          "baseAsset":"ZESC1620",
          "quoteAsset":"ARDX1557"
        }
    ]
}
weight(IP/UID): 1

Response:

symbolstringzesc1620ardx1557Name of the symbolCurrency to name
baseAssetstringZESC1620Underlying asset for the symbolbase currency
quoteAssetstringARDX1557Quote asset for the symbolThe base currency
baseAssetNamestringZESCName of the underlying assetbase currency
quoteAssetNamestringARDXName of the quote assetThe base currency
pricePrecisioninteger6Precision of the pricePrice Accuracy
quantityPrecisioninteger1Precision of the quantityQuantity accuracy

Market

Security Type: None

Depth

GET https://openapi.idax.exchange/sapi/v1/depth Get market depth data.

Query Parameters

NameTypeDescription
limitintegerDefault 100; Max 100
symbol*StringSymbol Name E.g. BTCUSDT
{
  "bids": [
    [
      3.90000000,   // price
      431.00000000  // vol
    ],
    [
      4.00000000,
      431.00000000
    ]
  ],
  "asks": [
    [
      4.00000200,  // price
      12.00000000  // vol
    ],
    [
      5.10000000,
      28.00000000
    ]
  ]
}
weight(IP/UID): 5

Response:

timelong1595563624731Current timestamp (ms)
bidslist;List of all bids, best bids first. See below for entry details.
askslist;List of all asks, best asks first. See below for entry details.
The fields bids and asks are lists of order book price level entries, sorted from best to worst.
’ ‘float131.1price level
’ ‘float2.3The total quantity of orders for this price level

24hrs ticker

GET https://openapi.idax.exchange/sapi/v1/ticker Get data of 24 hour price change statistics.

Query Parameters

NameTypeDescription
symbol*StringSymbol Name. E.g. BTCUSDT
{
  "high":"91450.14",
  "vol":"1920.5569555",
  "last":"89999.01",
  "low":"88721.87",
  "buy":89998.05,
  "sell":89999.86,
  "rose":"-0.0028905413",
  "time":1731891837000,
  "open":"90259.91"
}
weight(IP/UID): 5

Response:

timelong1595563624731Open Time
highstring9900High Price
lowstring8800.34Low Price
openstring8700Open Price
laststring8900Last Price
volstring4999Trade Volume
rosestring0Price increase or Price rise
buyfloat4999Highest bid price on orderbook
sellfloat0Lowest ask price on orderbook

Recent Trades List

GET https://openapi.idax.exchange/sapi/v1/trades Fetch list of recent trades in reverse chronological order.

Query Parameters

NameTypeDescription
symbol*StringSymbol Name. E.g. BTCUSDT
limitStringDefault 100; Max 1000
{
    "list":[
      {
        "symbol":"BTCUSDT",
        "side":"SELL",
        "price":"90080.04",
        "qty":"0.02955",
        "id":185678400,
        "time":1731892228378
      }
    ]
}
weight(IP/UID): 5

Response:

pricestring0.055The price of the trade
timelong1537797044116Current timestamp (ms)
qtystring5The quantity traded
sidestringBUY/SELLTaker side
symbolstringBTCUSDTSymbol
idlong185678400Trade id

Kline/candlestick data

GET https://openapi.idax.exchange/sapi/v1/klines Returns kline data (chart data) of symbol.

Query Parameters

NameTypeDescription
symbol*Symbol Name. E.g. BTCUSDT
interval*StringInterval of the Kline. Possible values include: 1min,5min,15min,30min,60min,1day,1week,1month
limitStringDefault 100; Max 300
startTimelongstartTime example:1538728740000
endTimelongendTime example:1538728740000
[
  {
    "high":"90452.29",
    "vol":"0.93406",
    "low":"90392.44",
    "idx":1731893160000,
    "close":"90415.62",
    "open":"90407.82"
  },
  {
    "high":"90420.17",
    "vol":"2.78998",
    "low":"90314.01",
    "idx":1731893100000,
    "close":"90399.63",
    "open":"90320.15"
  },
  {
    "high":"90320.17",
    "vol":"0.91645",
    "low":"90200.03",
    "idx":1731893040000,
    "close":"90320.17",
    "open":"90216.15"
  }
]
weight(IP/UID): 1

Response:

idxlong1538728740000Open time
openstring90216.15open price
closestring90320.17close price
highstring36.00000high price
lowstring30.00000low price
volstring2456.111volume

Trade

Security Type: TRADE

Endpoints under Trade require an API Key and a signature

New Order

POST https://openapi.idax.exchange/sapi/v1/order Rate Limit: 100times/2s Place a new order.

Query Parameters

NameTypeDescription
X-CH-SIGNstringSignature
X-CH-APIKEYstringYour API-key
X-CH-TSintegerTimestamp

Request Body

NameTypeDescription
symbol*StringSymbol Name. E.g. BTCUSDT
symbolNameStringCurrency display name: choose either symbol or symbolName to fill in.
volume*numberOrder vol. For MARKET BUY orders, vol=amount.
side*StringSide of the order,BUY/SELL
type*StringType of the order, LIMIT/MARKET
price*numberOrder price, REQUIRED for LIMIT orders
newClientOrderIdStringUnique order ID generated by users to mark their orders
recvWindow*integerTime window
{
  "symbol": "USDTTESTMNTTEST",
  "side": "BUY",
  "executedQty": "0",
  "orderId": "2462009480448926608",
  "price": "3452",
  "origQty": "123",
  "clientOrderId": null,
  "transactTime": "1731893951010",
  "orderIdString": "2462009480448926608",
  "type": "LIMIT",
  "status": "0"
}
weight(IP/UID): 5

Response:

orderIdstring150695552109032492ID of the order
orderIdStringstring150695552109032492ID of the order (in string format)
clientorderIdstring213443A unique ID of the order.
symbolstringBTCUSDTSymbol Name
transactTimestring1273774892913Time the order is placed
pricestring4765.29Time the order is placed
origQtystring1.01Quantity ordered
executedQtystring1.01Quantity of orders that has been executed
typestringLIMITOrder type LIMIT,MARKET
sidestringBUYOrder side:BUY, SELL
statusstring00 = new order

Test New Order

POST https://openapi.idax.exchange/sapi/v1/order/test Test new order creation and signature/recvWindow length. Creates and validates a new order but does not send the order into the matching engine.

Headers

NameTypeDescription
X-CH-APIKEYStringYour API-key
X-CH-TSStringtimestamp
X-CH-SIGNStringSign

Request Body

NameTypeDescription
type*StringType of the order, LIMIT/MARKET
price*numberOrder price, REQUIRED for LIMIT orders
volume*numberOrder vol. For MARKET BUY orders, vol=amount.
side*StringSide of the order, BUY/SELL
symbol*StringSymbol Name. E.g. BTCUSDT
recvWindow*integerTime window
newClientorderIdStringUnique order ID generated by users to mark their orders
{
    // Same as creating an actual order
}
weight(IP/UID): 1

Batch Orders

POST https://openapi.idax.exchange/sapi/v1/batchOrders batch contains at most 10 orders

Headers

NameTypeDescription
X-CH-APIKEYStringYour API-key
X-CH-TSStringtimestamp
X-CH-SIGNStringSign

Request Body

NameTypeDescription
orderslistThe batch order information can contain a maximum of 10 records.
symbol*StringSymbol Name. E.g. BTCUSDT
symbolNameStringCurrency display name: choose either symbol or symbolName to fill in.
{
    "idsString": [ //Character String Type Order ID (Recommended)
        "165964665990709251",
        "165964665990709252",
        "165964665990709253"
    ],
    "ids": [
        165964665990709251,
        165964665990709252,
        165964665990709253
    ]
}
weight(IP/UID): 10

Request orders field:

nametypeExampleDescription
pricefloat1000Price
volumefloat20.1Quantity
sidestringBUY/SELLDirection
batchTypestringLIMIT/MARKETType

Response

NameType of arraySampleDescription
idsStringString“3213213”A collection of order ids in string format.
idslong2100Collection of order numbers.

Query Order

GET https://openapi.idax.exchange/sapi/v1/order

Query Parameters

NameTypeDescription
orderId*StringOrder ID
newClientorderIdStringClient Order Id, Unique order ID generated by users to mark their orders. E.g. 354444heihieddada
symbol*StringSymbol Name. E.g. BTCUSDl
symbolNameStringCurrency display name: choose either symbol or symbolName to fill in.

Headers

NameTypeDescription
X-CH-APIKEYStringYour API-key
X-CH-TSStringtimestampResponses200
X-CH-SIGNStringSign
{
  'symbol': 'USDTTESTMNTTEST', 
  'orderType': '1', 
  'side': 'SELL', 
  'executedQty': '0.0', 
  'executedMoney': '0.0', 
  'orderId': '2462019444773044769', 
  'origQty': '123.0', 
  'avgPrice': '0.0', 
  'clientOrderId': None, 
  'orderIdString': '2462019444773044769', 
  'type': 'LIMIT', 
  'stopPrice': '0', 
  'price': '3451.0', 
  'transactTime': '1731899741000', 
  'isWorking': True, 
  'status': 'NEW'
}
weight(IP/UID): 1

Response:

orderIdstring150695552109032492Order ID (system generated)
clientorderIdstring213443Client order ID (sent by yourself)
symbolstringBTCUSDTCurrency Pair Name
pricestring4765.29Order Price
origQtystring1.01Number of orders
executedQtystring1.01Number of orders already filled
avgPricestring4754.24Average price of orders already filled
typestringlimitThe order typeLIMIT,MARKET
sidestringBUYOrder direction. Possible values can only be: BUY (buy long) and SELL (sell short)
statusstringNEWOrder status. Possible values are NEW (new order, no transaction), PARTIALLY_FILLED (partially filled), FILLED (fully filled), CANCELED (cancelled) and REJECTED (order rejected).POST
transactTimestring1574327555669Order Creation Time

Cancel Order

POST https://openapi.idax.exchange/sapi/v1/cancel

Headers

NameTypeDescription
X-CH-APIKEYStringYour API-key
X-CH-TSStringtimestamp
X-CH-SIGNStringSign

Request Body

NameTypeDescription
newClientOrderIdStringClient Order Id, Unique order ID generated by users to mark their orders. E.g. 354444heihieddada
orderId*StringOrder ID
symbol*StringSymbol Name. E.g. BTCUSDT
{
    'symbol': 'BHTUSDT', 
    'clientOrderId': '0', 
    'orderId': '499890200602846976', 
    'status': 'CANCELED'
}
weight(IP/UID): 5

Response:

orderIdlong150695552109032492ID of the order
clientorderIdstring213443Unique ID of the order.
symbolstringBTCUSDTName of the symbol
statusstringNEWThe state of the order.Possible values include NEW, PARTIALLY_FILLED, FILLED, CANCELED, and REJECTED.POST

Batch cancel orders

POST https://openapi.idax.exchange/sapi/v1/batchCancel batch contains at most 10 orders

Headers

NameTypeDescription
X-CH-APIKEYStringYour API-key
X-CH-TSStringtimestamp
X-CH-SIGNStringSign

Request Body

NameTypeDescription
orderIdsStringOrder ID collection [123,456]Responses200GET
symbol*StringSymbol Name. E.g. BTCUSDT
{
    "success": [
        165964665990709251,
        165964665990709252,
        165964665990709253
    ],
    "failed": [ //cancel fails because the order does not exist or the order state has expired
        165964665990709250  
    ]
}
weight(IP/UID): 10

Current Open Orders

GET https://openapi.idax.exchange/sapi/v1/openOrders

Query Parameters

NameTypeDescription
symbol*StringSymbol Name. E.g. BTCUSDT
limitStringDefault 100; Max 1000

Headers

NameTypeDescription
X-CH-APIKEYStringYour API-key
X-CH-TSStringtimestamp
X-CH-SIGNStringSign
[
    {
        'orderId': 499902955766523648, 
        'orderIdString': '499902955766523648', //Character String Type Order ID (Recommended)
        'symbol': 'BHTUSDT', 
        'price': '0.01', 
        'origQty': '50', 
        'executedQty': '0', 
        'avgPrice': '0', 
        'status': 'NEW', 
        'type': 'LIMIT', 
        'side': 'BUY', 
        'time': '1574329076202'
        },...
]
weight(IP/UID): 1

Response:

orderIdlong150695552109032492ID of the order
orderIdStringstring150695552109032492"Character String Type Order ID (Recommended)
clientorderIdstring213443Unique ID of the order.
symbolstringBTCUSDTName of the symbol
pricefloat4765.29Price of the order
origQtyfloat1.01Quantity ordered
executedQtyfloat1.01Quantity of orders that has been executed
avgPricefloat4754.24Average price of filled orders.
typestringLIMITThe order typeLIMIT,MARKET
sidestringBUYThe order side BUY,SELL
statusstringNEWThe state of the order.Possible values include NEW, PARTIALLY_FILLED, FILLED, CANCELED, and REJECTED.GET
timestring1574327555669Creation Time

Trades

GET https://openapi.idax.exchange/sapi/v1/myTrades

Query Parameters

NameTypeDescription
symbol*StringSymbol Name. E.g. BTCUSDT
limitStringDefault 100; Max1000
fromIdStringTrade Id to fetch from

Headers

NameTypeDescription
X-CH-APIKEYStringYour API-key
X-CH-TSStringtimestamp
X-CH-SIGNStringSign
[
  {
    "symbol": "ETHBTC",
    "id": 100211,
    "bidId": 150695552109032492,
    "askId": 150695552109032493,
    "price": "4.00000100",
    "qty": "12.00000000",
    "time": 1499865549590,
    "isBuyer": true,
    "isMaker": false,
    "feeCoin": "ETH",
    "fee":"0.001",
    "bidUserId":23334,
    "askUserId":44112
  },...
]
weight(IP/UID): 1

Response:

symbolstringBTCUSDTName of the symbol
idinteger28457Trade ID
bidIdlong150695552109032492Bid Order ID
askIdlong150695552109032492Ask Order ID
priceinteger4.01Price of the trade
qtyfloat12Quantiry of the trade
timenumber1499865549590timestamp of the trade
isBuyerbooltruetrue= Buyer false= Seller
isMakerboolfalsetrue=Maker false=Taker
feeCoinstringETHTrading fee coin
feenumber0.001Trading fee
bidUserIdlong23334Buyer UID
askUserIdlong44112Seller UID
isSelfbooltruewhether is self dealt

Account

Security Type: USER_DATA

Endpoints under Account require an API-key and a signature.

Account Information

GET https://openapi.idax.exchange/sapi/v1/account

Headers

NameTypeDescription
X-CH-APIKEYStringYour API-key
X-CH-TSStringtimestamp
X-CH-SIGNStringSign
{
    'balances': 
        [
            {
                'asset': 'BTC', 
                'free': '0', 
                'locked': '0'
                }, 
            {
                'asset': 'ETH', 
                'free': '0', 
                'locked': '0'
                },...
        ]
}
weight(IP/UID): 1

Response:

nametypedescription
balances[]Show balance details
balances field:
nametypeexampledescription
assetstringUSDTName of the asset
freefloat1000.30Amount available for use
lockedfloat400Amount locked (for open orders)