Spot

Public API

Security: Noneโ€‹

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

1) Test Connectivity

URL: https://openapi.koinbay.com/sapi/v1/ping

Method: Get

2) Check Server Time

URL: https://openapi.koinbay.com/sapi/v1/time

Method: Get

3) Pairs List

URL: https://openapi.koinbay.com/sapi/v1/symbols

Method: Get

Response:

MarketSecurity Type: Noneโ€‹Market section can be accessed freely without requiring any API-key or signatures.

Market

Security Type: Noneโ€‹

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

1) Market Depth

URL: https://openapi.koinbay.com/sapi/v1/depth

Method: Get

Response:

The fields bids and asks are lists of order book price level entries, sorted from best to worst.

2) 24 hrs ticker

URL: https://openapi.koinbay.com/sapi/v1/ticker

Method: Get

Response:

3) Recent Trades List

URL: https://openapi.koinbay.com/sapi/v1/trades Method: Get

Response

4) Kline/candlestick data

URL: https://openapi.koinbay.com/sapi/v1/klines

Method: Get

Response:

Trade

Security Type: TRADEโ€‹

Endpoints under Trade require an API-key and a signature.โ€‹

1) New Order

URL: https://openapi.koinbay.com/sapi/v1/order

Method: Post

Rate Limit: 100times/2s

Parameters

Header

Body

Success Response:

200:OK

{
    'symbol': 'LXTUSDT', 
    'orderId': '150695552109032492', 
    'clientOrderId': '157371322565051',
    'transactTime': '1573713225668', 
    'price': '0.005452', 
    'origQty': '110', 
    'executedQty': '0', 
    'status': 'NEW',
    'type': 'LIMIT', 
    'side': 'SELL'
}

2) Test New Order

Test new order creation and signature/recvWindow length. Creates and validates a new order but does not send the order into the matching engine.

URL: https://openapi.koinbay.com/sapi/v1/order/test

Method: Post

Parameters:

Header

Body

Success Response:

{}

3) Batch Orders

URL: https://openapi.koinbay.com/sapi/v1/batchOrders

Method: Get

Parameters

Header:

Body:

Success Response: 200:OK

{
    "ids": [
        165964665990709251,
        165964665990709252,
        165964665990709253
    ]
}

Request orders field:

4) Query Order

URL: https://openapi.koinbay.com/sapi/v1/order

Method: Get

Rate Limit:20 times/2s

Parameters:

Header:

Query

Success Responses: 200:OK

{
    'orderId': '499890200602846976', 
    'clientOrderId': '157432755564968', 
    'symbol': 'BHTUSDT', 
    'price': '0.01', 
    'origQty': '50', 
    'executedQty': '0', 
    'avgPrice': '0', 
    'status': 'NEW', 
    'type': 'LIMIT', 
    'side': 'BUY', 
    'transactTime': '1574327555669'
}

5) Cancel Order

URL: https://openapi.koinbay.com/sapi/v1/cancel

Rate Limit: 100time/2s

Method: Post

Parameters:

Header:

Body:

Success Response: 200:OK

{
    'symbol': 'BHTUSDT', 
    'clientOrderId': '0', 
    'orderId': '499890200602846976', 
    'status': 'CANCELED'
}

6) Batch Cancel Orders

The batch must contain a maximum 10 orders

URL:https://openapi.koinbay.com/sapi/v1/batchCancel

Method: Post

Rate Limit: 50times/2s

Headers

Body

Success Response: 200: OK

{
    "success": [
        165964665990709251,
        165964665990709252,
        165964665990709253
    ],
    "failed": [ //cancel fails because the order does not exist or the order state has expired
        165964665990709250  
    ]
}

7) Current Open Orders

URL: https://openapi.koinbay.com/sapi/v1/openOrders

Method: Get

Rate Limit: 20times/2s

Parameters

Query:

Header

Success Responses: 200:OK

[
    {
        'orderId': '499902955766523648', 
        'symbol': 'BHTUSDT', 
        'price': '0.01', 
        'origQty': '50', 
        'executedQty': '0', 
        'avgPrice': '0', 
        'status': 'NEW', 
        'type': 'LIMIT', 
        'side': 'BUY', 
        'time': '1574329076202'
        },...
]

8) Trades

URL: https://openapi.koinbay.com/sapi/v1/myTrades

Method: Get

Rate Limit:20 times/2s

Parameters

Query

Header

Success Responses: 200: OK

[
  {
    "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"
  },...
]

Account

Security Type: USER_DATAโ€‹

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

Account Information

URL: https://openapi.koinbay.com/sapi/v1/account

Method: Get

Rate Limit:20times/2s

Success Responses: 200:OK

{
    'balances': 
        [
            {
                'asset': 'BTC', 
                'free': '0', 
                'locked': '0'
                }, 
            {
                'asset': 'ETH', 
                'free': '0', 
                'locked': '0'
                },...
        ]
}

Balances

Last updated