History

derivativeMarketHistory ChronosAPI

get

Request for history bars of derivativeMarket for TradingView.

Query parameters
symbolstringOptional

Specify unique ticker to search.

Example: inj/peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
marketIdstringOptional

As an alternative is possible to provide a marketId

Example: 0x28f3c9897e23750bf653889224f93390c467b83c86d736af79431958fff833d1
resolutionstringRequired

Symbol resolution. Possible resolutions are daily (D or 1D, 2D ... ), weekly (1W, 2W ...), monthly (1M, 2M...) and an intra-day resolution – minutes(1, 2 ...).

Example: 1D
frominteger · int64Optional

Unix timestamp (UTC) of the leftmost required bar, including from

Example: 458541723999459900
tointeger · int64Required

Unix timestamp (UTC) of the rightmost required bar, including to. It can be in the future. In this case, the rightmost required bar is the latest available bar.

Example: 7286760554923144000
countbackinteger · int64Optional

Number of bars (higher priority than from) starting with to. If countback is set, from should be ignored.

Example: 4884502607464587000
Responses
200
OK response.
application/json
get
GET /api/chronos/v1/derivative/history HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
  "c": [
    3662.25,
    3663.13,
    3664.01
  ],
  "errmsg": "Something has failed",
  "h": [
    3667.24,
    3664.47,
    3664.3
  ],
  "l": [
    3661.55,
    3661.9,
    3662.43
  ],
  "nb": 1484871000,
  "o": [
    3667,
    3662.25,
    3664.29
  ],
  "s": "error",
  "t": [
    1547942400,
    1547942460,
    1547942520
  ],
  "v": [
    34.7336,
    2.4413,
    11.7075
  ]
}