@codex-data/sdk 1.0.3 → 1.0.4

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.
Files changed (80) hide show
  1. package/dist/resources/generated_queries/FilterPairs.graphql +44 -0
  2. package/dist/resources/generated_queries/FilterTokens.graphql +44 -0
  3. package/dist/resources/generated_queries/GetBars.graphql +165 -0
  4. package/dist/resources/generated_queries/GetCommunityNotes.graphql +11 -0
  5. package/dist/resources/generated_queries/GetDetailedPairStats.graphql +22 -0
  6. package/dist/resources/generated_queries/GetDetailedPairsStats.graphql +22 -0
  7. package/dist/resources/generated_queries/ListPairsForToken.graphql +22 -0
  8. package/dist/resources/generated_queries/ListPairsWithMetadataForToken.graphql +44 -0
  9. package/dist/resources/generated_queries/PairMetadata.graphql +26 -0
  10. package/dist/resources/generated_queries/Token.graphql +11 -0
  11. package/dist/resources/generated_queries/Tokens.graphql +11 -0
  12. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +15 -0
  13. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +26 -0
  14. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +1 -0
  15. package/dist/resources/graphql.d.ts +202 -109
  16. package/dist/resources/graphql.d.ts.map +1 -1
  17. package/dist/resources/graphql.js +18 -1
  18. package/dist/resources/graphql.js.map +1 -1
  19. package/dist/resources/graphql.schema.json +863 -760
  20. package/dist/resources/graphql.ts +208 -124
  21. package/dist/resources/schema.graphql +312 -154
  22. package/dist/sdk/Mutation.d.ts +2 -2
  23. package/dist/sdk/Mutation.js +2 -2
  24. package/dist/sdk/Query.d.ts +48 -57
  25. package/dist/sdk/Query.d.ts.map +1 -1
  26. package/dist/sdk/Query.js +47 -56
  27. package/dist/sdk/Query.js.map +1 -1
  28. package/dist/sdk/Subscribe.d.ts +13 -12
  29. package/dist/sdk/Subscribe.d.ts.map +1 -1
  30. package/dist/sdk/Subscribe.js +68 -61
  31. package/dist/sdk/Subscribe.js.map +1 -1
  32. package/dist/sdk/generated/gql.d.ts +34 -101
  33. package/dist/sdk/generated/gql.d.ts.map +1 -1
  34. package/dist/sdk/generated/gql.js +14 -22
  35. package/dist/sdk/generated/gql.js.map +1 -1
  36. package/dist/sdk/generated/graphql.d.ts +784 -499
  37. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  38. package/dist/sdk/generated/graphql.js +34 -25
  39. package/dist/sdk/generated/graphql.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/resources/generated_queries/FilterPairs.graphql +44 -0
  42. package/src/resources/generated_queries/FilterTokens.graphql +44 -0
  43. package/src/resources/generated_queries/GetBars.graphql +165 -0
  44. package/src/resources/generated_queries/GetCommunityNotes.graphql +11 -0
  45. package/src/resources/generated_queries/GetDetailedPairStats.graphql +22 -0
  46. package/src/resources/generated_queries/GetDetailedPairsStats.graphql +22 -0
  47. package/src/resources/generated_queries/ListPairsForToken.graphql +22 -0
  48. package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +44 -0
  49. package/src/resources/generated_queries/PairMetadata.graphql +26 -0
  50. package/src/resources/generated_queries/Token.graphql +11 -0
  51. package/src/resources/generated_queries/Tokens.graphql +11 -0
  52. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +15 -0
  53. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +26 -0
  54. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +1 -0
  55. package/src/resources/graphql.schema.json +863 -760
  56. package/src/resources/graphql.ts +208 -124
  57. package/src/resources/schema.graphql +312 -154
  58. package/src/sdk/Mutation.ts +4 -4
  59. package/src/sdk/Query.ts +100 -136
  60. package/src/sdk/Subscribe.ts +112 -97
  61. package/src/sdk/generated/gql.ts +31 -71
  62. package/src/sdk/generated/graphql.ts +246 -233
  63. package/dist/resources/generated_queries/BackfillWalletState.graphql +0 -3
  64. package/dist/resources/generated_queries/GetLatestPairs.graphql +0 -57
  65. package/dist/resources/generated_queries/GetParallelAssets.graphql +0 -50
  66. package/dist/resources/generated_queries/GetTokenCount.graphql +0 -3
  67. package/dist/resources/generated_queries/GetTokenInfo.graphql +0 -18
  68. package/dist/resources/generated_queries/GetTokensInfo.graphql +0 -18
  69. package/dist/resources/generated_queries/GetUniV3Ticks.graphql +0 -22
  70. package/dist/resources/generated_queries/ListFavoriteTokens.graphql +0 -59
  71. package/dist/resources/generated_queries/PrimeBalance.graphql +0 -12
  72. package/src/resources/generated_queries/BackfillWalletState.graphql +0 -3
  73. package/src/resources/generated_queries/GetLatestPairs.graphql +0 -57
  74. package/src/resources/generated_queries/GetParallelAssets.graphql +0 -50
  75. package/src/resources/generated_queries/GetTokenCount.graphql +0 -3
  76. package/src/resources/generated_queries/GetTokenInfo.graphql +0 -18
  77. package/src/resources/generated_queries/GetTokensInfo.graphql +0 -18
  78. package/src/resources/generated_queries/GetUniV3Ticks.graphql +0 -22
  79. package/src/resources/generated_queries/ListFavoriteTokens.graphql +0 -59
  80. package/src/resources/generated_queries/PrimeBalance.graphql +0 -12
