Skip to main content
GET
/
v1
/
kline
Get kline
curl --request GET \
  --url https://api.orderly.org/v1/kline \
  --header 'orderly-account-id: <orderly-account-id>' \
  --header 'orderly-key: <orderly-key>' \
  --header 'orderly-signature: <orderly-signature>' \
  --header 'orderly-timestamp: <orderly-timestamp>'
{
  "success": true,
  "data": {
    "rows": [
      {
        "open": 66166.23,
        "close": 66124.56,
        "low": 66038.06,
        "high": 66176.97,
        "volume": 23.45528526,
        "amount": 1550436.21725288,
        "symbol": "PERP_BTC_USDC",
        "type": "1m",
        "start_timestamp": 1636388220000,
        "end_timestamp": 1636388280000
      }
    ]
  },
  "timestamp": 1702989203989
}

Headers

orderly-timestamp
string
required

Timestamp of the signed request in milliseconds.

orderly-account-id
string
required

Account ID of the authenticated account.

orderly-key
string
required

Public orderly key used to sign the request.

orderly-signature
string
required

Signature of the request payload generated with the orderly key.

Query Parameters

symbol
string
required
type
string
required

1m/5m/15m/30m/1h/4h/12h/1d/1w/1mon/1y

limit
number

Numbers of klines. Maximum of 1000 klines.

Response

200 - application/json

OK

success
boolean
required

Indicates whether the request was successful.

Example:

true

data
object
required
timestamp
integer

Server timestamp in milliseconds.

Example:

1702989203989