@codex-data/sdk 1.0.3 → 1.0.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.
Files changed (72) hide show
  1. package/dist/resources/generated_queries/Balances.graphql +2 -0
  2. package/dist/resources/generated_queries/FilterTokens.graphql +11 -0
  3. package/dist/resources/generated_queries/GetBars.graphql +143 -0
  4. package/dist/resources/generated_queries/Holders.graphql +2 -0
  5. package/dist/resources/generated_queries/PairMetadata.graphql +4 -0
  6. package/dist/resources/generated_queries/PrimeHolders.graphql +2 -0
  7. package/dist/resources/generated_subscriptions/OnHoldersUpdated.graphql +17 -0
  8. package/dist/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +4 -0
  9. package/dist/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +1 -0
  10. package/dist/resources/graphql.d.ts +207 -113
  11. package/dist/resources/graphql.d.ts.map +1 -1
  12. package/dist/resources/graphql.js +26 -2
  13. package/dist/resources/graphql.js.map +1 -1
  14. package/dist/resources/graphql.schema.json +1031 -764
  15. package/dist/resources/graphql.ts +213 -128
  16. package/dist/resources/schema.graphql +312 -158
  17. package/dist/sdk/Mutation.d.ts +2 -2
  18. package/dist/sdk/Mutation.d.ts.map +1 -1
  19. package/dist/sdk/Mutation.js +2 -2
  20. package/dist/sdk/Mutation.js.map +1 -1
  21. package/dist/sdk/Query.d.ts +50 -59
  22. package/dist/sdk/Query.d.ts.map +1 -1
  23. package/dist/sdk/Query.js +49 -58
  24. package/dist/sdk/Query.js.map +1 -1
  25. package/dist/sdk/Subscribe.d.ts +13 -12
  26. package/dist/sdk/Subscribe.d.ts.map +1 -1
  27. package/dist/sdk/Subscribe.js +86 -79
  28. package/dist/sdk/Subscribe.js.map +1 -1
  29. package/dist/sdk/generated/gql.d.ts +24 -91
  30. package/dist/sdk/generated/gql.d.ts.map +1 -1
  31. package/dist/sdk/generated/gql.js +9 -17
  32. package/dist/sdk/generated/gql.js.map +1 -1
  33. package/dist/sdk/generated/graphql.d.ts +476 -494
  34. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  35. package/dist/sdk/generated/graphql.js +37 -21
  36. package/dist/sdk/generated/graphql.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/resources/generated_queries/Balances.graphql +2 -0
  39. package/src/resources/generated_queries/FilterTokens.graphql +11 -0
  40. package/src/resources/generated_queries/GetBars.graphql +143 -0
  41. package/src/resources/generated_queries/Holders.graphql +2 -0
  42. package/src/resources/generated_queries/PairMetadata.graphql +4 -0
  43. package/src/resources/generated_queries/PrimeHolders.graphql +2 -0
  44. package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +17 -0
  45. package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +4 -0
  46. package/src/resources/generated_subscriptions/OnUnconfirmedEventsCreated.graphql +1 -0
  47. package/src/resources/graphql.schema.json +1031 -764
  48. package/src/resources/graphql.ts +213 -128
  49. package/src/resources/schema.graphql +312 -158
  50. package/src/sdk/Mutation.ts +4 -4
  51. package/src/sdk/Query.ts +105 -141
  52. package/src/sdk/Subscribe.ts +125 -110
  53. package/src/sdk/generated/gql.ts +21 -61
  54. package/src/sdk/generated/graphql.ts +241 -227
  55. package/dist/resources/generated_queries/BackfillWalletState.graphql +0 -3
  56. package/dist/resources/generated_queries/GetLatestPairs.graphql +0 -57
  57. package/dist/resources/generated_queries/GetParallelAssets.graphql +0 -50
  58. package/dist/resources/generated_queries/GetTokenCount.graphql +0 -3
  59. package/dist/resources/generated_queries/GetTokenInfo.graphql +0 -18
  60. package/dist/resources/generated_queries/GetTokensInfo.graphql +0 -18
  61. package/dist/resources/generated_queries/GetUniV3Ticks.graphql +0 -22
  62. package/dist/resources/generated_queries/ListFavoriteTokens.graphql +0 -59
  63. package/dist/resources/generated_queries/PrimeBalance.graphql +0 -12
  64. package/src/resources/generated_queries/BackfillWalletState.graphql +0 -3
  65. package/src/resources/generated_queries/GetLatestPairs.graphql +0 -57
  66. package/src/resources/generated_queries/GetParallelAssets.graphql +0 -50
  67. package/src/resources/generated_queries/GetTokenCount.graphql +0 -3
  68. package/src/resources/generated_queries/GetTokenInfo.graphql +0 -18
  69. package/src/resources/generated_queries/GetTokensInfo.graphql +0 -18
  70. package/src/resources/generated_queries/GetUniV3Ticks.graphql +0 -22
  71. package/src/resources/generated_queries/ListFavoriteTokens.graphql +0 -59
  72. 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!]!
@@ -130,6 +138,25 @@ type ApiToken {
130
138
  remaining: String
131
139
  }
