ChronosAPI
ChronosAPI implements historical data API for e.g. TradingView.
Data feed configuration data for TradingView.
GET /api/chronos/v1/derivative/config HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"supported_resolutions": [
"1",
"3",
"5",
"15",
"30",
"60",
"120",
"240",
"360",
"D",
"7D",
"30D",
"1W",
"2W"
],
"supports_group_request": false,
"supports_marks": false,
"supports_search": false,
"supports_timescale_marks": false
}
Request for history bars of derivativeMarket for TradingView.
Specify unique ticker to search.
inj/peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
As an alternative is possible to provide a marketId
0x28f3c9897e23750bf653889224f93390c467b83c86d736af79431958fff833d1
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
Unix timestamp (UTC) of the leftmost required bar, including from
458541723999459900
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
Number of bars (higher priority than from) starting with to. If countback is set, from should be ignored.
4884502607464587000
GET /api/chronos/v1/derivative/history HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
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
]
}
Gets derivative market summary for the latest interval (hour, day, month)
Market ID of the derivative market
0x0000000000000000000000000000000000000000000000000000000000000000
Pattern: ^0x[0-9a-fA-F]{64}$
Request the summary of index price feed
false
Specify the resolution
24h
Possible values: GET /api/chronos/v1/derivative/market_summary HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"change": 10.5555,
"high": 3667.24,
"low": 3661.55,
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"open": 3667,
"price": 3400,
"volume": 34.7336
}
Gets batch summary for all active markets, for the latest interval (hour, day, month)
Request the summary of index price feed
false
Specify the resolution
24h
Possible values: GET /api/chronos/v1/derivative/market_summary_all HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
[
{
"change": 10.5555,
"high": 3667.24,
"low": 3661.55,
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"open": 3667,
"price": 3400,
"volume": 34.7336
},
{
"change": 10.5555,
"high": 3667.24,
"low": 3661.55,
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"open": 3667,
"price": 3400,
"volume": 34.7336
},
{
"change": 10.5555,
"high": 3667.24,
"low": 3661.55,
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"open": 3667,
"price": 3400,
"volume": 34.7336
}
]
Get a list of all derivativeMarket instruments for TradingView.
ID of a symbol group. It is only required if you use groups of symbols to restrict access to instrument's data.
perpetuals
GET /api/chronos/v1/derivative/symbol_info HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"bar-fillgaps": [
true,
false,
true,
false
],
"bar-source": [
"trade",
"bid"
],
"bar-transform": [
"open",
"prevopen",
"openprev",
"none"
],
"base-currency": [
"INJ"
],
"currency": [
"USDT"
],
"description": [
"INJ/USDT"
],
"errmsg": "Something has failed",
"exchange-listed": [
"Binance"
],
"exchange-traded": [
"Binance"
],
"expiration": [
5741303146007796000,
255490819831565980,
294031049723845950,
1597109302457585700
],
"fractional": [
false
],
"has-daily": [
true,
false,
false
],
"has-intraday": [
false,
true
],
"has-no-volume": [
true,
true,
true,
true
],
"has-weekly-and-monthly": [
true,
true,
false
],
"intraday-multipliers": [
"1",
"3",
"5",
"15",
"30",
"60",
"240"
],
"is-cfd": [
false,
false
],
"minmov2": [
0
],
"minmovement": [
0.001
],
"name": [
"INJ/USDT"
],
"pointvalue": [
7292318683495494000,
6181047834697063000,
296814020494964540,
5809559911935259000
],
"pricescale": [
1000000000000000000
],
"root": [
"Est quo placeat.",
"Possimus et et et modi.",
"Dicta dolores quas quia.",
"Voluptas cupiditate magni qui quam et."
],
"root-description": [
"Fuga porro ipsam.",
"Dolorem id laborum."
],
"s": "error",
"session-regular": [
"24x7"
],
"symbol": [
"INJ/USDT"
],
"ticker": [
"Eos laborum error.",
"Rerum deleniti libero."
],
"timezone": [
"UTC"
],
"type": [
"crypto"
]
}
Get info about specific derivative market symbol by ticker.
Specify unique ticker to search.
inj/peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
GET /api/chronos/v1/derivative/symbols HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"currency_code": "USDT",
"data_status": "streaming",
"description": "INJ/USDT",
"errmsg": "Something has failed",
"exchange": "Injective DEX",
"expiration_date": 1593728803,
"expired": false,
"force_session_rebuild": false,
"fractional": false,
"has_daily": false,
"has_empty_bars": false,
"has_intraday": true,
"has_no_volume": true,
"has_seconds": false,
"has_weekly_and_monthly": true,
"industry": "bar",
"intraday_multipliers": [
"1",
"3",
"5",
"15",
"30",
"60",
"240"
],
"listed_exchange": "Injective DEX",
"minmov": 0.0001,
"minmov2": 0,
"name": "INJ/USDT",
"pricescale": 100000000,
"s": "error",
"seconds_multipliers": [
"1",
"3",
"5",
"15",
"30",
"60",
"240"
],
"sector": "foo",
"session": "24x7",
"supported_resolutions": [
"1",
"3",
"5",
"15",
"30",
"60",
"120",
"240",
"360",
"D",
"7D",
"30D",
"1W",
"2W"
],
"symbol": "INJ/USDT",
"ticker": "INJ/USDT",
"timezone": "Etc/UTC",
"type": "crypto",
"volume_precision": 1
}
returns exchange infos for all markets
GET /api/chronos/v1/exchangeInfo HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"symbols": [
{
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"symbol": "INJ/USDT PERP",
"type": "derivative",
"volume": "34.73"
},
{
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"symbol": "INJ/USDT PERP",
"type": "derivative",
"volume": "34.73"
},
{
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"symbol": "INJ/USDT PERP",
"type": "derivative",
"volume": "34.73"
}
]
}
Request sorted account list by balance on current relayer
Leaderboard time range. Default is 1d
1d
Example: 1d
Possible values: Number of leaderboard entries to retrieve. Default is 100
100
Example: 43
GET /api/chronos/v1/leaderboard HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"entries": [
{
"accountID": "a22762d2ec00e038d639c025c67889575251d9a0",
"perc": "5.76",
"volume": "11500.21"
},
{
"accountID": "a22762d2ec00e038d639c025c67889575251d9a0",
"perc": "5.76",
"volume": "11500.21"
},
{
"accountID": "a22762d2ec00e038d639c025c67889575251d9a0",
"perc": "5.76",
"volume": "11500.21"
},
{
"accountID": "a22762d2ec00e038d639c025c67889575251d9a0",
"perc": "5.76",
"volume": "11500.21"
}
],
"resolution": "1d",
"updatedAt": 1663335312
}
Request account rank in leaderboard
Leaderboard time range. Default is 1d
1d
Example: 1d
Possible values: Subaccount ID
0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002
Pattern: ^0x[0-9a-fA-F]{64}$
GET /api/chronos/v1/leaderboard/rank HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"perc": "5.76",
"rank": 11,
"updatedAt": 1663335312,
"volume": "11500.21"
}
Request for cached markets history bars. Max age is 1h.
Specify multiple marketIDs to search.
["0xfbc729e93b05b4c48916c1433c9f9c2ddb24605a73483303ea0f87a8886b52af","0x9b9980167ecc3645ff1a5517886652d94a0825e54a77d2057cbbe3ebee015963"]
Symbols resolution(minutes). Default is 1
1
Example: 15
Possible values: Number of bars returned, starting from the recent ones.
1440
Example: 485
GET /api/chronos/v1/market/history HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
[
{
"c": [
3662.25,
3663.13,
3664.01
],
"h": [
3667.24,
3664.47,
3664.3
],
"l": [
3661.55,
3661.9,
3662.43
],
"marketID": "0xfbc729e93b05b4c48916c1433c9f9c2ddb24605a73483303ea0f87a8886b52af",
"o": [
3667,
3662.25,
3664.29
],
"resolution": "15",
"t": [
1547942400,
1547942460,
1547942520
],
"v": [
34.7336,
2.4413,
11.7075
]
},
{
"c": [
3662.25,
3663.13,
3664.01
],
"h": [
3667.24,
3664.47,
3664.3
],
"l": [
3661.55,
3661.9,
3662.43
],
"marketID": "0xfbc729e93b05b4c48916c1433c9f9c2ddb24605a73483303ea0f87a8886b52af",
"o": [
3667,
3662.25,
3664.29
],
"resolution": "15",
"t": [
1547942400,
1547942460,
1547942520
],
"v": [
34.7336,
2.4413,
11.7075
]
},
{
"c": [
3662.25,
3663.13,
3664.01
],
"h": [
3667.24,
3664.47,
3664.3
],
"l": [
3661.55,
3661.9,
3662.43
],
"marketID": "0xfbc729e93b05b4c48916c1433c9f9c2ddb24605a73483303ea0f87a8886b52af",
"o": [
3667,
3662.25,
3664.29
],
"resolution": "15",
"t": [
1547942400,
1547942460,
1547942520
],
"v": [
34.7336,
2.4413,
11.7075
]
},
{
"c": [
3662.25,
3663.13,
3664.01
],
"h": [
3667.24,
3664.47,
3664.3
],
"l": [
3661.55,
3661.9,
3662.43
],
"marketID": "0xfbc729e93b05b4c48916c1433c9f9c2ddb24605a73483303ea0f87a8886b52af",
"o": [
3667,
3662.25,
3664.29
],
"resolution": "15",
"t": [
1547942400,
1547942460,
1547942520
],
"v": [
34.7336,
2.4413,
11.7075
]
}
]
Data feed configuration data for TradingView.
GET /api/chronos/v1/spot/config HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"supported_resolutions": [
"1",
"3",
"5",
"15",
"30",
"60",
"120",
"240",
"360",
"D",
"7D",
"30D",
"1W",
"2W"
],
"supports_group_request": false,
"supports_marks": false,
"supports_search": true,
"supports_timescale_marks": false
}
Request for history bars of spotMarket for TradingView.
Specify unique ticker to search
inj/peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
As an alternative is possible to provide a marketId
0x28f3c9897e23750bf653889224f93390c467b83c86d736af79431958fff833d1
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
Unix timestamp (UTC) of the leftmost required bar, including from
6433442096585061000
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.
8580201541992187000
Number of bars (higher priority than from) starting with to. If countback is set, from should be ignored.
8523355404613691000
GET /api/chronos/v1/spot/history HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
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
]
}
Gets spot market summary for the latest interval (hour, day, month)
Market ID of the spot market
0x0000000000000000000000000000000000000000000000000000000000000000
Pattern: ^0x[0-9a-fA-F]{64}$
Specify the resolution
24h
Possible values: GET /api/chronos/v1/spot/market_summary HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"change": 10.5555,
"high": 3667.24,
"low": 3661.55,
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"open": 3667,
"price": 3400,
"volume": 34.7336
}
Gets batch summary for all active markets, for the latest interval (hour, day, month)
Specify the resolution
24h
Possible values: GET /api/chronos/v1/spot/market_summary_all HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
[
{
"change": 10.5555,
"high": 3667.24,
"low": 3661.55,
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"open": 3667,
"price": 3400,
"volume": 34.7336
},
{
"change": 10.5555,
"high": 3667.24,
"low": 3661.55,
"marketId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"open": 3667,
"price": 3400,
"volume": 34.7336
}
]
Get a list of all spotMarket instruments for TradingView.
ID of a symbol group. It is only required if you use groups of symbols to restrict access to instrument's data.
perpetuals
GET /api/chronos/v1/spot/symbol_info HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"bar-fillgaps": [
false,
true,
false,
true
],
"bar-source": [
"trade",
"bid",
"trade",
"ask"
],
"bar-transform": [
"open",
"none",
"open",
"prevopen"
],
"base-currency": [
"INJ"
],
"currency": [
"USDT"
],
"description": [
"INJ/USDT"
],
"errmsg": "Something has failed",
"exchange-listed": [
"Binance"
],
"exchange-traded": [
"Binance"
],
"expiration": [
3693552610259682300,
4518036611179158000,
4260630589252641300,
7985711514151023000
],
"fractional": [
false
],
"has-daily": [
false,
false,
false,
true
],
"has-intraday": [
true,
true,
true,
false
],
"has-no-volume": [
true,
true,
false
],
"has-weekly-and-monthly": [
false,
false,
false,
true
],
"intraday-multipliers": [
"1",
"3",
"5",
"15",
"30",
"60",
"240"
],
"is-cfd": [
true,
true
],
"minmov2": [
0
],
"minmovement": [
0.001
],
"name": [
"INJ/USDT"
],
"pointvalue": [
8519047768981248000,
6708795433685428000,
5182228472711879000,
4210454195999176700
],
"pricescale": [
1000000000000000000
],
"root": [
"Necessitatibus rerum unde in expedita dolore illo.",
"Molestias eius iste atque at non dolores."
],
"root-description": [
"Et consequatur sint vero quos atque minus.",
"Aspernatur eveniet mollitia eum qui.",
"Sint possimus deleniti cupiditate ipsa aut quasi."
],
"s": "error",
"session-regular": [
"24x7"
],
"symbol": [
"INJ/USDT"
],
"ticker": [
"Nesciunt ut.",
"Quae cupiditate nisi exercitationem cupiditate id laborum.",
"Ut nihil.",
"Tempore voluptatum."
],
"timezone": [
"UTC"
],
"type": [
"crypto"
]
}
Get info about specific spot market symbol by ticker.
Specify unique ticker to search.
inj/peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
GET /api/chronos/v1/spot/symbols HTTP/1.1
Host: inj-indexer.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
"currency_code": "USDT",
"data_status": "streaming",
"description": "INJ/USDT",
"errmsg": "Something has failed",
"exchange": "Injective DEX",
"expiration_date": 1593728803,
"expired": false,
"force_session_rebuild": false,
"fractional": false,
"has_daily": true,
"has_empty_bars": false,
"has_intraday": true,
"has_no_volume": false,
"has_seconds": true,
"has_weekly_and_monthly": false,
"industry": "bar",
"intraday_multipliers": [
"1",
"3",
"5",
"15",
"30",
"60",
"240"
],
"listed_exchange": "Injective DEX",
"minmov": 0.0001,
"minmov2": 0,
"name": "INJ/USDT",
"pricescale": 100000000,
"s": "error",
"seconds_multipliers": [
"1",
"3",
"5",
"15",
"30",
"60",
"240"
],
"sector": "foo",
"session": "24x7",
"supported_resolutions": [
"1",
"3",
"5",
"15",
"30",
"60",
"120",
"240",
"360",
"D",
"7D",
"30D",
"1W",
"2W"
],
"symbol": "INJ/USDT",
"ticker": "INJ/USDT",
"timezone": "Etc/UTC",
"type": "crypto",
"volume_precision": 1
}