@@ -49,6 +49,7 @@ type AddNftEventsOutput {
49
49
  events: [NftEvent]!
50
50
  }
51
51
 
52
+ """Response returned by `onNftPoolEventsCreated`."""
52
53
  type AddNftPoolEventsOutput {
53
54
  collectionAddress: String!
54
55
  exchangeAddress: String!
@@ -64,11 +65,18 @@ enum AddressType {
64
65
  TRON
65
66
  }
66
67
 
68
+ """Response returned by `onTokenEventsCreated`."""
67
69
  type AddTokenEventsOutput {
70
+ """
71
+ The ID of the event (`address`:`networkId`). For example, `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1`.
72
+ """
68
73
  id: String!
74
+
75
+ """A list of transactions for the token."""
69
76
  events: [Event!]!
70
77
  }
71
78
 
79
+ """Response returned by `onTokenLifecycleEventsCreated`."""
72
80
  type AddTokenLifecycleEventsOutput {
73
81
  id: String!
74
82
  events: [TokenLifecycleEvent!]!
@@ -223,7 +231,7 @@ type BarsResponse {
223
231
  """The sell volume in USD"""
224
232
  sellVolume: [String]!
225
233
 
226
- """Liqudity in USD"""
234
+ """Liquidity in USD"""
227
235
  liquidity: [String]!
228
236
 
229
237
  """The number of traders"""
@@ -231,6 +239,9 @@ type BarsResponse {
231
239
 
232
240
  """The number of transactions"""
233
241
  transactions: [Int]!
242
+
243
+ """The pair that is being returned"""
244
+ pair: Pair!
234
245
  }
235
246
 
236
247
  """
@@ -1152,6 +1163,9 @@ type EnhancedToken {
1152
1163
 
1153
1164
  """Whether or not the token is freezable"""
1154
1165
  freezable: String
1166
+
1167
+ """Launchpad data for the token"""
1168
+ launchpad: LaunchpadData
1155
1169
  }
1156
1170
 
1157
1171
  """A token transaction."""
@@ -1701,14 +1715,31 @@ input GetGasEstimateInput {
1701
1715
 
1702
1716
  """Response returned by `getNetworkStats`."""
1703
1717
  type GetNetworkStatsResponse {
1718
+ """The network trade volume in USD over the past 24 hours."""
1704
1719
  volume24: Float!
1720
+
1721
+ """The network trade volume in USD over the past 12 hours."""
1705
1722
  volume12: Float!
1723
+
1724
+ """The network trade volume in USD over the past 4 hours."""
1706
1725
  volume4: Float!
1726
+
1727
+ """The network trade volume in USD over the past hour."""
1707
1728
  volume1: Float!
1729
+
1730
+ """The network liquidity in USD."""
1708
1731
  liquidity: Float!
1732
+
1733
+ """The unique number of transactions in the past 24 hours."""
1709
1734
  transactions24: Int!
1735
+
1736
+ """The unique number of transactions in the past 12 hours."""
1710
1737
  transactions12: Int!
1738
+
1739
+ """The unique number of transactions in the past 4 hours."""
1711
1740
  transactions4: Int!
1741
+
1742
+ """The unique number of transactions in the past hour."""
1712
1743
  transactions1: Int!
1713
1744
  }
1714
1745
 
@@ -1812,11 +1843,12 @@ input HoldersInputSort {
1812
1843
  direction: RankingDirection
1813
1844
  }
1814
1845
 
1846
+ """Response returned by `holders`."""
1815
1847
  type HoldersResponse {
1816
- """The list wallets for a token."""
1848
+ """The list of wallets holding the token."""
1817
1849
  items: [Balance!]!
1818
1850
 
1819
- """the unique count of holders for the token."""
1851
+ """The unique count of holders for the token."""
1820
1852
  count: Int!
1821
1853
 
1822
1854
  """A cursor for use in pagination."""
@@ -1827,7 +1859,7 @@ type HoldersResponse {
1827
1859
  """
1828
1860
  status: HoldersStatus!
1829
1861
 
1830
- """What percentage of the total supply do the top 10 holders hold"""
1862
+ """What percentage of the total supply do the top 10 holders hold."""
1831
1863
  top10HoldersPercent: Float
1832
1864
  }
1833
1865
 
@@ -1841,6 +1873,24 @@ enum HoldersStatus {
1841
1873
  DISABLED
1842
1874
  }
1843
1875
 
1876
+ """Response returned by `onHoldersUpdated`."""
1877
+ type HoldersUpdate {
1878
+ """The number of different wallets holding the token."""
1879
+ holders: Int!
1880
+
1881
+ """The ID of the token (`tokenAddress:networkId`)."""
1882
+ tokenId: String!
1883
+
1884
+ """The token's contract address."""
1885
+ tokenAddress: String!
1886
+
1887
+ """The network ID that the token is deployed on."""
1888
+ networkId: Int!
1889
+
1890
+ """The list of wallets holding the token."""
1891
+ balances: [Balance!]!
1892
+ }
1893
+
1844
1894
  """Bar chart data."""
1845
1895
  type IndividualBarData {
1846
1896
  """The opening price."""
@@ -1885,7 +1935,7 @@ type IndividualBarData {
1885
1935
  """The sell volume in USD"""
1886
1936
  sellVolume: String!
1887
1937
 
1888
- """Liqudity in USD"""
1938
+ """Liquidity in USD"""
1889
1939
  liquidity: String!
1890
1940
 
1891
1941
  """The number of traders"""
@@ -2140,6 +2190,36 @@ type LatestTokenSimResults {
2140
2190
  openTradingCall: String
2141
2191
  }
2142
2192
 
2193
+ """Launchpad data for the token"""
2194
+ type LaunchpadData {
2195
+ """The percentage of the pool that was sold to the public."""
2196
+ graduationPercent: Float
2197
+
2198
+ """The address of the pool."""
2199
+ poolAddress: String
2200
+
2201
+ """The unix timestamp when the launchpad was completed."""
2202
+ completedAt: Int
2203
+
2204
+ """Indicates if the launchpad is completed."""
2205
+ completed: Boolean
2206
+
2207
+ """The slot number when the launchpad was completed."""
2208
+ completedSlot: Int
2209
+
2210
+ """The slot number when the launchpad was migrated."""
2211
+ migratedSlot: Int
2212
+
2213
+ """The unix timestamp when the launchpad was migrated."""
2214
+ migratedAt: Int
2215
+
2216
+ """Indicates if the launchpad was migrated."""
2217
+ migrated: Boolean
2218
+
2219
+ """The pool address after the launchpad was migrated."""
2220
+ migratedPoolAddress: String
2221
+ }
2222
+
2143
2223
  scalar link__Import
2144
2224
 
2145
2225
  enum link__Purpose {
@@ -2319,7 +2399,7 @@ input MakerEventsQueryInput {
2319
2399
  networkId: Int
2320
2400
 
2321
2401
  """docs: hide"""
2322
- quoteToken: QuoteToken
2402
+ quoteToken: QuoteToken @deprecated(reason: "Not used")
2323
2403
 
2324
2404
  """
2325
2405
  The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`).
@@ -5993,6 +6073,11 @@ input OneOfNumberConditionInput {
5993
6073
  oneOf: [Int!]!
5994
6074
  }
5995
6075
 
6076
+ input OnLaunchpadTokenUpdatedInput {
6077
+ address: String
6078
+ networkId: Int
6079
+ }
6080
+
5996
6081
  input OnPricesUpdatedInput {
5997
6082
  address: String!
5998
6083
  networkId: Int!
@@ -6081,6 +6166,7 @@ enum OrderState {
6081
6166
  enum OrderType {
6082
6167
  MANUAL
6083
6168
  LIMIT
6169
+ LIMIT_STRATEGY
6084
6170
  }
6085
6171
 
6086
6172
  """Metadata for a token pair."""
@@ -6113,7 +6199,11 @@ type Pair {
6113
6199
 
6114
6200
  """The unix timestamp for the creation of the pair."""
6115
6201
  createdAt: Int
6202
+
6203
+ """Metadata for the first token in the pair."""
6116
6204
  token0Data: EnhancedToken
6205
+
6206
+ """Metadata for the second token in the pair."""
6117
6207
  token1Data: EnhancedToken
6118
6208
 
6119
6209
  """The pooled amounts of each token in the pair."""
@@ -6522,43 +6612,134 @@ input PairFilters {
6522
6612
  }
6523
6613
 
6524
6614
  type PairMetadata {
6615
+ """The exchange contract ID."""
6525
6616
  exchangeId: String
6617
+
6618
+ """The exchange fee for swaps."""
6526
6619
  fee: Int
6620
+
6621
+ """The ID for the pair (`address:networkId`)."""
6527
6622
  id: String!
6623
+
6624
+ """The token of interest within the pair. Can be `token0` or `token1`."""
6528
6625
  quoteToken: QuoteToken
6626
+
6627
+ """The network ID the pair is deployed on."""
6529
6628
  networkId: Int
6629
+
6630
+ """The total liquidity in the pair."""
6530
6631
  liquidity: String!
6632
+
6633
+ """
6634
+ The token with higher liquidity within the pair. Can be `token0` or `token1`.
6635
+ """
6531
6636
  liquidityToken: String
6637
+
6638
+ """
6639
+ The token with lower liquidity within the pair. Can be `token0` or `token1`.
6640
+ """
6532
6641
  nonLiquidityToken: String
6642
+
6643
+ """The contract address of the pair."""
6533
6644
  pairAddress: String!
6645
+
6646
+ """The type of statistics returned. Can be `FILTERED` or `UNFILTERED`"""
6534
6647
  statsType: TokenPairStatisticsType!
6648
+
6649
+ """The quote token price in USD."""
6535
6650
  price: String!
6651
+
6652
+ """The percent price change in the past 5 minutes. Decimal format."""
6536
6653
  priceChange5m: Float
6654
+
6655
+ """The percent price change in the past hour. Decimal format."""
6537
6656
  priceChange1: Float
6657
+
6658
+ """The percent price change in the past 4 hours. Decimal format."""
6538
6659
  priceChange4: Float
6660
+
6661
+ """The percent price change in the past 12 hours. Decimal format."""
6539
6662
  priceChange12: Float
6663
+
6664
+ """The percent price change in the past 24 hours. Decimal format."""
6540
6665
  priceChange24: Float
6666
+
6667
+ """The percent price change in the past week. Decimal format."""
6541
6668
  priceChange1w: Float
6669
+
6670
+ """
6671
+ The amount of required tick separation. Only applicable for pairs on UniswapV3.
6672
+ """
6542
6673
  tickSpacing: Int
6674
+
6675
+ """Pair metadata for the first token in the pair."""
6543
6676
  token0: PairMetadataToken!
6677
+
6678
+ """Pair metadata for the second token in the pair."""
6544
6679
  token1: PairMetadataToken!
6680
+
6681
+ """The trade volume in USD in the past hour."""
6545
6682
  volume1: String
6683
+
6684
+ """The trade volume in USD in the past 4 hours."""
6546
6685
  volume4: String
6686
+
6687
+ """The trade volume in USD in the past 12 hours."""
6547
6688
  volume12: String
6689
+
6690
+ """The trade volume in USD in the past 24 hours."""
6548
6691
  volume24: String
6692
+
6693
+ """The trade trade volume in USD in the past week."""
6549
6694
  volume1w: String
6695
+
6696
+ """The trade volume in USD in the past 5 minutes."""
6697
+ volume5m: String
6698
+
6699
+ """The highest price in USD in the past 5 minutes."""
6700
+ highPrice5m: String
6701
+
6702
+ """The highest price in USD in the past hour."""
6550
6703
  highPrice1: String
6704
+
6705
+ """The highest price in USD in the past 4 hours."""
6551
6706
  highPrice4: String
6707
+
6708
+ """The highest price in USD in the past 12 hours."""
6552
6709
  highPrice12: String
6710
+
6711
+ """The highest price in USD in the past 24 hours."""
6553
6712
  highPrice24: String
6713
+
6714
+ """The highest price in USD in the past week."""
6554
6715
  highPrice1w: String
6716
+
6717
+ """The lowest price in USD in the past 5 minutes."""
6718
+ lowPrice5m: String
6719
+
6720
+ """The lowest price in USD in the past hour."""
6555
6721
  lowPrice1: String
6722
+
6723
+ """The lowest price in USD in the past 12 hours."""
6556
6724
  lowPrice12: String
6725
+
6726
+ """The lowest price in USD in the past 24 hours."""
6557
6727
  lowPrice24: String
6728
+
6729
+ """The lowest price in USD in the past 4 hours."""
6558
6730
  lowPrice4: String
6731
+
6732
+ """The lowest price in USD in the past week."""
6559
6733
  lowPrice1w: String
6734
+
6735
+ """Token metadata for the first token in the pair."""
6560
6736
  enhancedToken0: EnhancedToken
6737
+
6738
+ """Token metadata for the second token in the pair."""
6561
6739
  enhancedToken1: EnhancedToken
6740
+
6741
+ """The unix timestamp for the creation of the pair."""
6742
+ createdAt: Int
6562
6743
  }
6563
6744
 
6564
6745
  type PairMetadataToken {
@@ -6640,47 +6821,6 @@ enum PairRankingAttribute {
6640
6821
  volumeUSD24
6641
6822
  }
6642
6823
 
6643
- """A Parallel asset."""
6644
- type ParallelAsset {
6645
- """The ID of the NFT asset (`address`:`tokenId`)."""
6646
- id: String!
6647
-
6648
- """The contract address of the NFT collection."""
6649
- address: String!
6650
-
6651
- """The token ID of the NFT asset."""
6652
- tokenId: String!
6653
-
6654
- """The network ID the NFT collection is deployed on."""
6655
- networkId: Int!
6656
-
6657
- """The NFT asset media."""
6658
- media: NftAssetMedia
6659
-
6660
- """The name of the NFT asset."""
6661
- name: String
6662
-
6663
- """The description of the NFT asset."""
6664
- description: String
6665
-
6666
- """The source image URI linked by smart contract metadata."""
6667
- originalImage: String
6668
-
6669
- """
6670
- The URI provided by the smart contract. Typically JSON that contains metadata.
6671
- """
6672
- uri: String
6673
-
6674
- """The attributes for the NFT asset."""
6675
- attributes: [NftAssetAttribute!]
6676
-
6677
- """The game data for the NFT asset."""
6678
- gameData: ParallelAssetGameData
6679
-
6680
- """Metadata for the NFT asset."""
6681
- metadata: ParallelAssetMetadata
6682
- }
6683
-
6684
6824
  """Response returned by `filterNftParallelAssets`."""
6685
6825
  type ParallelAssetFilterConnection {
6686
6826
  """The list of Parallel assets matching the filter parameters."""
@@ -6925,15 +7065,6 @@ enum ParallelAssetRankingAttribute {
6925
7065
  lastPriceNetworkBaseToken
6926
7066
  }
6927
7067
 
6928
- """Response returned by `getParallelAssets`."""
6929
- type ParallelAssetsConnection {
6930
- """A list of Parallel assets."""
6931
- items: [ParallelAsset]
6932
-
6933
- """A cursor for use in pagination."""
6934
- cursor: String
6935
- }
6936
-
6937
7068
  """Tracked changes made to a Parallel card."""
6938
7069
  type ParallelCardChange {
6939
7070
  """The token ID of the Parallel asset."""
@@ -7109,7 +7240,7 @@ type Price {
7109
7240
  priceUsd: Float!
7110
7241
 
7111
7242
  """The unix timestamp for the price."""
7112
- timestamp: Int!
7243
+ timestamp: Int
7113
7244
 
7114
7245
  """The pool that emitted the swap generating this price"""
7115
7246
  poolAddress: String!
@@ -8177,18 +8308,6 @@ type Query {
8177
8308
  contracts: [NftContractInput]
8178
8309
  ): [EnhancedNftContract]
8179
8310
 
8180
- """Returns transactions for an NFT collection across any marketplace(s)."""
8181
- getParallelAssets(
8182
- """An optional list of token IDs to filter by."""
8183
- tokenIds: [String]
8184
-
8185
- """The cursor to use for pagination."""
8186
- cursor: String
8187
-
8188
- """The maximum number of Parallel assets to return."""
8189
- limit: Int
8190
- ): ParallelAssetsConnection
8191
-
8192
8311
  """Returns a list of Parallel assets based on a variety of filters."""
8193
8312
  filterNftParallelAssets(
8194
8313
  """A set of filters to apply."""
@@ -8397,45 +8516,6 @@ type Query {
8397
8516
  offset: Int
8398
8517
  ): ExchangeFilterConnection
8399
8518
 
8400
- """Returns metadata for a given token."""
8401
- getTokenInfo(
8402
- """The contract address of the token."""
8403
- address: String!
8404
-
8405
- """The network ID the token is deployed on."""
8406
- networkId: Int!
8407
- ): TokenInfo
8408
-
8409
- """
8410
- Returns the total count of tokens on Defined. This value is updated approximately every 6 hours.
8411
- """
8412
- getTokenCount: String!
8413
-
8414
- """Returns tick data for a given Uniswap V3-style pool."""
8415
- getUniV3Ticks(
8416
- """The contract address of the pool."""
8417
- poolAddress: String!
8418
-
8419
- """
8420
- The network ID the pool is deployed on. Currently `getUniV3Ticks` is only supported on Ethereum mainnet (1).
8421
- """
8422
- networkId: Int!
8423
-
8424
- """The maximum number of ticks to return. Max is `1000`."""
8425
- limit: Int
8426
-
8427
- """Offset for pagination of ticks."""
8428
- offset: Int
8429
- ): UniV3TickConnection
8430
-
8431
- """Returns metadata for a list of given tokens."""
8432
- getTokensInfo(
8433
- """
8434
- A list of `GetTokensInfoInput`s. Accepts a maximum of 25 inputs (anything over will be truncated).
8435
- """
8436
- input: [GetTokensInfoInput!]!
8437
- ): [TokenInfo]
8438
-
8439
8519
  """Returns bucketed stats for a given token within a pair."""
8440
8520
  getDetailedStats(
8441
8521
  """The ID of the pair (`address:networkId`)."""
@@ -8584,7 +8664,7 @@ type Query {
8584
8664
  to: Int!
8585
8665
 
8586
8666
  """
8587
- The time frame for each candle. Available options are `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D` and `7D`.
8667
+ The time frame for each candle. Available options are `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`.
8588
8668
  """
8589
8669
  resolution: String!
8590
8670
 
@@ -8611,6 +8691,9 @@ type Query {
8611
8691
 
8612
8692
  """guarantees number of bars returned is at most this number"""
8613
8693
  countback: Int
8694
+
8695
+ """specify the type of symbol you want to fetch values for (TOKEN | POOL)"""
8696
+ symbolType: SymbolType
8614
8697
  ): BarsResponse
8615
8698
 
8616
8699
  """Returns a list of tokens matching a given query string."""
@@ -8637,7 +8720,9 @@ type Query {
8637
8720
  search: String!
8638
8721
  ): TokenSearchResponse @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
8639
8722
 
8640
- """What percent of the total supply do the top 10 holders of a token hold"""
8723
+ """
8724
+ Returns the percentage of a token’s total supply held collectively by its top 10 holders.
8725
+ """
8641
8726
  top10HoldersPercent(tokenId: String!): Float
8642
8727
 
8643
8728
  """Returns a list of decentralized exchange metadata."""
@@ -8681,14 +8766,14 @@ type Query {
8681
8766
  cursor: String
8682
8767
  ): TokenLifecycleEventConnection
8683
8768
 
8684
- """Find a single token by its address & network id."""
8769
+ """Returns a single token by its address & network id."""
8685
8770
  token(
8686
8771
  """Input for a token ID."""
8687
8772
  input: TokenInput!
8688
8773
  ): EnhancedToken!
8689
8774
 
8690
8775
  """
8691
- Find a list of tokens by their addresses & network id, with pagination.
8776
+ Returns a list of tokens by their addresses & network id, with pagination.
8692
8777
  """
8693
8778
  tokens(
8694
8779
  """A list of token ID input."""
@@ -8723,7 +8808,7 @@ type Query {
8723
8808
 
8724
8809
  """The cursor to use for pagination."""
8725
8810
  cursor: String
8726
- ): LatestPairConnection
8811
+ ): LatestPairConnection @deprecated(reason: "This query is longer supported. Instead use filterPairs with sort order on createdAt DESC")
8727
8812
 
8728
8813
  """Returns a list of pairs containing a given token."""
8729
8814
  listPairsForToken(
@@ -8737,20 +8822,6 @@ type Query {
8737
8822
  tokenAddress: String!
8738
8823
  ): [Pair]!
8739
8824
 
8740
- """Returns a list of token metadata."""
8741
- listFavoriteTokens(
8742
- """The list of token IDs to filter by (`address:networkId`)."""
8743
- keys: [String!]!
8744
-
8745
- """The list of network IDs to filter by."""
8746
- networkFilter: [Int!]
8747
-
8748
- """
8749
- The time frame for trending results. Can be `1`, `5`, `15`, `30`, `60`, `240`, `720`, or `1D`.
8750
- """
8751
- resolution: String
8752
- ): [TokenWithMetadata!]
8753
-
8754
8825
  """Returns a list of pair metadata for a token."""
8755
8826
  listPairsWithMetadataForToken(
8756
8827
  """The maximum number of pairs to return."""
@@ -8784,9 +8855,6 @@ type Query {
8784
8855
  """
8785
8856
  cursor: String
8786
8857
  ): PrimeHolders!
8787
-
8788
- """Fetch the balance of a wallet holding PRIME on ethereum"""
8789
- primeBalance(walletAddress: String!): BalancesResponse!
8790
8858
  getLatestTokens(
8791
8859
  """
8792
8860
  The maximum number of tokens to return. Maximum number of tokens is 50.
@@ -8822,7 +8890,6 @@ type Query {
8822
8890
  """The network id of the pair."""
8823
8891
  networkId: Int!
8824
8892
  ): LiquidityMetadata
8825
- backfillWalletState: Boolean!
8826
8893
 
8827
8894
  """Returns community gathered notes."""
8828
8895
  getCommunityNotes(input: CommunityNotesInput): CommunityNotesResponse!
@@ -9489,9 +9556,21 @@ type Subscription {
9489
9556
  ): NftAsset
9490
9557
 
9491
9558
  """
9492
- Live streamed nft pool events for a given pool address or collection address
9559
+ Live streamed NFT pool events for a given pool address or collection address.
9493
9560
  """
9494
- onNftPoolEventsCreated(poolAddress: String, networkId: Int, collectionAddress: String, exchangeAddress: String): AddNftPoolEventsOutput
9561
+ onNftPoolEventsCreated(
9562
+ """The NFT pool address to filter by."""
9563
+ poolAddress: String
9564
+
9565
+ """The network ID to filter by."""
9566
+ networkId: Int
9567
+
9568
+ """The contract address of the NFT collection to filter by."""
9569
+ collectionAddress: String
9570
+
9571
+ """The contract address of the NFT AMM marketplace to filter by."""
9572
+ exchangeAddress: String
9573
+ ): AddNftPoolEventsOutput
9495
9574
 
9496
9575
  """Live-streamed bar chart data to track price changes over time."""
9497
9576
  onBarsUpdated(
@@ -9616,10 +9695,15 @@ type Subscription {
9616
9695
  ): EventLabel
9617
9696
  onSimulateTokenContract(contractAddress: String, networkId: Int!, simulationId: String): SimulateTokenContractResult!
9618
9697
 
9619
- """Live streamed events for a given token across all it's pools"""
9698
+ """Live-streamed events for a given token across all it's pools"""
9620
9699
  onTokenEventsCreated(input: OnTokenEventsCreatedInput!): AddTokenEventsOutput!
9621
9700
 
9622
- """Live-streamed token lifecycle events (mints and burns)"""
9701
+ """
9702
+ Live-streamed list of wallets that hold a given token. Also has the unique count of holders for that token.
9703
+ """
9704
+ onHoldersUpdated(tokenId: String!): HoldersUpdate
9705
+
9706
+ """Live-streamed token lifecycle events (mints and burns)."""
9623
9707
  onTokenLifecycleEventsCreated(
9624
9708
  """The token contract address."""
9625
9709
  address: String
@@ -9960,6 +10044,11 @@ type SymbolResponse {
9960
10044
  supported_resolutions: [String!]!
9961
10045
  }
9962
10046
 
10047
+ enum SymbolType {
10048
+ TOKEN
10049
+ POOL
10050
+ }
10051
+
9963
10052
  """Token burn event data."""
9964
10053
  type TokenBurnEventData {
9965
10054
  """The amount of tokens burned."""
@@ -9993,6 +10082,9 @@ type TokenFilterResult {
9993
10082
  lastTransaction: Int
9994
10083
  age: Int @deprecated(reason: "Age isn't supported - use createdAt instead")
9995
10084
 
10085
+ """The number of buys in the past 5 minutes."""
10086
+ buyCount5m: Int
10087
+
9996
10088
  """The number of buys in the past hour."""
9997
10089
  buyCount1: Int
9998
10090
 
@@ -10005,6 +10097,9 @@ type TokenFilterResult {
10005
10097
  """The number of buys in the past 4 hours."""
10006
10098
  buyCount4: Int
10007
10099
 
10100
+ """The percent price change in the past 5 minutes. Decimal format."""
10101
+ change5m: String
10102
+
10008
10103
  """The percent price change in the past hour. Decimal format."""
10009
10104
  change1: String
10010
10105
 
@@ -10017,6 +10112,9 @@ type TokenFilterResult {
10017
10112
  """The percent price change in the past 4 hours. Decimal format."""
10018
10113
  change4: String
10019
10114
 
10115
+ """The percent volume change in the past 5 minutes. Decimal format."""
10116
+ volumeChange5m: String
10117
+
10020
10118
  """The percent volume change in the past hour. Decimal format."""
10021
10119
  volumeChange1: String
10022
10120
 
@@ -10033,6 +10131,9 @@ type TokenFilterResult {
10033
10131
  exchanges: [Exchange]
10034
10132
  fdv: String @deprecated(reason: "FDV isn't supported - use marketCap instead")
10035
10133
 
10134
+ """The highest price in USD in the past 5 minutes."""
10135
+ high5m: String
10136
+
10036
10137
  """The highest price in USD in the past hour."""
10037
10138
  high1: String
10038
10139
 
@@ -10051,6 +10152,9 @@ type TokenFilterResult {
10051
10152
  """The token of interest. Can be `token0` or `token1`."""
10052
10153
  quoteToken: String
10053
10154
 
10155
+ """The lowest price in USD in the past 5 minutes."""
10156
+ low5m: String
10157
+
10054
10158
  """The lowest price in USD in the past hour."""
10055
10159
  low1: String
10056
10160
 
@@ -10074,6 +10178,9 @@ type TokenFilterResult {
10074
10178
  """The token price in USD."""
10075
10179
  priceUSD: String
10076
10180
 
10181
+ """The number of sells in the past 5 minutes."""
10182
+ sellCount5m: Int
10183
+
10077
10184
  """The number of sells in the past hour."""
10078
10185
  sellCount1: Int
10079
10186
 
@@ -10089,6 +10196,9 @@ type TokenFilterResult {
10089
10196
  """Metadata for the token."""
10090
10197
  token: EnhancedToken
10091
10198
 
10199
+ """The number of transactions in the past 5 minutes."""
10200
+ txnCount5m: Int
10201
+
10092
10202
  """The number of transactions in the past hour."""
10093
10203
  txnCount1: Int
10094
10204
 
@@ -10101,6 +10211,9 @@ type TokenFilterResult {
10101
10211
  """The number of transactions in the past 4 hours."""
10102
10212
  txnCount4: Int
10103
10213
 
10214
+ """The unique number of buys in the past 5 minutes."""
10215
+ uniqueBuys5m: Int
10216
+
10104
10217
  """The unique number of buys in the past hour."""
10105
10218
  uniqueBuys1: Int
10106
10219
 
@@ -10113,6 +10226,9 @@ type TokenFilterResult {
10113
10226
  """The unique number of buys in the past 4 hours."""
10114
10227
  uniqueBuys4: Int
10115
10228
 
10229
+ """The unique number of sells in the past 5 minutes."""
10230
+ uniqueSells5m: Int
10231
+
10116
10232
  """The unique number of sells in the past hour."""
10117
10233
  uniqueSells1: Int
10118
10234
 
@@ -10125,6 +10241,9 @@ type TokenFilterResult {
10125
10241
  """The unique number of sells in the past 4 hours."""
10126
10242
  uniqueSells4: Int
10127
10243
 
10244
+ """The unique number of transactions in the past 5 minutes."""
10245
+ uniqueTransactions5m: Int
10246
+
10128
10247
  """The unique number of transactions in the past hour."""
10129
10248
  uniqueTransactions1: Int
10130
10249
 
@@ -10140,6 +10259,9 @@ type TokenFilterResult {
10140
10259
  """The trade volume in USD in the past hour."""
10141
10260
  volume1: String
10142
10261
 
10262
+ """The trade volume in USD in the past 5 minutes."""
10263
+ volume5m: String
10264
+
10143
10265
  """The trade volume in USD in the past 12 hours."""
10144
10266
  volume12: String
10145
10267
 
@@ -10165,6 +10287,9 @@ input TokenFilters {
10165
10287
  lastTransaction: NumberFilter
10166
10288
  age: NumberFilter @deprecated(reason: "Age isn't supported - use createdAt instead")
10167
10289
 
10290
+ """The number of buys in the past 5 minutes."""
10291
+ buyCount5m: NumberFilter
10292
+
10168
10293
  """The number of buys in the past hour."""
10169
10294
  buyCount1: NumberFilter
10170
10295
 
@@ -10177,6 +10302,9 @@ input TokenFilters {
10177
10302
  """The number of buys in the past 4 hours."""
10178
10303
  buyCount4: NumberFilter
10179
10304
 
10305
+ """The percent price change in the past 5 minutes. Decimal format."""
10306
+ change5m: NumberFilter
10307
+
10180
10308
  """The percent price change in the past hour. Decimal format."""
10181
10309
  change1: NumberFilter
10182
10310
 
@@ -10189,6 +10317,9 @@ input TokenFilters {
10189
10317
  """The percent price change in the past 4 hours. Decimal format."""
10190
10318
  change4: NumberFilter
10191
10319
 
10320
+ """The percent volume change in the past 5 minutes. Decimal format."""
10321
+ volumeChange5m: NumberFilter
10322
+
10192
10323
  """The percent volume change in the past hour. Decimal format."""
10193
10324
  volumeChange1: NumberFilter
10194
10325
 
@@ -10210,6 +10341,9 @@ input TokenFilters {
10210
10341
  exchangeAddress: [String]
10211
10342
  fdv: NumberFilter @deprecated(reason: "FDV isn't supported - use marketCap instead")
10212
10343
 
10344
+ """The highest price in USD in the past 5 minutes."""
10345
+ high5m: NumberFilter
10346
+
10213
10347
  """The highest price in USD in the past hour."""
10214
10348
  high1: NumberFilter
10215
10349
 
@@ -10228,6 +10362,9 @@ input TokenFilters {
10228
10362
  """The lowest price in USD in the past hour."""
10229
10363
  low1: NumberFilter
10230
10364
 
10365
+ """The lowest price in USD in the past 5 minutes."""
10366
+ low5m: NumberFilter
10367
+
10231
10368
  """The lowest price in USD in the past 12 hours."""
10232
10369
  low12: NumberFilter
10233
10370
 
@@ -10257,6 +10394,9 @@ input TokenFilters {
10257
10394
  """The number of sells in the past hour."""
10258
10395
  sellCount1: NumberFilter
10259
10396
 
10397
+ """The number of sells in the past 5 minutes."""
10398
+ sellCount5m: NumberFilter
10399
+
10260
10400
  """The number of sells in the past 12 hours."""
10261
10401
  sellCount12: NumberFilter
10262
10402
 
@@ -10266,6 +10406,9 @@ input TokenFilters {
10266
10406
  """The number of sells in the past 4 hours."""
10267
10407
  sellCount4: NumberFilter
10268
10408
 
10409
+ """The number of transactions in the past 5 minutes."""
10410
+ txnCount5m: NumberFilter
10411
+
10269
10412
  """The number of transactions in the past hour."""
10270
10413
  txnCount1: NumberFilter
10271
10414
 
@@ -10281,6 +10424,9 @@ input TokenFilters {
10281
10424
  """The unique number of buys in the past hour."""
10282
10425
  uniqueBuys1: NumberFilter
10283
10426
 
10427
+ """The unique number of buys in the past 5 minutes."""
10428
+ uniqueBuys5m: NumberFilter
10429
+
10284
10430
  """The unique number of buys in the past 12 hours."""
10285
10431
  uniqueBuys12: NumberFilter
10286
10432
 
@@ -10290,6 +10436,9 @@ input TokenFilters {
10290
10436
  """The unique number of buys in the past 4 hours."""
10291
10437
  uniqueBuys4: NumberFilter
10292
10438
 
10439
+ """The unique number of sells in the past 5 minutes."""
10440
+ uniqueSells5m: NumberFilter
10441
+
10293
10442
  """The unique number of sells in the past hour."""
10294
10443
  uniqueSells1: NumberFilter
10295
10444
 
@@ -10305,6 +10454,9 @@ input TokenFilters {
10305
10454
  """The unique number of transactions in the past hour."""
10306
10455
  uniqueTransactions1: NumberFilter
10307
10456
 
10457
+ """The unique number of transactions in the past 5 minutes."""
10458
+ uniqueTransactions5m: NumberFilter
10459
+
10308
10460
  """The unique number of transactions in the past 12 hours."""
10309
10461
  uniqueTransactions12: NumberFilter
10310
10462
 
@@ -10326,6 +10478,9 @@ input TokenFilters {
10326
10478
  """The trade volume in USD in the past 4 hours."""
10327
10479
  volume4: NumberFilter
10328
10480
 
10481
+ """The trade volume in USD in the past 5 minutes."""
10482
+ volume5m: NumberFilter
10483
+
10329
10484
  """
10330
10485
  Whether to include tokens that have been flagged as scams. Default: false
10331
10486
  """
@@ -10441,16 +10596,19 @@ type TokenLifecycleEvent {
10441
10596
  data: TokenLifecycleEventData!
10442
10597
  }
10443
10598
 
10444
- """Response returned by `TokenLifecycleEvents`."""
10599
+ """Response returned by `tokenLifecycleEvents`."""
10445
10600
  type TokenLifecycleEventConnection {
10601
+ """A list of transactions for a token's top pair."""
10446
10602
  items: [TokenLifecycleEvent]!
10603
+
10604
+ """A cursor for use in pagination."""
10447
10605
  cursor: String
10448
10606
  }
10449
10607
 
10450
10608
  """Event data for a token's lifecycle."""
10451
10609
  union TokenLifecycleEventData = TokenBurnEventData | TokenMintEventData
10452
10610
 
10453
- """Input type of `TokenLifecycleEvents` query."""
10611
+ """Input type of `tokenLifecycleEvents` query."""
10454
10612
  input TokenLifecycleEventsQueryInput {
10455
10613
  """The token contract address to filter by."""
10456
10614
  address: String!
@@ -10575,18 +10733,22 @@ enum TokenRankingAttribute {
10575
10733
  createdAt
10576
10734
  lastTransaction
10577
10735
  age @deprecated(reason: "Use createdAt instead")
10736
+ buyCount5m
10578
10737
  buyCount1
10579
10738
  buyCount4
10580
10739
  buyCount12
10581
10740
  buyCount24
10741
+ change5m
10582
10742
  change1
10583
10743
  change4
10584
10744
  change12
10585
10745
  change24
10746
+ volumeChange5m
10586
10747
  volumeChange1
10587
10748
  volumeChange4
10588
10749
  volumeChange12
10589
10750
  volumeChange24
10751
+ high5m
10590
10752
  high1
10591
10753
  high4
10592
10754
  high12
@@ -10594,12 +10756,14 @@ enum TokenRankingAttribute {
10594
10756
  holders
10595
10757
  notableHolderCount
10596
10758
  liquidity
10759
+ low5m
10597
10760
  low1
10598
10761
  low4
10599
10762
  low12
10600
10763
  low24
10601
10764
  marketCap
10602
10765
  priceUSD
10766
+ sellCount5m
10603
10767
  sellCount1
10604
10768
  sellCount4
10605
10769
  sellCount12
@@ -10609,22 +10773,27 @@ enum TokenRankingAttribute {
10609
10773
  trendingScore4
10610
10774
  trendingScore12
10611
10775
  trendingScore24
10776
+ txnCount5m
10612
10777
  txnCount1
10613
10778
  txnCount4
10614
10779
  txnCount12
10615
10780
  txnCount24
10781
+ uniqueBuys5m
10616
10782
  uniqueBuys1
10617
10783
  uniqueBuys4
10618
10784
  uniqueBuys12
10619
10785
  uniqueBuys24
10786
+ uniqueSells5m
10620
10787
  uniqueSells1
10621
10788
  uniqueSells4
10622
10789
  uniqueSells12
10623
10790
  uniqueSells24
10791
+ uniqueTransactions5m
10624
10792
  uniqueTransactions1
10625
10793
  uniqueTransactions4
10626
10794
  uniqueTransactions12
10627
10795
  uniqueTransactions24
10796
+ volume5m
10628
10797
  volume1
10629
10798
  volume4
10630
10799
  volume12
@@ -10940,29 +11109,18 @@ type UnconfirmedSwapEventData {
10940
11109
 
10941
11110
  """The type of token event, `Swap`."""
10942
11111
  type: EventType!
10943
- }
10944
11112
 
10945
- type UniV3Tick {
10946
- tick: Int
10947
- liquidityNet: String
10948
- price0: String
10949
- price1: String
11113
+ """The amount of `baseToken` involved in the swap"""
11114
+ amountBaseToken: String
10950
11115
  }
10951
11116
 
10952
- """Response returned by `getUniV3Ticks`."""
10953
- type UniV3TickConnection {
10954
- """The list of Uni V3 ticks matching the filter parameters."""
10955
- results: [UniV3Tick]
10956
-
10957
- """The number of ticks returned."""
10958
- count: Int
11117
+ scalar Void
10959
11118
 
10960
- """Where in the list the server started when returning items."""
10961
- offset: Int
11119
+ type WalletChartRange {
11120
+ start: Int!
11121
+ end: Int!
10962
11122
  }
10963
11123
 
10964
- scalar Void
10965
-
10966
11124
  type WalletNftCollection {
10967
11125
  """The address of the wallet."""
10968
11126
  walletAddress: String!