K-line/Candlestick data

Get candle related info for particular markets

Retrieve K-line/Candlestick data for the specified by making use of this endpoint. You can define the limit, period, start time and end time for the same.

Endpoint

GET /sapi/v1/market/kline/

Query Params

FieldTypeMandatoryDescription

market

STRING

YES

limit

INTEGER

NO

default 30

period

INTEGER

NO

default 1, allowed values [1, 5, 15, 30, 60, 120, 240, 360, 720, 1440, 4320, 10080]

start_time

INTEGER

NO

end_time

INTEGER

NO

Example:

{baseurl}/sapi/v1/market/kline/?market=ethusdc&limit=100&period=240&start_time=1639468412end_time=1660636472

Response

{
  "status": "success",
  "message": "Retrieval Successful",
  "payload": [
    [1660634520, 1697, 1697, 1697, 1697, 0],
    [1660634520, 1697, 1697, 1697, 1697, 0],
    [1660634520, 1697, 1697, 1697, 1697, 0]
  ]
}

Note: Kline payload item as array of numbers

Example: [1660634520, 0.0839, 0.0921, 0.0781, 0.0845, 0.5895]

  1. Timestamp.

  2. Open price.

  3. Max price.

  4. Min price.

  5. Last price.

  6. Period volume

Last updated