History
Request for history bars of derivativeMarket for TradingView.
Query parameters
symbolstringOptionalExample:
Specify unique ticker to search.
inj/peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
marketIdstringOptionalExample:
As an alternative is possible to provide a marketId
0x28f3c9897e23750bf653889224f93390c467b83c86d736af79431958fff833d1
resolutionstringRequiredExample:
Symbol resolution. Possible resolutions are daily (D or 1D, 2D ... ), weekly (1W, 2W ...), monthly (1M, 2M...) and an intra-day resolution – minutes(1, 2 ...).
1D
frominteger · int64OptionalExample:
Unix timestamp (UTC) of the leftmost required bar, including from
458541723999459900
tointeger · int64RequiredExample:
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.
7286760554923144000
countbackinteger · int64OptionalExample:
Number of bars (higher priority than from) starting with to. If countback is set, from should be ignored.
4884502607464587000
Responses
200
OK response.
application/json
400
Bad Request response.
application/vnd.goa.error
404
Not Found response.
application/vnd.goa.error
500
Internal Server Error response.
application/vnd.goa.error
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
]
}