Default

Stock Candles

Get candlestick data (OHLCV) for stocks.

Daily data will be adjusted for Splits. Intraday data will remain unadjusted. Only 1 month of intraday will be returned at a time. If you need more historical intraday data, please use the from and to params iteratively to request more data.

get/stock/candle

Query parameters

symbolstring required

Symbol.

resolutionstring required

Supported resolution includes <code>1, 5, 15, 30, 60, D, W, M </code>.Some timeframes might not be available depending on the exchange.

frominteger required

UNIX timestamp. Interval initial value.

tointeger required

UNIX timestamp. Interval end value.

Response

successful operation

onumber[]

List of open prices for returned candles.

hnumber[]

List of high prices for returned candles.

lnumber[]

List of low prices for returned candles.

cnumber[]

List of close prices for returned candles.

vnumber[]

List of volume data for returned candles.

tinteger[]

List of timestamp for returned candles.

sstring

Status of the response. This field can either be ok or no_data.

Example response

{
  "c": [
    5.962134,
    5.962134
  ],
  "s": "s",
  "t": [
    2,
    2
  ],
  "v": [
    5.637377,
    5.637377
  ],
  "h": [
    6.0274563,
    6.0274563
  ],
  "l": [
    1.4658129,
    1.4658129
  ],
  "o": [
    0.8008282,
    0.8008282
  ]
}

Changes

Changed in 8 of the 35 revisions of this API.1527

    • deleted the query request parameter adjusted

      request-parameter-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api tag Default added

      api-tag-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    • deleted the query request parameter format

      request-parameter-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the query request parameter from became required

      request-parameter-became-required

    • the query request parameter to became required

      request-parameter-became-required

    • the c response's property type/format changed from number/float to array/ for status 200

      response-property-type-changed

    • the h response's property type/format changed from number/float to array/ for status 200

      response-property-type-changed

    • the l response's property type/format changed from number/float to array/ for status 200

      response-property-type-changed

    • the o response's property type/format changed from number/float to array/ for status 200

      response-property-type-changed

    • the t response's property type/format changed from integer/int64 to array/ for status 200

      response-property-type-changed

    • the v response's property type/format changed from number/float to array/ for status 200

      response-property-type-changed

  • c5b8e420b78c65See the full diff
    • the c response's property type/format changed from array/ to number/float for status 200

      response-property-type-changed

    • the h response's property type/format changed from array/ to number/float for status 200

      response-property-type-changed

    • the l response's property type/format changed from array/ to number/float for status 200

      response-property-type-changed

    • the o response's property type/format changed from array/ to number/float for status 200

      response-property-type-changed

    • the t response's property type/format changed from array/ to integer/int64 for status 200

      response-property-type-changed

    • the v response's property type/format changed from array/ to number/float for status 200

      response-property-type-changed

    • api tag Default removed

      api-tag-removed

    • added the new optional query request parameter adjusted

      new-optional-request-parameter

    • added the new optional query request parameter format

      new-optional-request-parameter

    • the query request parameter from became optional

      request-parameter-became-optional

    • the query request parameter to became optional

      request-parameter-became-optional

    This revision also has 146 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog