Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Spot REST API

Base URL: https://openapi.koinbay.com · 16 endpoints.

Ping / Test connectivity

GET  /sapi/v1/ping    Public

Response 200

{}

Server time

GET  /sapi/v1/time    Public

Response 200

{
  "serverTime": 1780475299032,
  "timezone": "GMT+08:00"
}

Symbols

GET  /sapi/v1/symbols    Public

Response 200

Depth (order book)

Query parameters

Name
Req
Type
Description

symbol

yes

string

e.g. BTCUSDT

limit

yes

integer

default 100; max 100 (required in spot, optional in futures)

Response 200

24hr ticker

Query parameters

Name
Req
Type
Description

symbol

yes

string

e.g. BTCUSDT

Response 200

Recent trades

Query parameters

Name
Type
Description

symbol

yes

string

e.g. BTCUSDT

limit

yes

string

default 100; max 1000

Response 200

Klines / candlesticks

Notes:

  • interval='1h' returns [] for spot; use '60min'. Accepted set: 1min,5min,15min,30min,60min,1day,1week,1month.

Query parameters

Name
Req
Type
Description

symbol

yes

string

e.g. BTCUSDT

interval

yes

string

1min,5min,15min,30min,60min,1day,1week,1month

limit

no

integer

default 100; max 300

Response 200

Create order

Request body (application/json)

Field
Req
Type
Description

symbol

yes

string

case-insensitive

volume

yes

number

side

yes

string

BUY / SELL

type

yes

string

LIMIT / MARKET

price

no

number

required for LIMIT

newClientOrderId

no

string

echo-only client id

Response 200

Query order

Notes:

  • With no/invalid orderId it returns the {code,msg,data:null} envelope instead.

Query parameters

Name
Req
Type
Description

orderId

yes

string

symbol

yes

string

lowercase per doc

Response 200

Test new order

Request body (application/json)

Field
Req
Type
Description

symbol

yes

string

volume

yes

number

side

yes

string

BUY / SELL

type

yes

string

LIMIT / MARKET

price

no

number

Response 200

Batch orders

Request body (application/json)

Field
Req
Type
Description

symbol

yes

string

orders

yes

array

max 10 elements

Response 200

Cancel order

Notes:

  • Returns {symbol, orderId(scalar), clientOrderId, orderIdString, status}. status='PENDING_CANCEL' (cancel is ASYNC, not immediate).

Request body (application/json)

Field
Req
Type
Description

orderId

yes

string

symbol

yes

string

lowercase per doc

Response 200

Batch cancel

Request body (application/json)

Field
Req
Type
Description

symbol

yes

string

orderIds

yes

array

numeric ids, e.g. [123,456]

Response 200

Open orders

Query parameters

Name
Req
Type
Description

symbol

yes

string

lowercase per doc

limit

yes

integer

max 1000

Response 200

My trades

Query parameters

Name
Req
Type
Description

symbol

yes

string

limit

yes

string

default 100; max 1000

Response 200

Account

Response 200

Last updated

Was this helpful?