Spot

Public

Security: None

Test Connectivity

GET https://openapi.abcoin.exchange/sapi/v1/ping

This endpoint checks connectivity to the host

Check Server Time

GET https://openapi.abcoin.exchange/sapi/v1/time

This endpoint checks connectivity to the server and retrieves server timestamp

200:OK Successfully retrieved server time
{
    "timezone": "GMT+08:00",
    "serverTime": 1595563624731
}

Pairs List

GET https://openapi.abcoin.exchange/sapi/v1/symbols

200:ok
{
    "symbols": [
        {
            "quantityPrecision": 3,
            "symbol": "sccadai",
            "pricePrecision": 6,
            "baseAsset": "SCCA",
            "quoteAsset": "DAI"
        },
        {
            "quantityPrecision": 8,
            "symbol": "btcusdt",
            "pricePrecision": 2,
            "baseAsset": "BTC",
            "quoteAsset": "USDT"
        },
        {
            "quantityPrecision": 3,
            "symbol": "bchusdt",
            "pricePrecision": 2,
            "baseAsset": "BCH",
            "quoteAsset": "USDT"
        },
        {
            "quantityPrecision": 2,
            "symbol": "etcusdt",
            "pricePrecision": 2,
            "baseAsset": "ETC",
            "quoteAsset": "USDT"
        },
        {
            "quantityPrecision": 2,
            "symbol": "ltcbtc",
            "pricePrecision": 6,
            "baseAsset": "LTC",
            "quoteAsset": "BTC"
        }
    ]
}

weight(IP/UID): 1

Response:

Market

Security Type: None

Depth

GET https://openapi.abcoin.exchange/sapi/v1/depth

market detpth data

Query Parameters

200 successfully retrieved market delpth data
{
  "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:

24hrs ticker

GET https://openapi.abcoin.exchange/sapi/v1/ticker

24 hour price change statistics.

Query Parameters

200:OK Successfully retrieved ticker data
{
    "high": "9279.0301",
    "vol": "1302",
    "last": "9200",
    "low": "9279.0301",
    "rose": "0",
    "time": 1595563624731
}

Response:

Recent Trades List

GET https://openapi.abcoin.exchange/sapi/v1/trades

Query Parameters

200:OK
{
    "list":[
        {
            "price":"3.00000100",
            "qty":"11.00000000",
            "time":1499865549590,
            "side":"BUY"
        }
    ]
}

weight(IP/UID): 5

Response:

Kline/candlestick data

GET https://openapi.abcoin.exchange/sapi/v1/klines

Query Parameters

200:OK
[
    {
        "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"
    }
]

weight(IP/UID): 1

Response:

Trade

Security Type: TRADE

Endpoints under Trade require an API Key and a signature

New Order

POST https://openapi.abcoin.exchange/sapi/v1/order

Rate Limit: 100times/2s

Query Parameters

Request Body

200:OK Successfully post new order
{
    'symbol': 'LXTUSDT', 
    'orderId': 150695552109032492, 
    'orderIdString': '150695552109032492',//Character String Type Order ID (Recommended)
    'clientOrderId': '157371322565051',
    'transactTime': '1573713225668', 
    'price': '0.005452', 
    'origQty': '110', 
    'executedQty': '0', 
    'status': 'NEW',
    'type': 'LIMIT', 
    'side': 'SELL'
}

weight(IP/UID): 5

Response:

Test New Order

POST https://openapi.abcoin.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

Request Body

weight(IP/UID): 1

Batch Orders

POST https://openapi.abcoin.exchange/sapi/v1/batchOrders

batch contains at most 10 orders

Headers

Request Body

200:OK
{
    "idsString": [ //Character String Type Order ID (Recommended)
        "165964665990709251",
        "165964665990709252",
        "165964665990709253"
    ],
    "ids": [
        165964665990709251,
        165964665990709252,
        165964665990709253
    ]
}

weight(IP/UID): 10

Resquest orders field:

Resquest

Query Order

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

Query Parameters

Headers

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'
}

weight(IP/UID): 1

Response:

Cancel Order

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

Headers

Request Body

weight(IP/UID): 5

Response:

Batch cancel orders

POST https://openapi.abcoin.exchange/sapi/v1/batchCancel

batch contains at most 10 orders

Headers

Request Body

weight(IP/UID): 10

Current Open Orders

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

Query Parameters

Headers

weight(IP/UID): 1

Response:

Trades

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

Query Parameters

Headers

weight(IP/UID): 1

Response:

Account

Security Type: USER_DATA

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

Account Information

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

Headers

weight(IP/UID): 1

Response:

Last updated