You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/resources/schema.graphql
+71-8Lines changed: 71 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -459,6 +459,27 @@ type Query {
459
459
inputs: [GetPriceInput]
460
460
): [Price]
461
461
"""Returns bar chart data to track price changes over time."""
462
+
getTokenBars(
463
+
"""The ID of the pair or token (`pairAddress:networkId` or `tokenAddress:networkId`). If a token contract address is provided, the token's top pair is used. For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1` returns WETH's top pair on Ethereum."""
464
+
symbol: String!
465
+
"""The unix timestamp for the start of the requested range."""
466
+
from: Int!
467
+
"""The unix timestamp for the end of the requested range."""
468
+
to: Int!
469
+
"""The time frame for each candle. Available options are `1S`, `5S`, `15S`, `30S`, `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`. Resolutions lower than 1 minute are only updated for the last 24 hours due to the volume of data produced."""
470
+
resolution: String!
471
+
"""The currency to use for the response. Can be `USD` or `TOKEN`. Default is `USD`. Use `currencyCode: TOKEN` for native token pricing."""
472
+
currencyCode: QuoteCurrency
473
+
"""Whether to remove leading null values from the response. Default is `false`. To fetch a token's entire history, set resolution to `1D`, `from` value to `0` and `removeLeadingNullValues` to `true`."""
474
+
removeLeadingNullValues: Boolean
475
+
"""Whether to remove empty bars from the response. This is useful for eliminating gaps in low-activity tokens. Default is `false`."""
476
+
removeEmptyBars: Boolean
477
+
"""The token of interest within the token's top pair. Can be `token0` or `token1`. If omitted, the base token is inferred automatically. You can invert the pair by quoting the other token."""
478
+
statsType: TokenPairStatisticsType
479
+
"""Guarantees number of bars returned is at most this number. Use `countback: 1500` with `from: 0` for maximum results."""
480
+
countback: Int
481
+
): TokenBarsResponse
482
+
"""Returns bar chart data to track price changes over time."""
462
483
getBars(
463
484
"""The ID of the pair or token (`pairAddress:networkId` or `tokenAddress:networkId`). If a token contract address is provided, the token's top pair is used. For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1` returns WETH's top pair on Ethereum."""
0 commit comments