ChronosAPI

ChronosAPI implements historical data API for e.g. TradingView.

derivativeMarketConfig ChronosAPI

get

Data feed configuration data for TradingView.

Authorizations
Responses
200
OK response.
application/json
get
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
}

derivativeMarketHistory ChronosAPI

get

Request for history bars of derivativeMarket for TradingView.

Authorizations
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
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
  ]
}

derivativeMarketSummary ChronosAPI

get

Gets derivative market summary for the latest interval (hour, day, month)

Authorizations
Query parameters
marketIdstring · min: 66 · max: 66Required

Market ID of the derivative market

Example: 0x0000000000000000000000000000000000000000000000000000000000000000Pattern: ^0x[0-9a-fA-F]{64}$
indexPricebooleanOptional

Request the summary of index price feed

Example: false
resolutionstring · enumRequired

Specify the resolution

Example: 24hPossible values:
Responses
200
OK response.
application/json
get
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
}

allDerivativeMarketSummary ChronosAPI

get

Gets batch summary for all active markets, for the latest interval (hour, day, month)

Authorizations
Query parameters
indexPricebooleanOptional

Request the summary of index price feed

Example: false
resolutionstring · enumRequired

Specify the resolution

Example: 24hPossible values:
Responses
200
OK response.
application/json
get
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
  }
]

derivativeMarketSymbolInfo ChronosAPI

get

Get a list of all derivativeMarket instruments for TradingView.

Authorizations
Query parameters
groupstringOptional

ID of a symbol group. It is only required if you use groups of symbols to restrict access to instrument's data.

Example: perpetuals
Responses
200
OK response.
application/json
get
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"
  ]
}

derivativeMarketSymbolSearch ChronosAPI

get

Get info about specific derivative market symbol by ticker.

Authorizations
Query parameters
symbolstringRequired

Specify unique ticker to search.

Example: inj/peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
Responses
200
OK response.
application/json
get
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
}

exchangeInfo ChronosAPI

get

returns exchange infos for all markets

Authorizations
Responses
200
OK response.
application/json
get
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"
    }
  ]
}

Leaderboard ChronosAPI

get

Request sorted account list by balance on current relayer

Authorizations
Query parameters
resolutionstring · enumOptional

Leaderboard time range. Default is 1d

Default: 1dExample: 1dPossible values:
limitinteger · min: 1 · max: 100Optional

Number of leaderboard entries to retrieve. Default is 100

Default: 100Example: 43
Responses
200
OK response.
application/json
get
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
}

LeaderboardRank ChronosAPI

get

Request account rank in leaderboard

Authorizations
Query parameters
resolutionstring · enumOptional

Leaderboard time range. Default is 1d

Default: 1dExample: 1dPossible values:
subaccountIDstring · min: 66 · max: 66Required

Subaccount ID

Example: 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002Pattern: ^0x[0-9a-fA-F]{64}$
Responses
200
OK response.
application/json
get
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"
}

MarketSnapshot ChronosAPI

get

Request for cached markets history bars. Max age is 1h.

Authorizations
Query parameters
marketIDsstring[]Required

Specify multiple marketIDs to search.

Example: ["0xfbc729e93b05b4c48916c1433c9f9c2ddb24605a73483303ea0f87a8886b52af","0x9b9980167ecc3645ff1a5517886652d94a0825e54a77d2057cbbe3ebee015963"]
resolutionstring · enumOptional

Symbols resolution(minutes). Default is 1

Default: 1Example: 15Possible values:
countbackinteger · min: 1 · max: 1440Optional

Number of bars returned, starting from the recent ones.

Default: 1440Example: 485
Responses
200
OK response.
application/json
get
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
    ]
  }
]

spotMarketConfig ChronosAPI

get

Data feed configuration data for TradingView.

Authorizations
Responses
200
OK response.
application/json
get
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
}

spotMarketHistory ChronosAPI

get

Request for history bars of spotMarket for TradingView.

Authorizations
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: 6433442096585061000
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: 8580201541992187000
countbackinteger · int64Optional

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

Example: 8523355404613691000
Responses
200
OK response.
application/json
get
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
  ]
}

spotMarketSummary ChronosAPI

get

Gets spot market summary for the latest interval (hour, day, month)

Authorizations
Query parameters
marketIdstring · min: 66 · max: 66Required

Market ID of the spot market

Example: 0x0000000000000000000000000000000000000000000000000000000000000000Pattern: ^0x[0-9a-fA-F]{64}$
resolutionstring · enumRequired

Specify the resolution

Example: 24hPossible values:
Responses
200
OK response.
application/json
get
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
}

allSpotMarketSummary ChronosAPI

get

Gets batch summary for all active markets, for the latest interval (hour, day, month)

Authorizations
Query parameters
resolutionstring · enumRequired

Specify the resolution

Example: 24hPossible values:
Responses
200
OK response.
application/json
get
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
  }
]

spotMarketSymbolInfo ChronosAPI

get

Get a list of all spotMarket instruments for TradingView.

Authorizations
Query parameters
groupstringOptional

ID of a symbol group. It is only required if you use groups of symbols to restrict access to instrument's data.

Example: perpetuals
Responses
200
OK response.
application/json
get
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"
  ]
}

spotMarketSymbolSearch ChronosAPI

get

Get info about specific spot market symbol by ticker.

Authorizations
Query parameters
symbolstringRequired

Specify unique ticker to search.

Example: inj/peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
Responses
200
OK response.
application/json
get
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
}