@codex-data/sdk 2.4.3 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk/generated/graphql.d.ts +19 -8
- package/package.json +1 -1
- package/schema.graphql +20 -8
|
@@ -289,6 +289,15 @@ export type Balance = {
|
|
|
289
289
|
/** The ID of the wallet (`walletAddress:networkId`). */
|
|
290
290
|
walletId: Scalars['String']['output'];
|
|
291
291
|
};
|
|
292
|
+
/** Filters for `balances`. Bounds can't be negative, and a range can't be empty. */
|
|
293
|
+
export type BalanceFilters = {
|
|
294
|
+
/** Keeps holdings whose `balanceUsd` is in range. Requires `sortBy: USD_VALUE` unless `tokens` is passed. A holding with no `balanceUsd` never matches. */
|
|
295
|
+
balanceUsd?: InputMaybe<NumberFilter>;
|
|
296
|
+
/** Keeps holdings that have a `tokenPriceUsd` when true, or that have none when false. */
|
|
297
|
+
hasPrice?: InputMaybe<Scalars['Boolean']['input']>;
|
|
298
|
+
/** Keeps holdings whose `liquidityUsd` is in range. A holding with no `liquidityUsd` never matches, except native balances, which always match. */
|
|
299
|
+
liquidityUsd?: InputMaybe<NumberFilter>;
|
|
300
|
+
};
|
|
292
301
|
export type BalancesInput = {
|
|
293
302
|
/** A cursor for use in pagination. */
|
|
294
303
|
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -297,6 +306,8 @@ export type BalancesInput = {
|
|
|
297
306
|
* @deprecated Use tokens list instead
|
|
298
307
|
*/
|
|
299
308
|
filterToken?: InputMaybe<Scalars['String']['input']>;
|
|
309
|
+
/** Keeps only holdings that match every filter set. A filtered page reads at most 600 of the wallet's holdings, so it can return fewer than `limit` results, or none, while `cursor` is still set; keep paging until `cursor` is null. Reuse a cursor only with the same `filters`. With `tokens`, name at most 200 token IDs across `networks`. */
|
|
310
|
+
filters?: InputMaybe<BalanceFilters>;
|
|
300
311
|
/** Whether to include native network balances in the response (ID will be native:<networkId>). Requires a list of `networks`. Does not apply when using `tokens`. On networks where the native asset is also readable through an ERC-20 alias contract, the response counts that holding once: the native view is returned and the alias projection row is suppressed on every page; request the alias contract explicitly in `tokens`, or set `includeNative: false`, for the contract view. */
|
|
301
312
|
includeNative?: InputMaybe<Scalars['Boolean']['input']>;
|
|
302
313
|
/** The maximum number of holdings to return. Does not apply when using `tokens`. */
|
|
@@ -3770,7 +3781,7 @@ export type LiquidityMetadataByToken = {
|
|
|
3770
3781
|
networkId: Scalars['Int']['output'];
|
|
3771
3782
|
/** The address of the token. */
|
|
3772
3783
|
tokenAddress: Scalars['String']['output'];
|
|
3773
|
-
/** The total liquidity in USD. */
|
|
3784
|
+
/** The token's total liquidity in USD. On networks where the real-money total is enabled, this is `totalLiquidityUsd` from `filterTokens` (the combined liquidity of its 15 deepest pools) once the token has one; elsewhere, or until then, it is the value of the token's own side across the pairs below at its current price. `lockedLiquidityPercentage` is always measured across the pairs below, not against this figure. */
|
|
3774
3785
|
totalLiquidityUsd: Scalars['String']['output'];
|
|
3775
3786
|
/** The total amount of tokens in pairs. */
|
|
3776
3787
|
totalTokenLiquidity: Scalars['String']['output'];
|
|
@@ -11467,7 +11478,7 @@ export type Price = {
|
|
|
11467
11478
|
* @deprecated Pricing no longer based on specific pools
|
|
11468
11479
|
*/
|
|
11469
11480
|
confidence?: Maybe<Scalars['Float']['output']>;
|
|
11470
|
-
/** The token's liquidity in USD. On networks where the real-money total is enabled, this is `totalLiquidityUsd` from `filterTokens`: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days, where each pool counts only the real money the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once. Elsewhere, or until that total is computed for the token, it is the token's route-backed liquidity, summed across its pairs with valid routing liquidity. Null when this stat has not been computed for the token yet.
|
|
11481
|
+
/** The token's liquidity in USD. On networks where the real-money total is enabled, this is `totalLiquidityUsd` from `filterTokens`: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days, where each pool counts only the real money the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once. Elsewhere, or until that total is computed for the token, it is the token's route-backed liquidity, summed across its pairs with valid routing liquidity. Null when this stat has not been computed for the token yet. On subscriptions it is the `totalLiquidityUsd` value only, refreshed at most every 30 seconds, and null on networks where the real-money total is not enabled. */
|
|
11471
11482
|
liquidityUsd?: Maybe<Scalars['String']['output']>;
|
|
11472
11483
|
/** The network ID the token is deployed on. */
|
|
11473
11484
|
networkId: Scalars['Int']['output'];
|
|
@@ -14367,11 +14378,11 @@ export type TokenFilterResult = {
|
|
|
14367
14378
|
lastTransaction?: Maybe<Scalars['Int']['output']>;
|
|
14368
14379
|
/** Metadata for the token's most liquid pair */
|
|
14369
14380
|
liquidPair?: Maybe<Pair>;
|
|
14370
|
-
/** The liquidity of the token's most liquid pair */
|
|
14381
|
+
/** The liquidity of the token's most liquid pair. On networks where the real-money total is enabled, this is the same value as `totalLiquidityUsd` (the combined liquidity of the token's 15 deepest pools) once the token has one. The value is recomputed when the token trades. */
|
|
14371
14382
|
liquidPairLiquidity?: Maybe<Scalars['String']['output']>;
|
|
14372
14383
|
/** The liquid pairs price in USD. */
|
|
14373
14384
|
liquidPairPriceUSD?: Maybe<Scalars['String']['output']>;
|
|
14374
|
-
/**
|
|
14385
|
+
/** The token's liquidity in USD. On networks where the real-money total is enabled, this is the same value as `totalLiquidityUsd` (the combined liquidity of its 15 deepest pools) once the token has one. On other networks it is the liquidity of the token's top pair, or with `useAggregatedStats` the token's aggregated liquidity. The value is recomputed when the token trades, so a token with no trade since this definition last changed keeps its previous value. */
|
|
14375
14386
|
liquidity?: Maybe<Scalars['String']['output']>;
|
|
14376
14387
|
/** The lowest price in USD in the past hour. */
|
|
14377
14388
|
low1?: Maybe<Scalars['String']['output']>;
|
|
@@ -14459,7 +14470,7 @@ export type TokenFilterResult = {
|
|
|
14459
14470
|
totalFees12?: Maybe<Scalars['String']['output']>;
|
|
14460
14471
|
/** The total trading fees (pool + gas + tips) in USD in the past 24 hours. */
|
|
14461
14472
|
totalFees24?: Maybe<Scalars['String']['output']>;
|
|
14462
|
-
/** The token's total liquidity in USD: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days. On networks where the real-money total is enabled, each pool counts only the real money behind it: what the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once.
|
|
14473
|
+
/** The token's total liquidity in USD: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days. On networks where the real-money total is enabled, each pool counts only the real money behind it: what the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once. On networks where the real-money total is enabled, `liquidity` is the same value; elsewhere `liquidity` covers the top pair only (or the aggregated liquidity with `useAggregatedStats`). The value is recomputed when the token trades, so a token with no trade since this definition last changed keeps its previous value. Null when this stat has not been computed for the token yet. */
|
|
14463
14474
|
totalLiquidityUsd?: Maybe<Scalars['String']['output']>;
|
|
14464
14475
|
/** A heuristic based on various factors used to rank tokens based on how trending they are. */
|
|
14465
14476
|
trendingScore?: Maybe<Scalars['Float']['output']>;
|
|
@@ -14654,7 +14665,7 @@ export type TokenFilters = {
|
|
|
14654
14665
|
launchpadName?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
14655
14666
|
/** A list of launchpad protocols. */
|
|
14656
14667
|
launchpadProtocol?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
14657
|
-
/** The
|
|
14668
|
+
/** The token's liquidity in USD. On networks where the real-money total is enabled, this filters on the same value as `totalLiquidityUsd` (the combined liquidity of its 15 deepest pools) once the token has one. On other networks it filters on the liquidity of the token's top pair, or with `useAggregatedStats` the token's aggregated liquidity. */
|
|
14658
14669
|
liquidity?: InputMaybe<NumberFilter>;
|
|
14659
14670
|
/** The lowest price in USD in the past hour. */
|
|
14660
14671
|
low1?: InputMaybe<NumberFilter>;
|
|
@@ -14740,7 +14751,7 @@ export type TokenFilters = {
|
|
|
14740
14751
|
totalFees12?: InputMaybe<NumberFilter>;
|
|
14741
14752
|
/** Filter by total fees in the past 24 hours. */
|
|
14742
14753
|
totalFees24?: InputMaybe<NumberFilter>;
|
|
14743
|
-
/** The token's total liquidity in USD: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days. On networks where the real-money total is enabled, each pool counts only the real money behind it: what the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once.
|
|
14754
|
+
/** The token's total liquidity in USD: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days. On networks where the real-money total is enabled, each pool counts only the real money behind it: what the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once. On networks where the real-money total is enabled, `liquidity` is the same value; elsewhere `liquidity` covers the top pair only (or the aggregated liquidity with `useAggregatedStats`). */
|
|
14744
14755
|
totalLiquidityUsd?: InputMaybe<NumberFilter>;
|
|
14745
14756
|
/** Whether to ignore pairs/tokens not relevant to trending. This is done checking against a few factors and ignoring uninteresting tokens like stables / network tokens. If you want all tokens regardless of these checks, then don't include this field. (default) If you want only tokens that fail the trending ignore checks, then set it to `true`. (i.e. stablecoins, rugs, network base tokens) If you want only tokens that pass the trending ignore checks, then set it to `false`. */
|
|
14746
14757
|
trendingIgnored?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -15633,7 +15644,7 @@ export type TokenWithMetadata = {
|
|
|
15633
15644
|
isScam?: Maybe<Scalars['Boolean']['output']>;
|
|
15634
15645
|
/** The unix timestamp for the token's last transaction. */
|
|
15635
15646
|
lastTransaction?: Maybe<Scalars['Int']['output']>;
|
|
15636
|
-
/** The total liquidity of the token's top pair
|
|
15647
|
+
/** The token's liquidity in USD. On networks where the real-money total is enabled, this is the same value as `totalLiquidityUsd` from `filterTokens` (the combined liquidity of the token's 15 deepest pools) once the token has one; elsewhere it is the total liquidity of the token's top pair. The value is recomputed when the token trades. */
|
|
15637
15648
|
liquidity: Scalars['String']['output'];
|
|
15638
15649
|
/** The fully diluted market cap. */
|
|
15639
15650
|
marketCap?: Maybe<Scalars['String']['output']>;
|
package/package.json
CHANGED
package/schema.graphql
CHANGED
|
@@ -9193,7 +9193,7 @@ type Price {
|
|
|
9193
9193
|
priceUsd: Float!
|
|
9194
9194
|
"""The pool that emitted the swap generating this price"""
|
|
9195
9195
|
blockNumber: Int
|
|
9196
|
-
"""The token's liquidity in USD. On networks where the real-money total is enabled, this is `totalLiquidityUsd` from `filterTokens`: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days, where each pool counts only the real money the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once. Elsewhere, or until that total is computed for the token, it is the token's route-backed liquidity, summed across its pairs with valid routing liquidity. Null when this stat has not been computed for the token yet.
|
|
9196
|
+
"""The token's liquidity in USD. On networks where the real-money total is enabled, this is `totalLiquidityUsd` from `filterTokens`: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days, where each pool counts only the real money the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once. Elsewhere, or until that total is computed for the token, it is the token's route-backed liquidity, summed across its pairs with valid routing liquidity. Null when this stat has not been computed for the token yet. On subscriptions it is the `totalLiquidityUsd` value only, refreshed at most every 30 seconds, and null on networks where the real-money total is not enabled."""
|
|
9197
9197
|
liquidityUsd: String
|
|
9198
9198
|
"""The percent price change in the past 24 hours. Decimal format. Not available via subscription."""
|
|
9199
9199
|
priceChange24: Float
|
|
@@ -9340,9 +9340,9 @@ type TokenFilterResult {
|
|
|
9340
9340
|
high24: String
|
|
9341
9341
|
"""The highest price in USD in the past 4 hours."""
|
|
9342
9342
|
high4: String
|
|
9343
|
-
"""
|
|
9343
|
+
"""The token's liquidity in USD. On networks where the real-money total is enabled, this is the same value as `totalLiquidityUsd` (the combined liquidity of its 15 deepest pools) once the token has one. On other networks it is the liquidity of the token's top pair, or with `useAggregatedStats` the token's aggregated liquidity. The value is recomputed when the token trades, so a token with no trade since this definition last changed keeps its previous value."""
|
|
9344
9344
|
liquidity: String
|
|
9345
|
-
"""The token's total liquidity in USD: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days. On networks where the real-money total is enabled, each pool counts only the real money behind it: what the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once.
|
|
9345
|
+
"""The token's total liquidity in USD: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days. On networks where the real-money total is enabled, each pool counts only the real money behind it: what the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once. On networks where the real-money total is enabled, `liquidity` is the same value; elsewhere `liquidity` covers the top pair only (or the aggregated liquidity with `useAggregatedStats`). The value is recomputed when the token trades, so a token with no trade since this definition last changed keeps its previous value. Null when this stat has not been computed for the token yet."""
|
|
9346
9346
|
totalLiquidityUsd: String
|
|
9347
9347
|
"""The token of interest. Can be `token0` or `token1`."""
|
|
9348
9348
|
quoteToken: String
|
|
@@ -9364,7 +9364,7 @@ type TokenFilterResult {
|
|
|
9364
9364
|
pair: Pair
|
|
9365
9365
|
"""Metadata for the token's most liquid pair"""
|
|
9366
9366
|
liquidPair: Pair
|
|
9367
|
-
"""The liquidity of the token's most liquid pair"""
|
|
9367
|
+
"""The liquidity of the token's most liquid pair. On networks where the real-money total is enabled, this is the same value as `totalLiquidityUsd` (the combined liquidity of the token's 15 deepest pools) once the token has one. The value is recomputed when the token trades."""
|
|
9368
9368
|
liquidPairLiquidity: String
|
|
9369
9369
|
"""The liquid pairs price in USD."""
|
|
9370
9370
|
liquidPairPriceUSD: String
|
|
@@ -11366,6 +11366,18 @@ input BalancesInput {
|
|
|
11366
11366
|
sortDirection: RankingDirection
|
|
11367
11367
|
"""Controls how uiBalance is expressed. SCALED returns the Token-2022 stored RPC UI amount, and multiplies B20 balances by their active multiplier. RAW removes the active Token-2022 UI amount multiplier and returns B20 balances unchanged. Defaults to SCALED."""
|
|
11368
11368
|
uiAmountMode: UiAmountMode
|
|
11369
|
+
"""Keeps only holdings that match every filter set. A filtered page reads at most 600 of the wallet's holdings, so it can return fewer than `limit` results, or none, while `cursor` is still set; keep paging until `cursor` is null. Reuse a cursor only with the same `filters`. With `tokens`, name at most 200 token IDs across `networks`."""
|
|
11370
|
+
filters: BalanceFilters
|
|
11371
|
+
}
|
|
11372
|
+
|
|
11373
|
+
"""Filters for `balances`. Bounds can't be negative, and a range can't be empty."""
|
|
11374
|
+
input BalanceFilters {
|
|
11375
|
+
"""Keeps holdings whose `balanceUsd` is in range. Requires `sortBy: USD_VALUE` unless `tokens` is passed. A holding with no `balanceUsd` never matches."""
|
|
11376
|
+
balanceUsd: NumberFilter
|
|
11377
|
+
"""Keeps holdings whose `liquidityUsd` is in range. A holding with no `liquidityUsd` never matches, except native balances, which always match."""
|
|
11378
|
+
liquidityUsd: NumberFilter
|
|
11379
|
+
"""Keeps holdings that have a `tokenPriceUsd` when true, or that have none when false."""
|
|
11380
|
+
hasPrice: Boolean
|
|
11369
11381
|
}
|
|
11370
11382
|
|
|
11371
11383
|
"""Wallet balance of a token."""
|
|
@@ -13016,9 +13028,9 @@ input TokenFilters {
|
|
|
13016
13028
|
high24: NumberFilter
|
|
13017
13029
|
"""The highest price in USD in the past 4 hours."""
|
|
13018
13030
|
high4: NumberFilter
|
|
13019
|
-
"""The
|
|
13031
|
+
"""The token's liquidity in USD. On networks where the real-money total is enabled, this filters on the same value as `totalLiquidityUsd` (the combined liquidity of its 15 deepest pools) once the token has one. On other networks it filters on the liquidity of the token's top pair, or with `useAggregatedStats` the token's aggregated liquidity."""
|
|
13020
13032
|
liquidity: NumberFilter
|
|
13021
|
-
"""The token's total liquidity in USD: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days. On networks where the real-money total is enabled, each pool counts only the real money behind it: what the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once.
|
|
13033
|
+
"""The token's total liquidity in USD: the combined liquidity of its 15 deepest pools, leaving out pools with no trade in the last 7 days. On networks where the real-money total is enabled, each pool counts only the real money behind it: what the token can reach in one or two trades into the network's pricing reference tokens (such as its main stablecoins), with each route counted once. On networks where the real-money total is enabled, `liquidity` is the same value; elsewhere `liquidity` covers the top pair only (or the aggregated liquidity with `useAggregatedStats`)."""
|
|
13022
13034
|
totalLiquidityUsd: NumberFilter
|
|
13023
13035
|
"""The lowest price in USD in the past hour."""
|
|
13024
13036
|
low1: NumberFilter
|
|
@@ -13315,7 +13327,7 @@ type TokenWithMetadata {
|
|
|
13315
13327
|
exchanges: [Exchange!]!
|
|
13316
13328
|
"""The ID of the token (`address:networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`."""
|
|
13317
13329
|
id: String!
|
|
13318
|
-
"""The total liquidity of the token's top pair
|
|
13330
|
+
"""The token's liquidity in USD. On networks where the real-money total is enabled, this is the same value as `totalLiquidityUsd` from `filterTokens` (the combined liquidity of the token's 15 deepest pools) once the token has one; elsewhere it is the total liquidity of the token's top pair. The value is recomputed when the token trades."""
|
|
13319
13331
|
liquidity: String!
|
|
13320
13332
|
"""The name of the token."""
|
|
13321
13333
|
name: String!
|
|
@@ -15722,7 +15734,7 @@ type LiquidityMetadataByToken {
|
|
|
15722
15734
|
tokenAddress: String!
|
|
15723
15735
|
"""The network ID the token is deployed on."""
|
|
15724
15736
|
networkId: Int!
|
|
15725
|
-
"""The total liquidity in USD."""
|
|
15737
|
+
"""The token's total liquidity in USD. On networks where the real-money total is enabled, this is `totalLiquidityUsd` from `filterTokens` (the combined liquidity of its 15 deepest pools) once the token has one; elsewhere, or until then, it is the value of the token's own side across the pairs below at its current price. `lockedLiquidityPercentage` is always measured across the pairs below, not against this figure."""
|
|
15726
15738
|
totalLiquidityUsd: String!
|
|
15727
15739
|
"""The locked liquidity in USD."""
|
|
15728
15740
|
lockedLiquidityUsd: String!
|