132
140
 
141
+ type AptosNetworkConfig {
142
+ id: ID!
143
+ networkId: Int!
144
+ baseTokenAddress: String!
145
+ baseTokenSymbol: String!
146
+ color: String
147
+ defaultPairAddress: String!
148
+ defaultPairQuoteToken: QuoteToken!
149
+ enabled: Boolean!
150
+ newTokensEnabled: Boolean
151
+ mainnet: Boolean!
152
+ name: String!
153
+ networkIconUrl: String!
154
+ networkName: String!
155
+ networkShortName: String!
156
+ stableCoinAddresses: [String!]
157
+ wrappedBaseTokenSymbol: String!
158
+ }
159
+
133
160
  """Wallet balance of a token."""
134
161
  type Balance {
135
162
  """The ID of the wallet (`walletAddress:networkId`)."""
@@ -138,6 +165,12 @@ type Balance {
138
165
  """The ID of the token (`tokenAddress:networkId`)."""
139
166
  tokenId: String!
140
167
 
168
+ """The wallet address"""
169
+ address: String!
170
+
171
+ """The contract address of the token."""
172
+ tokenAddress: String!
173
+
141
174
  """The balance held by the wallet."""
142
175
  balance: String!
143
176
 
@@ -223,7 +256,7 @@ type BarsResponse {
223
256
  """The sell volume in USD"""
224
257
  sellVolume: [String]!
225
258
 
226
- """Liqudity in USD"""
259
+ """Liquidity in USD"""
227
260
  liquidity: [String]!
228
261
 
229
262
  """The number of traders"""
@@ -231,6 +264,9 @@ type BarsResponse {
231
264
 
232
265
  """The number of transactions"""
233
266
  transactions: [Int]!
267
+
268
+ """The pair that is being returned"""
269
+ pair: Pair!
234
270
  }
235
271
 
236
272
  """
@@ -1154,6 +1190,13 @@ type EnhancedToken {
1154
1190
  freezable: String
1155
1191
  }
1156
1192
 
1193
+ enum Entitlement {
1194
+ PriceFeed
1195
+ BalanceFeed
1196
+ TopTraders
1197
+ WalletStats
1198
+ }
1199
+
1157
1200
  """A token transaction."""
1158
1201
  type Event {
1159
1202
  """The contract address of the token's top pair."""
@@ -1701,14 +1744,31 @@ input GetGasEstimateInput {
1701
1744
 
1702
1745
  """Response returned by `getNetworkStats`."""
1703
1746
  type GetNetworkStatsResponse {
1747
+ """The network trade volume in USD over the past 24 hours."""
1704
1748
  volume24: Float!
1749
+
1750
+ """The network trade volume in USD over the past 12 hours."""
1705
1751
  volume12: Float!
1752
+
1753
+ """The network trade volume in USD over the past 4 hours."""
1706
1754
  volume4: Float!
1755
+
1756
+ """The network trade volume in USD over the past hour."""
1707
1757
  volume1: Float!
1758
+
1759
+ """The network liquidity in USD."""
1708
1760
  liquidity: Float!
1761
+
1762
+ """The unique number of transactions in the past 24 hours."""
1709
1763
  transactions24: Int!
1764
+
1765
+ """The unique number of transactions in the past 12 hours."""
1710
1766
  transactions12: Int!
1767
+
1768
+ """The unique number of transactions in the past 4 hours."""
1711
1769
  transactions4: Int!
1770
+
1771
+ """The unique number of transactions in the past hour."""
1712
1772
  transactions1: Int!
1713
1773
  }
1714
1774
 
@@ -1812,11 +1872,12 @@ input HoldersInputSort {
1812
1872
  direction: RankingDirection
1813
1873
  }
1814
1874
 
1875
+ """Response returned by `holders`."""
1815
1876
  type HoldersResponse {
1816
- """The list wallets for a token."""
1877
+ """The list of wallets holding the token."""
1817
1878
  items: [Balance!]!
1818
1879
 
1819
- """the unique count of holders for the token."""
1880
+ """The unique count of holders for the token."""
1820
1881
  count: Int!
1821
1882
 
1822
1883
  """A cursor for use in pagination."""
@@ -1827,7 +1888,7 @@ type HoldersResponse {
1827
1888
  """
1828
1889
  status: HoldersStatus!
1829
1890
 
1830
- """What percentage of the total supply do the top 10 holders hold"""
1891
+ """What percentage of the total supply do the top 10 holders hold."""
1831
1892
  top10HoldersPercent: Float
1832
1893
  }
1833
1894
 
@@ -1841,6 +1902,24 @@ enum HoldersStatus {
1841
1902
  DISABLED
1842
1903
  }
1843
1904
 
1905
+ """Response returned by `onHoldersUpdated`."""
1906
+ type HoldersUpdate {
1907
+ """The number of different wallets holding the token."""
1908
+ holders: Int!
1909
+
1910
+ """The ID of the token (`tokenAddress:networkId`)."""
1911
+ tokenId: String!
1912
+
1913
+ """The token's contract address."""
1914
+ tokenAddress: String!
1915
+
1916
+ """The network ID that the token is deployed on."""
1917
+ networkId: Int!
1918
+
1919
+ """The list of wallets holding the token."""
1920
+ balances: [Balance!]!
1921
+ }
1922
+
1844
1923
  """Bar chart data."""
1845
1924
  type IndividualBarData {
1846
1925
  """The opening price."""
@@ -1885,7 +1964,7 @@ type IndividualBarData {
1885
1964
  """The sell volume in USD"""
1886
1965
  sellVolume: String!
1887
1966
 
1888
- """Liqudity in USD"""
1967
+ """Liquidity in USD"""
1889
1968
  liquidity: String!
1890
1969
 
1891
1970
  """The number of traders"""
@@ -2319,7 +2398,7 @@ input MakerEventsQueryInput {
2319
2398
  networkId: Int
2320
2399
 
2321
2400
  """docs: hide"""
2322
- quoteToken: QuoteToken
2401
+ quoteToken: QuoteToken @deprecated(reason: "Not used")
2323
2402
 
2324
2403
  """
2325
2404
  The total amount of `quoteToken` involved in the swap in USD (`amountNonLiquidityToken` x `priceUsd`).
@@ -6081,6 +6160,7 @@ enum OrderState {
6081
6160
  enum OrderType {
6082
6161
  MANUAL
6083
6162
  LIMIT
6163
+ LIMIT_STRATEGY
6084
6164
  }
6085
6165
 
6086
6166
  """Metadata for a token pair."""
@@ -6113,7 +6193,11 @@ type Pair {
6113
6193
 
6114
6194
  """The unix timestamp for the creation of the pair."""
6115
6195
  createdAt: Int
6196
+
6197
+ """Metadata for the first token in the pair."""
6116
6198
  token0Data: EnhancedToken
6199
+
6200
+ """Metadata for the second token in the pair."""
6117
6201
  token1Data: EnhancedToken
6118
6202
 
6119
6203
  """The pooled amounts of each token in the pair."""
@@ -6522,43 +6606,134 @@ input PairFilters {
6522
6606
  }
6523
6607
 
6524
6608
  type PairMetadata {
6609
+ """The exchange contract ID."""
6525
6610
  exchangeId: String
6611
+
6612
+ """The exchange fee for swaps."""
6526
6613
  fee: Int
6614
+
6615
+ """The ID for the pair (`address:networkId`)."""
6527
6616
  id: String!
6617
+
6618
+ """The token of interest within the pair. Can be `token0` or `token1`."""
6528
6619
  quoteToken: QuoteToken
6620
+
6621
+ """The network ID the pair is deployed on."""
6529
6622
  networkId: Int
6623
+
6624
+ """The total liquidity in the pair."""
6530
6625
  liquidity: String!
6626
+
6627
+ """
6628
+ The token with higher liquidity within the pair. Can be `token0` or `token1`.
6629
+ """
6531
6630
  liquidityToken: String
6631
+
6632
+ """
6633
+ The token with lower liquidity within the pair. Can be `token0` or `token1`.
6634
+ """
6532
6635
  nonLiquidityToken: String
6636
+
6637
+ """The contract address of the pair."""
6533
6638
  pairAddress: String!
6639
+
6640
+ """The type of statistics returned. Can be `FILTERED` or `UNFILTERED`"""
6534
6641
  statsType: TokenPairStatisticsType!
6642
+
6643
+ """The quote token price in USD."""
6535
6644
  price: String!
6645
+
6646
+ """The percent price change in the past 5 minutes. Decimal format."""
6536
6647
  priceChange5m: Float
6648
+
6649
+ """The percent price change in the past hour. Decimal format."""
6537
6650
  priceChange1: Float
6651
+
6652
+ """The percent price change in the past 4 hours. Decimal format."""
6538
6653
  priceChange4: Float
6654
+
6655
+ """The percent price change in the past 12 hours. Decimal format."""
6539
6656
  priceChange12: Float
6657
+
6658
+ """The percent price change in the past 24 hours. Decimal format."""
6540
6659
  priceChange24: Float
6660
+
6661
+ """The percent price change in the past week. Decimal format."""
6541
6662
  priceChange1w: Float
6663
+
6664
+ """
6665
+ The amount of required tick separation. Only applicable for pairs on UniswapV3.
6666
+ """
6542
6667
  tickSpacing: Int
6668
+
6669
+ """Pair metadata for the first token in the pair."""
6543
6670
  token0: PairMetadataToken!
6671
+
6672
+ """Pair metadata for the second token in the pair."""
6544
6673
  token1: PairMetadataToken!
6674
+
6675
+ """The trade volume in USD in the past hour."""
6545
6676
  volume1: String
6677
+
6678
+ """The trade volume in USD in the past 4 hours."""
6546
6679
  volume4: String
6680
+
6681
+ """The trade volume in USD in the past 12 hours."""
6547
6682
  volume12: String
6683
+
6684
+ """The trade volume in USD in the past 24 hours."""
6548
6685
  volume24: String
6686
+
6687
+ """The trade trade volume in USD in the past week."""
6549
6688
  volume1w: String
6689
+
6690
+ """The trade volume in USD in the past 5 minutes."""
6691
+ volume5m: String
6692
+
6693
+ """The highest price in USD in the past 5 minutes."""
6694
+ highPrice5m: String
6695
+
6696
+ """The highest price in USD in the past hour."""
6550
6697
  highPrice1: String
6698
+
6699
+ """The highest price in USD in the past 4 hours."""
6551
6700
  highPrice4: String
6701
+
6702
+ """The highest price in USD in the past 12 hours."""
6552
6703
  highPrice12: String
6704
+
6705
+ """The highest price in USD in the past 24 hours."""
6553
6706
  highPrice24: String
6707
+
6708
+ """The highest price in USD in the past week."""
6554
6709
  highPrice1w: String
6710
+
6711
+ """The lowest price in USD in the past 5 minutes."""
6712
+ lowPrice5m: String
6713
+
6714
+ """The lowest price in USD in the past hour."""
6555
6715
  lowPrice1: String
6716
+
6717
+ """The lowest price in USD in the past 12 hours."""
6556
6718
  lowPrice12: String
6719
+
6720
+ """The lowest price in USD in the past 24 hours."""
6557
6721
  lowPrice24: String
6722
+
6723
+ """The lowest price in USD in the past 4 hours."""
6558
6724
  lowPrice4: String
6725
+
6726
+ """The lowest price in USD in the past week."""
6559
6727
  lowPrice1w: String
6728
+
6729
+ """Token metadata for the first token in the pair."""
6560
6730
  enhancedToken0: EnhancedToken
6731
+
6732
+ """Token metadata for the second token in the pair."""
6561
6733
  enhancedToken1: EnhancedToken
6734
+
6735
+ """The unix timestamp for the creation of the pair."""
6736
+ createdAt: Int
6562
6737
  }
6563
6738
 
6564
6739
  type PairMetadataToken {
@@ -6640,47 +6815,6 @@ enum PairRankingAttribute {
6640
6815
  volumeUSD24
6641
6816
  }
6642
6817
 
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
6818
  """Response returned by `filterNftParallelAssets`."""
6685
6819
  type ParallelAssetFilterConnection {
6686
6820
  """The list of Parallel assets matching the filter parameters."""
@@ -6925,15 +7059,6 @@ enum ParallelAssetRankingAttribute {
6925
7059
  lastPriceNetworkBaseToken
6926
7060
  }
6927
7061
 
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
7062
  """Tracked changes made to a Parallel card."""
6938
7063
  type ParallelCardChange {
6939
7064
  """The token ID of the Parallel asset."""
@@ -7109,7 +7234,7 @@ type Price {
7109
7234
  priceUsd: Float!
7110
7235
 
7111
7236
  """The unix timestamp for the price."""
7112
- timestamp: Int!
7237
+ timestamp: Int
7113
7238
 
7114
7239
  """The pool that emitted the swap generating this price"""
7115
7240
  poolAddress: String!
@@ -7830,10 +7955,10 @@ type Query {
7830
7955
  """
7831
7956
  apiToken(token: String!): ApiToken!
7832
7957
 
7833
- """Returns a list of all networks supported on Defined."""
7958
+ """Returns a list of all networks supported on Codex."""
7834
7959
  getNetworks: [Network!]!
7835
7960
 
7836
- """Returns the status of a list of networks supported on Defined."""
7961
+ """Returns the status of a list of networks supported on Codex."""
7837
7962
  getNetworkStatus(
7838
7963
  """The list of network IDs."""
7839
7964
  networkIds: [Int!]!
@@ -8177,18 +8302,6 @@ type Query {
8177
8302
  contracts: [NftContractInput]
8178
8303
  ): [EnhancedNftContract]
8179
8304
 
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
8305
  """Returns a list of Parallel assets based on a variety of filters."""
8193
8306
  filterNftParallelAssets(
8194
8307
  """A set of filters to apply."""
@@ -8397,45 +8510,6 @@ type Query {
8397
8510
  offset: Int
8398
8511
  ): ExchangeFilterConnection
8399
8512
 
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
8513
  """Returns bucketed stats for a given token within a pair."""
8440
8514
  getDetailedStats(
8441
8515
  """The ID of the pair (`address:networkId`)."""
@@ -8506,7 +8580,9 @@ type Query {
8506
8580
  resolution: String
8507
8581
  ): [TokenWithMetadata!]
8508
8582
 
8509
- """Returns metadata for a given pair."""
8583
+ """
8584
+ Returns charting metadata for a given pair. Used for implementing a Trading View datafeed.
8585
+ """
8510
8586
  getSymbol(
8511
8587
  """The ID of the pair (`address:networkId`)."""
8512
8588
  symbol: String!
@@ -8517,7 +8593,7 @@ type Query {
8517
8593
  currencyCode: String
8518
8594
  ): SymbolResponse
8519
8595
 
8520
- """Returns metadata for a given network."""
8596
+ """Returns metadata for a given network supported on Codex."""
8521
8597
  getNetworkStats(
8522
8598
  """The network Id to filter by."""
8523
8599
  networkId: Int!
@@ -8584,7 +8660,7 @@ type Query {
8584
8660
  to: Int!
8585
8661
 
8586
8662
  """
8587
- The time frame for each candle. Available options are `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D` and `7D`.
8663
+ The time frame for each candle. Available options are `1`, `5`, `15`, `30`, `60`, `240`, `720`, `1D`, `7D`.
8588
8664
  """
8589
8665
  resolution: String!
8590
8666
 
@@ -8611,6 +8687,9 @@ type Query {
8611
8687
 
8612
8688
  """guarantees number of bars returned is at most this number"""
8613
8689
  countback: Int
8690
+
8691
+ """specify the type of symbol you want to fetch values for (TOKEN | POOL)"""
8692
+ symbolType: SymbolType
8614
8693
  ): BarsResponse
8615
8694
 
8616
8695
  """Returns a list of tokens matching a given query string."""
@@ -8637,7 +8716,9 @@ type Query {
8637
8716
  search: String!
8638
8717
  ): TokenSearchResponse @deprecated(reason: "This query is no longer supported and will not return up to date data. Use `filterTokens` instead.")
8639
8718
 
8640
- """What percent of the total supply do the top 10 holders of a token hold"""
8719
+ """
8720
+ Returns the percentage of a token’s total supply held collectively by its top 10 holders.
8721
+ """
8641
8722
  top10HoldersPercent(tokenId: String!): Float
8642
8723
 
8643
8724
  """Returns a list of decentralized exchange metadata."""
@@ -8681,14 +8762,14 @@ type Query {
8681
8762
  cursor: String
8682
8763
  ): TokenLifecycleEventConnection
8683
8764
 
8684
- """Find a single token by its address & network id."""
8765
+ """Returns a single token by its address & network id."""
8685
8766
  token(
8686
8767
  """Input for a token ID."""
8687
8768
  input: TokenInput!
8688
8769
  ): EnhancedToken!
8689
8770
 
8690
8771
  """
8691
- Find a list of tokens by their addresses & network id, with pagination.
8772
+ Returns a list of tokens by their addresses & network id, with pagination.
8692
8773
  """
8693
8774
  tokens(
8694
8775
  """A list of token ID input."""
@@ -8723,7 +8804,7 @@ type Query {
8723
8804
 
8724
8805
  """The cursor to use for pagination."""
8725
8806
  cursor: String
8726
- ): LatestPairConnection
8807
+ ): LatestPairConnection @deprecated(reason: "This query is longer supported. Instead use filterPairs with sort order on createdAt DESC")
8727
8808
 
8728
8809
  """Returns a list of pairs containing a given token."""
8729
8810
  listPairsForToken(
@@ -8737,20 +8818,6 @@ type Query {
8737
8818
  tokenAddress: String!
8738
8819
  ): [Pair]!
8739
8820
 
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
8821
  """Returns a list of pair metadata for a token."""
8755
8822
  listPairsWithMetadataForToken(
8756
8823
  """The maximum number of pairs to return."""
@@ -8784,9 +8851,6 @@ type Query {
8784
8851
  """
8785
8852
  cursor: String
8786
8853
  ): PrimeHolders!
8787
-
8788
- """Fetch the balance of a wallet holding PRIME on ethereum"""
8789
- primeBalance(walletAddress: String!): BalancesResponse!
8790
8854
  getLatestTokens(
8791
8855
  """
8792
8856
  The maximum number of tokens to return. Maximum number of tokens is 50.
@@ -8822,7 +8886,6 @@ type Query {
8822
8886
  """The network id of the pair."""
8823
8887
  networkId: Int!
8824
8888
  ): LiquidityMetadata
8825
- backfillWalletState: Boolean!
8826
8889
 
8827
8890
  """Returns community gathered notes."""
8828
8891
  getCommunityNotes(input: CommunityNotesInput): CommunityNotesResponse!
@@ -9489,9 +9552,21 @@ type Subscription {
9489
9552
  ): NftAsset
9490
9553
 
9491
9554
  """
9492
- Live streamed nft pool events for a given pool address or collection address
9555
+ Live streamed NFT pool events for a given pool address or collection address.
9493
9556
  """
9494
- onNftPoolEventsCreated(poolAddress: String, networkId: Int, collectionAddress: String, exchangeAddress: String): AddNftPoolEventsOutput
9557
+ onNftPoolEventsCreated(
9558
+ """The NFT pool address to filter by."""
9559
+ poolAddress: String
9560
+
9561
+ """The network ID to filter by."""
9562
+ networkId: Int
9563
+
9564
+ """The contract address of the NFT collection to filter by."""
9565
+ collectionAddress: String
9566
+
9567
+ """The contract address of the NFT AMM marketplace to filter by."""
9568
+ exchangeAddress: String
9569
+ ): AddNftPoolEventsOutput
9495
9570
 
9496
9571
  """Live-streamed bar chart data to track price changes over time."""
9497
9572
  onBarsUpdated(
@@ -9616,10 +9691,15 @@ type Subscription {
9616
9691
  ): EventLabel
9617
9692
  onSimulateTokenContract(contractAddress: String, networkId: Int!, simulationId: String): SimulateTokenContractResult!
9618
9693
 
9619
- """Live streamed events for a given token across all it's pools"""
9694
+ """Live-streamed events for a given token across all it's pools"""
9620
9695
  onTokenEventsCreated(input: OnTokenEventsCreatedInput!): AddTokenEventsOutput!
9621
9696
 
9622
- """Live-streamed token lifecycle events (mints and burns)"""
9697
+ """
9698
+ Live-streamed list of wallets that hold a given token. Also has the unique count of holders for that token.
9699
+ """
9700
+ onHoldersUpdated(tokenId: String!): HoldersUpdate
9701
+
9702
+ """Live-streamed token lifecycle events (mints and burns)."""
9623
9703
  onTokenLifecycleEventsCreated(
9624
9704
  """The token contract address."""
9625
9705
  address: String
@@ -9960,6 +10040,11 @@ type SymbolResponse {
9960
10040
  supported_resolutions: [String!]!
9961
10041
  }
9962
10042
 
10043
+ enum SymbolType {
10044
+ TOKEN
10045
+ POOL
10046
+ }
10047
+
9963
10048
  """Token burn event data."""
9964
10049
  type TokenBurnEventData {
9965
10050
  """The amount of tokens burned."""
@@ -9993,6 +10078,9 @@ type TokenFilterResult {
9993
10078
  lastTransaction: Int
9994
10079
  age: Int @deprecated(reason: "Age isn't supported - use createdAt instead")
9995
10080
 
10081
+ """The number of buys in the past 5 minutes."""
10082
+ buyCount5m: Int
10083
+
9996
10084
  """The number of buys in the past hour."""
9997
10085
  buyCount1: Int
9998
10086
 
@@ -10005,6 +10093,9 @@ type TokenFilterResult {
10005
10093
  """The number of buys in the past 4 hours."""
10006
10094
  buyCount4: Int
10007
10095
 
10096
+ """The percent price change in the past 5 minutes. Decimal format."""
10097
+ change5m: String
10098
+
10008
10099
  """The percent price change in the past hour. Decimal format."""
10009
10100
  change1: String
10010
10101
 
@@ -10017,6 +10108,9 @@ type TokenFilterResult {
10017
10108
  """The percent price change in the past 4 hours. Decimal format."""
10018
10109
  change4: String
10019
10110
 
10111
+ """The percent volume change in the past 5 minutes. Decimal format."""
10112
+ volumeChange5m: String
10113
+
10020
10114
  """The percent volume change in the past hour. Decimal format."""
10021
10115
  volumeChange1: String
10022
10116
 
@@ -10033,6 +10127,9 @@ type TokenFilterResult {
10033
10127
  exchanges: [Exchange]
10034
10128
  fdv: String @deprecated(reason: "FDV isn't supported - use marketCap instead")
10035
10129
 
10130
+ """The highest price in USD in the past 5 minutes."""
10131
+ high5m: String
10132
+
10036
10133
  """The highest price in USD in the past hour."""
10037
10134
  high1: String
10038
10135
 
@@ -10051,6 +10148,9 @@ type TokenFilterResult {
10051
10148
  """The token of interest. Can be `token0` or `token1`."""
10052
10149
  quoteToken: String
10053
10150
 
10151
+ """The lowest price in USD in the past 5 minutes."""
10152
+ low5m: String
10153
+
10054
10154
  """The lowest price in USD in the past hour."""
10055
10155
  low1: String
10056
10156
 
@@ -10074,6 +10174,9 @@ type TokenFilterResult {
10074
10174
  """The token price in USD."""
10075
10175
  priceUSD: String
10076
10176
 
10177
+ """The number of sells in the past 5 minutes."""
10178
+ sellCount5m: Int
10179
+
10077
10180
  """The number of sells in the past hour."""
10078
10181
  sellCount1: Int
10079
10182
 
@@ -10089,6 +10192,9 @@ type TokenFilterResult {
10089
10192
  """Metadata for the token."""
10090
10193
  token: EnhancedToken
10091
10194
 
10195
+ """The number of transactions in the past 5 minutes."""
10196
+ txnCount5m: Int
10197
+
10092
10198
  """The number of transactions in the past hour."""
10093
10199
  txnCount1: Int
10094
10200
 
@@ -10101,6 +10207,9 @@ type TokenFilterResult {
10101
10207
  """The number of transactions in the past 4 hours."""
10102
10208
  txnCount4: Int
10103
10209
 
10210
+ """The unique number of buys in the past 5 minutes."""
10211
+ uniqueBuys5m: Int
10212
+
10104
10213
  """The unique number of buys in the past hour."""
10105
10214
  uniqueBuys1: Int
10106
10215
 
@@ -10113,6 +10222,9 @@ type TokenFilterResult {
10113
10222
  """The unique number of buys in the past 4 hours."""
10114
10223
  uniqueBuys4: Int
10115
10224
 
10225
+ """The unique number of sells in the past 5 minutes."""
10226
+ uniqueSells5m: Int
10227
+
10116
10228
  """The unique number of sells in the past hour."""
10117
10229
  uniqueSells1: Int
10118
10230
 
@@ -10125,6 +10237,9 @@ type TokenFilterResult {
10125
10237
  """The unique number of sells in the past 4 hours."""
10126
10238
  uniqueSells4: Int
10127
10239
 
10240
+ """The unique number of transactions in the past 5 minutes."""
10241
+ uniqueTransactions5m: Int
10242
+
10128
10243
  """The unique number of transactions in the past hour."""
10129
10244
  uniqueTransactions1: Int
10130
10245
 
@@ -10140,6 +10255,9 @@ type TokenFilterResult {
10140
10255
  """The trade volume in USD in the past hour."""
10141
10256
  volume1: String
10142
10257
 
10258
+ """The trade volume in USD in the past 5 minutes."""
10259
+ volume5m: String
10260
+
10143
10261
  """The trade volume in USD in the past 12 hours."""
10144
10262
  volume12: String
10145
10263
 
@@ -10165,6 +10283,9 @@ input TokenFilters {
10165
10283
  lastTransaction: NumberFilter
10166
10284
  age: NumberFilter @deprecated(reason: "Age isn't supported - use createdAt instead")
10167
10285
 
10286
+ """The number of buys in the past 5 minutes."""
10287
+ buyCount5m: NumberFilter
10288
+
10168
10289
  """The number of buys in the past hour."""
10169
10290
  buyCount1: NumberFilter
10170
10291
 
@@ -10177,6 +10298,9 @@ input TokenFilters {
10177
10298
  """The number of buys in the past 4 hours."""
10178
10299
  buyCount4: NumberFilter
10179
10300
 
10301
+ """The percent price change in the past 5 minutes. Decimal format."""
10302
+ change5m: NumberFilter
10303
+
10180
10304
  """The percent price change in the past hour. Decimal format."""
10181
10305
  change1: NumberFilter
10182
10306
 
@@ -10189,6 +10313,9 @@ input TokenFilters {
10189
10313
  """The percent price change in the past 4 hours. Decimal format."""
10190
10314
  change4: NumberFilter
10191
10315
 
10316
+ """The percent volume change in the past 5 minutes. Decimal format."""
10317
+ volumeChange5m: NumberFilter
10318
+
10192
10319
  """The percent volume change in the past hour. Decimal format."""
10193
10320
  volumeChange1: NumberFilter
10194
10321
 
@@ -10210,6 +10337,9 @@ input TokenFilters {
10210
10337
  exchangeAddress: [String]
10211
10338
  fdv: NumberFilter @deprecated(reason: "FDV isn't supported - use marketCap instead")
10212
10339
 
10340
+ """The highest price in USD in the past 5 minutes."""
10341
+ high5m: NumberFilter
10342
+
10213
10343
  """The highest price in USD in the past hour."""
10214
10344
  high1: NumberFilter
10215
10345
 
@@ -10228,6 +10358,9 @@ input TokenFilters {
10228
10358
  """The lowest price in USD in the past hour."""
10229
10359
  low1: NumberFilter
10230
10360
 
10361
+ """The lowest price in USD in the past 5 minutes."""
10362
+ low5m: NumberFilter
10363
+
10231
10364
  """The lowest price in USD in the past 12 hours."""
10232
10365
  low12: NumberFilter
10233
10366
 
@@ -10257,6 +10390,9 @@ input TokenFilters {
10257
10390
  """The number of sells in the past hour."""
10258
10391
  sellCount1: NumberFilter
10259
10392
 
10393
+ """The number of sells in the past 5 minutes."""
10394
+ sellCount5m: NumberFilter
10395
+
10260
10396
  """The number of sells in the past 12 hours."""
10261
10397
  sellCount12: NumberFilter
10262
10398
 
@@ -10266,6 +10402,9 @@ input TokenFilters {
10266
10402
  """The number of sells in the past 4 hours."""
10267
10403
  sellCount4: NumberFilter
10268
10404
 
10405
+ """The number of transactions in the past 5 minutes."""
10406
+ txnCount5m: NumberFilter
10407
+
10269
10408
  """The number of transactions in the past hour."""
10270
10409
  txnCount1: NumberFilter
10271
10410
 
@@ -10281,6 +10420,9 @@ input TokenFilters {
10281
10420
  """The unique number of buys in the past hour."""
10282
10421
  uniqueBuys1: NumberFilter
10283
10422
 
10423
+ """The unique number of buys in the past 5 minutes."""
10424
+ uniqueBuys5m: NumberFilter
10425
+
10284
10426
  """The unique number of buys in the past 12 hours."""
10285
10427
  uniqueBuys12: NumberFilter
10286
10428
 
@@ -10290,6 +10432,9 @@ input TokenFilters {
10290
10432
  """The unique number of buys in the past 4 hours."""
10291
10433
  uniqueBuys4: NumberFilter
10292
10434
 
10435
+ """The unique number of sells in the past 5 minutes."""
10436
+ uniqueSells5m: NumberFilter
10437
+
10293
10438
  """The unique number of sells in the past hour."""
10294
10439
  uniqueSells1: NumberFilter
10295
10440
 
@@ -10305,6 +10450,9 @@ input TokenFilters {
10305
10450
  """The unique number of transactions in the past hour."""
10306
10451
  uniqueTransactions1: NumberFilter
10307
10452
 
10453
+ """The unique number of transactions in the past 5 minutes."""
10454
+ uniqueTransactions5m: NumberFilter
10455
+
10308
10456
  """The unique number of transactions in the past 12 hours."""
10309
10457
  uniqueTransactions12: NumberFilter
10310
10458
 
@@ -10326,6 +10474,9 @@ input TokenFilters {
10326
10474
  """The trade volume in USD in the past 4 hours."""
10327
10475
  volume4: NumberFilter
10328
10476
 
10477
+ """The trade volume in USD in the past 5 minutes."""
10478
+ volume5m: NumberFilter
10479
+
10329
10480
  """
10330
10481
  Whether to include tokens that have been flagged as scams. Default: false
10331
10482
  """
@@ -10441,16 +10592,19 @@ type TokenLifecycleEvent {
10441
10592
  data: TokenLifecycleEventData!
10442
10593
  }
10443
10594
 
10444
- """Response returned by `TokenLifecycleEvents`."""
10595
+ """Response returned by `tokenLifecycleEvents`."""
10445
10596
  type TokenLifecycleEventConnection {
10597
+ """A list of transactions for a token's top pair."""
10446
10598
  items: [TokenLifecycleEvent]!
10599
+
10600
+ """A cursor for use in pagination."""
10447
10601
  cursor: String
10448
10602
  }
10449
10603
 
10450
10604
  """Event data for a token's lifecycle."""
10451
10605
  union TokenLifecycleEventData = TokenBurnEventData | TokenMintEventData
10452
10606
 
10453
- """Input type of `TokenLifecycleEvents` query."""
10607
+ """Input type of `tokenLifecycleEvents` query."""
10454
10608
  input TokenLifecycleEventsQueryInput {
10455
10609
  """The token contract address to filter by."""
10456
10610
  address: String!
@@ -10575,18 +10729,22 @@ enum TokenRankingAttribute {
10575
10729
  createdAt
10576
10730
  lastTransaction
10577
10731
  age @deprecated(reason: "Use createdAt instead")
10732
+ buyCount5m
10578
10733
  buyCount1
10579
10734
  buyCount4
10580
10735
  buyCount12
10581
10736
  buyCount24
10737
+ change5m
10582
10738
  change1
10583
10739
  change4
10584
10740
  change12
10585
10741
  change24
10742
+ volumeChange5m
10586
10743
  volumeChange1
10587
10744
  volumeChange4
10588
10745
  volumeChange12
10589
10746
  volumeChange24
10747
+ high5m
10590
10748
  high1
10591
10749
  high4
10592
10750
  high12
@@ -10594,12 +10752,14 @@ enum TokenRankingAttribute {
10594
10752
  holders
10595
10753
  notableHolderCount
10596
10754
  liquidity
10755
+ low5m
10597
10756
  low1
10598
10757
  low4
10599
10758
  low12
10600
10759
  low24
10601
10760
  marketCap
10602
10761
  priceUSD
10762
+ sellCount5m
10603
10763
  sellCount1
10604
10764
  sellCount4
10605
10765
  sellCount12
@@ -10609,22 +10769,27 @@ enum TokenRankingAttribute {
10609
10769
  trendingScore4
10610
10770
  trendingScore12
10611
10771
  trendingScore24
10772
+ txnCount5m
10612
10773
  txnCount1
10613
10774
  txnCount4
10614
10775
  txnCount12
10615
10776
  txnCount24
10777
+ uniqueBuys5m
10616
10778
  uniqueBuys1
10617
10779
  uniqueBuys4
10618
10780
  uniqueBuys12
10619
10781
  uniqueBuys24
10782
+ uniqueSells5m
10620
10783
  uniqueSells1
10621
10784
  uniqueSells4
10622
10785
  uniqueSells12
10623
10786
  uniqueSells24
10787
+ uniqueTransactions5m
10624
10788
  uniqueTransactions1
10625
10789
  uniqueTransactions4
10626
10790
  uniqueTransactions12
10627
10791
  uniqueTransactions24
10792
+ volume5m
10628
10793
  volume1
10629
10794
  volume4
10630
10795
  volume12
@@ -10940,29 +11105,18 @@ type UnconfirmedSwapEventData {
10940
11105
 
10941
11106
  """The type of token event, `Swap`."""
10942
11107
  type: EventType!
10943
- }
10944
11108
 
10945
- type UniV3Tick {
10946
- tick: Int
10947
- liquidityNet: String
10948
- price0: String
10949
- price1: String
11109
+ """The amount of `baseToken` involved in the swap"""
11110
+ amountBaseToken: String
10950
11111
  }
10951
11112
 
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
11113
+ scalar Void
10959
11114
 
10960
- """Where in the list the server started when returning items."""
10961
- offset: Int
11115
+ type WalletChartRange {
11116
+ start: Int!
11117
+ end: Int!
10962
11118
  }
10963
11119
 
10964
- scalar Void
10965
-
10966
11120
  type WalletNftCollection {
10967
11121
  """The address of the wallet."""
10968
11122
  walletAddress: String!