@coingecko/coingecko-typescript 2.3.0 → 3.0.0

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 (202) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/LICENSE +1 -1
  3. package/README.md +23 -10
  4. package/client.d.mts +4 -3
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +4 -3
  7. package/client.d.ts.map +1 -1
  8. package/client.js +15 -2
  9. package/client.js.map +1 -1
  10. package/client.mjs +15 -2
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/coins/circulating-supply-chart.d.mts +1 -1
  20. package/resources/coins/circulating-supply-chart.d.mts.map +1 -1
  21. package/resources/coins/circulating-supply-chart.d.ts +1 -1
  22. package/resources/coins/circulating-supply-chart.d.ts.map +1 -1
  23. package/resources/coins/coins.d.mts +158 -1
  24. package/resources/coins/coins.d.mts.map +1 -1
  25. package/resources/coins/coins.d.ts +158 -1
  26. package/resources/coins/coins.d.ts.map +1 -1
  27. package/resources/coins/coins.js.map +1 -1
  28. package/resources/coins/coins.mjs.map +1 -1
  29. package/resources/coins/contract/contract.d.mts +9 -1
  30. package/resources/coins/contract/contract.d.mts.map +1 -1
  31. package/resources/coins/contract/contract.d.ts +9 -1
  32. package/resources/coins/contract/contract.d.ts.map +1 -1
  33. package/resources/coins/contract/contract.js.map +1 -1
  34. package/resources/coins/contract/contract.mjs.map +1 -1
  35. package/resources/coins/contract/market-chart.d.mts +5 -1
  36. package/resources/coins/contract/market-chart.d.mts.map +1 -1
  37. package/resources/coins/contract/market-chart.d.ts +5 -1
  38. package/resources/coins/contract/market-chart.d.ts.map +1 -1
  39. package/resources/coins/contract/market-chart.js +5 -1
  40. package/resources/coins/contract/market-chart.js.map +1 -1
  41. package/resources/coins/contract/market-chart.mjs +5 -1
  42. package/resources/coins/contract/market-chart.mjs.map +1 -1
  43. package/resources/coins/history.d.mts +1 -1
  44. package/resources/coins/history.d.ts +1 -1
  45. package/resources/coins/market-chart.d.mts +5 -1
  46. package/resources/coins/market-chart.d.mts.map +1 -1
  47. package/resources/coins/market-chart.d.ts +5 -1
  48. package/resources/coins/market-chart.d.ts.map +1 -1
  49. package/resources/coins/market-chart.js +5 -1
  50. package/resources/coins/market-chart.js.map +1 -1
  51. package/resources/coins/market-chart.mjs +5 -1
  52. package/resources/coins/market-chart.mjs.map +1 -1
  53. package/resources/coins/markets.d.mts +9 -0
  54. package/resources/coins/markets.d.mts.map +1 -1
  55. package/resources/coins/markets.d.ts +9 -0
  56. package/resources/coins/markets.d.ts.map +1 -1
  57. package/resources/coins/tickers.d.mts +1 -1
  58. package/resources/coins/tickers.d.mts.map +1 -1
  59. package/resources/coins/tickers.d.ts +1 -1
  60. package/resources/coins/tickers.d.ts.map +1 -1
  61. package/resources/exchanges/exchanges.d.mts +3 -3
  62. package/resources/exchanges/exchanges.d.mts.map +1 -1
  63. package/resources/exchanges/exchanges.d.ts +3 -3
  64. package/resources/exchanges/exchanges.d.ts.map +1 -1
  65. package/resources/exchanges/tickers.d.mts +1 -1
  66. package/resources/exchanges/tickers.d.mts.map +1 -1
  67. package/resources/exchanges/tickers.d.ts +1 -1
  68. package/resources/exchanges/tickers.d.ts.map +1 -1
  69. package/resources/global/global.d.mts +4 -0
  70. package/resources/global/global.d.mts.map +1 -1
  71. package/resources/global/global.d.ts +4 -0
  72. package/resources/global/global.d.ts.map +1 -1
  73. package/resources/global/global.js.map +1 -1
  74. package/resources/global/global.mjs.map +1 -1
  75. package/resources/index.d.mts +1 -1
  76. package/resources/index.d.mts.map +1 -1
  77. package/resources/index.d.ts +1 -1
  78. package/resources/index.d.ts.map +1 -1
  79. package/resources/index.js.map +1 -1
  80. package/resources/index.mjs.map +1 -1
  81. package/resources/key.d.mts +10 -0
  82. package/resources/key.d.mts.map +1 -1
  83. package/resources/key.d.ts +10 -0
  84. package/resources/key.d.ts.map +1 -1
  85. package/resources/onchain/networks/dexes.d.mts +8 -0
  86. package/resources/onchain/networks/dexes.d.mts.map +1 -1
  87. package/resources/onchain/networks/dexes.d.ts +8 -0
  88. package/resources/onchain/networks/dexes.d.ts.map +1 -1
  89. package/resources/onchain/networks/new-pools.d.mts +16 -0
  90. package/resources/onchain/networks/new-pools.d.mts.map +1 -1
  91. package/resources/onchain/networks/new-pools.d.ts +16 -0
  92. package/resources/onchain/networks/new-pools.d.ts.map +1 -1
  93. package/resources/onchain/networks/pools/info.d.mts +2 -0
  94. package/resources/onchain/networks/pools/info.d.mts.map +1 -1
  95. package/resources/onchain/networks/pools/info.d.ts +2 -0
  96. package/resources/onchain/networks/pools/info.d.ts.map +1 -1
  97. package/resources/onchain/networks/pools/pools.d.mts +8 -0
  98. package/resources/onchain/networks/pools/pools.d.mts.map +1 -1
  99. package/resources/onchain/networks/pools/pools.d.ts +8 -0
  100. package/resources/onchain/networks/pools/pools.d.ts.map +1 -1
  101. package/resources/onchain/networks/pools/pools.js.map +1 -1
  102. package/resources/onchain/networks/pools/pools.mjs.map +1 -1
  103. package/resources/onchain/networks/tokens/index.d.mts +1 -0
  104. package/resources/onchain/networks/tokens/index.d.mts.map +1 -1
  105. package/resources/onchain/networks/tokens/index.d.ts +1 -0
  106. package/resources/onchain/networks/tokens/index.d.ts.map +1 -1
  107. package/resources/onchain/networks/tokens/index.js +3 -1
  108. package/resources/onchain/networks/tokens/index.js.map +1 -1
  109. package/resources/onchain/networks/tokens/index.mjs +1 -0
  110. package/resources/onchain/networks/tokens/index.mjs.map +1 -1
  111. package/resources/onchain/networks/tokens/info.d.mts +2 -0
  112. package/resources/onchain/networks/tokens/info.d.mts.map +1 -1
  113. package/resources/onchain/networks/tokens/info.d.ts +2 -0
  114. package/resources/onchain/networks/tokens/info.d.ts.map +1 -1
  115. package/resources/onchain/networks/tokens/multi.d.mts +6 -0
  116. package/resources/onchain/networks/tokens/multi.d.mts.map +1 -1
  117. package/resources/onchain/networks/tokens/multi.d.ts +6 -0
  118. package/resources/onchain/networks/tokens/multi.d.ts.map +1 -1
  119. package/resources/onchain/networks/tokens/ohlcv.d.mts +5 -0
  120. package/resources/onchain/networks/tokens/ohlcv.d.mts.map +1 -1
  121. package/resources/onchain/networks/tokens/ohlcv.d.ts +5 -0
  122. package/resources/onchain/networks/tokens/ohlcv.d.ts.map +1 -1
  123. package/resources/onchain/networks/tokens/pools.d.mts +14 -0
  124. package/resources/onchain/networks/tokens/pools.d.mts.map +1 -1
  125. package/resources/onchain/networks/tokens/pools.d.ts +14 -0
  126. package/resources/onchain/networks/tokens/pools.d.ts.map +1 -1
  127. package/resources/onchain/networks/tokens/tokens.d.mts +10 -0
  128. package/resources/onchain/networks/tokens/tokens.d.mts.map +1 -1
  129. package/resources/onchain/networks/tokens/tokens.d.ts +10 -0
  130. package/resources/onchain/networks/tokens/tokens.d.ts.map +1 -1
  131. package/resources/onchain/networks/tokens/tokens.js +4 -0
  132. package/resources/onchain/networks/tokens/tokens.js.map +1 -1
  133. package/resources/onchain/networks/tokens/tokens.mjs +4 -0
  134. package/resources/onchain/networks/tokens/tokens.mjs.map +1 -1
  135. package/resources/onchain/networks/tokens/top-holders.d.mts +12 -0
  136. package/resources/onchain/networks/tokens/top-holders.d.mts.map +1 -1
  137. package/resources/onchain/networks/tokens/top-holders.d.ts +12 -0
  138. package/resources/onchain/networks/tokens/top-holders.d.ts.map +1 -1
  139. package/resources/onchain/networks/tokens/top-traders.d.mts +77 -0
  140. package/resources/onchain/networks/tokens/top-traders.d.mts.map +1 -0
  141. package/resources/onchain/networks/tokens/top-traders.d.ts +77 -0
  142. package/resources/onchain/networks/tokens/top-traders.d.ts.map +1 -0
  143. package/resources/onchain/networks/tokens/top-traders.js +30 -0
  144. package/resources/onchain/networks/tokens/top-traders.js.map +1 -0
  145. package/resources/onchain/networks/tokens/top-traders.mjs +26 -0
  146. package/resources/onchain/networks/tokens/top-traders.mjs.map +1 -0
  147. package/resources/onchain/networks/trending-pools.d.mts +16 -0
  148. package/resources/onchain/networks/trending-pools.d.mts.map +1 -1
  149. package/resources/onchain/networks/trending-pools.d.ts +16 -0
  150. package/resources/onchain/networks/trending-pools.d.ts.map +1 -1
  151. package/resources/onchain/pools/megafilter.d.mts +13 -1
  152. package/resources/onchain/pools/megafilter.d.mts.map +1 -1
  153. package/resources/onchain/pools/megafilter.d.ts +13 -1
  154. package/resources/onchain/pools/megafilter.d.ts.map +1 -1
  155. package/resources/onchain/simple/networks/token-price.d.mts +20 -0
  156. package/resources/onchain/simple/networks/token-price.d.mts.map +1 -1
  157. package/resources/onchain/simple/networks/token-price.d.ts +20 -0
  158. package/resources/onchain/simple/networks/token-price.d.ts.map +1 -1
  159. package/resources/public-treasury.d.mts +286 -31
  160. package/resources/public-treasury.d.mts.map +1 -1
  161. package/resources/public-treasury.d.ts +286 -31
  162. package/resources/public-treasury.d.ts.map +1 -1
  163. package/resources/public-treasury.js +39 -4
  164. package/resources/public-treasury.js.map +1 -1
  165. package/resources/public-treasury.mjs +39 -4
  166. package/resources/public-treasury.mjs.map +1 -1
  167. package/src/client.ts +29 -4
  168. package/src/internal/parse.ts +6 -0
  169. package/src/resources/coins/circulating-supply-chart.ts +1 -1
  170. package/src/resources/coins/coins.ts +193 -1
  171. package/src/resources/coins/contract/contract.ts +11 -1
  172. package/src/resources/coins/contract/market-chart.ts +5 -1
  173. package/src/resources/coins/history.ts +1 -1
  174. package/src/resources/coins/market-chart.ts +5 -1
  175. package/src/resources/coins/markets.ts +11 -0
  176. package/src/resources/coins/tickers.ts +1 -1
  177. package/src/resources/exchanges/exchanges.ts +3 -3
  178. package/src/resources/exchanges/tickers.ts +1 -1
  179. package/src/resources/global/global.ts +5 -0
  180. package/src/resources/index.ts +5 -0
  181. package/src/resources/key.ts +12 -0
  182. package/src/resources/onchain/networks/dexes.ts +12 -0
  183. package/src/resources/onchain/networks/new-pools.ts +24 -0
  184. package/src/resources/onchain/networks/pools/info.ts +4 -0
  185. package/src/resources/onchain/networks/pools/pools.ts +12 -0
  186. package/src/resources/onchain/networks/tokens/index.ts +1 -0
  187. package/src/resources/onchain/networks/tokens/info.ts +4 -0
  188. package/src/resources/onchain/networks/tokens/multi.ts +8 -0
  189. package/src/resources/onchain/networks/tokens/ohlcv.ts +6 -0
  190. package/src/resources/onchain/networks/tokens/pools.ts +20 -0
  191. package/src/resources/onchain/networks/tokens/tokens.ts +18 -0
  192. package/src/resources/onchain/networks/tokens/top-holders.ts +21 -0
  193. package/src/resources/onchain/networks/tokens/top-traders.ts +116 -0
  194. package/src/resources/onchain/networks/trending-pools.ts +24 -0
  195. package/src/resources/onchain/pools/megafilter.ts +19 -0
  196. package/src/resources/onchain/simple/networks/token-price.ts +16 -0
  197. package/src/resources/public-treasury.ts +386 -35
  198. package/src/version.ts +1 -1
  199. package/version.d.mts +1 -1
  200. package/version.d.ts +1 -1
  201. package/version.js +1 -1
  202. package/version.mjs +1 -1
@@ -13,6 +13,8 @@ import * as PoolsAPI from './pools';
13
13
  import { PoolGetParams, PoolGetResponse, Pools } from './pools';
14
14
  import * as TopHoldersAPI from './top-holders';
15
15
  import { TopHolderGetParams, TopHolderGetResponse, TopHolders } from './top-holders';
16
+ import * as TopTradersAPI from './top-traders';
17
+ import { TopTraderGetParams, TopTraderGetResponse, TopTraders } from './top-traders';
16
18
  import * as TradesAPI from './trades';
17
19
  import { TradeGetParams, TradeGetResponse, Trades } from './trades';
18
20
  import { APIPromise } from '../../../../core/api-promise';
@@ -27,6 +29,7 @@ export class Tokens extends APIResource {
27
29
  ohlcv: OhlcvAPI.Ohlcv = new OhlcvAPI.Ohlcv(this._client);
28
30
  pools: PoolsAPI.Pools = new PoolsAPI.Pools(this._client);
29
31
  trades: TradesAPI.Trades = new TradesAPI.Trades(this._client);
32
+ topTraders: TopTradersAPI.TopTraders = new TopTradersAPI.TopTraders(this._client);
30
33
 
31
34
  /**
32
35
  * This endpoint allows you to **query specific token data based on the provided
@@ -80,6 +83,8 @@ export namespace TokenGetAddressResponse {
80
83
 
81
84
  image_url?: string;
82
85
 
86
+ last_trade_timestamp?: number;
87
+
83
88
  market_cap_usd?: string;
84
89
 
85
90
  name?: string;
@@ -344,6 +349,12 @@ export interface TokenGetAddressParams {
344
349
  * Query param: include pool composition, default: false
345
350
  */
346
351
  include_composition?: boolean;
352
+
353
+ /**
354
+ * Query param: include token data from inactive pools using the most recent swap,
355
+ * default: false
356
+ */
357
+ include_inactive_source?: boolean;
347
358
  }
348
359
 
349
360
  Tokens.Multi = Multi;
@@ -353,6 +364,7 @@ Tokens.HoldersChart = HoldersChart;
353
364
  Tokens.Ohlcv = Ohlcv;
354
365
  Tokens.Pools = Pools;
355
366
  Tokens.Trades = Trades;
367
+ Tokens.TopTraders = TopTraders;
356
368
 
357
369
  export declare namespace Tokens {
358
370
  export {
@@ -393,4 +405,10 @@ export declare namespace Tokens {
393
405
  type TradeGetResponse as TradeGetResponse,
394
406
  type TradeGetParams as TradeGetParams,
395
407
  };
408
+
409
+ export {
410
+ TopTraders as TopTraders,
411
+ type TopTraderGetResponse as TopTraderGetResponse,
412
+ type TopTraderGetParams as TopTraderGetParams,
413
+ };
396
414
  }
@@ -58,12 +58,28 @@ export namespace TopHolderGetResponse {
58
58
 
59
59
  amount?: string;
60
60
 
61
+ average_buy_price_usd?: string;
62
+
63
+ explorer_url?: string;
64
+
61
65
  label?: string;
62
66
 
63
67
  percentage?: string;
64
68
 
65
69
  rank?: number;
66
70
 
71
+ realized_pnl_percentage?: string;
72
+
73
+ realized_pnl_usd?: string;
74
+
75
+ total_buy_count?: number;
76
+
77
+ total_sell_count?: number;
78
+
79
+ unrealized_pnl_percentage?: string;
80
+
81
+ unrealized_pnl_usd?: string;
82
+
67
83
  value?: string;
68
84
  }
69
85
  }
@@ -81,6 +97,11 @@ export interface TopHolderGetParams {
81
97
  * `max` Default value: 10
82
98
  */
83
99
  holders?: string;
100
+
101
+ /**
102
+ * Query param: include PnL details for token holders, default: false
103
+ */
104
+ include_pnl_details?: boolean;
84
105
  }
85
106
 
86
107
  export declare namespace TopHolders {
@@ -0,0 +1,116 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../core/resource';
4
+ import { APIPromise } from '../../../../core/api-promise';
5
+ import { RequestOptions } from '../../../../internal/request-options';
6
+ import { path } from '../../../../internal/utils/path';
7
+
8
+ export class TopTraders extends APIResource {
9
+ /**
10
+ * This endpoint allows you to **query top token traders based on the provided
11
+ * token contract address on a network**
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const topTrader =
16
+ * await client.onchain.networks.tokens.topTraders.get(
17
+ * '0x6921b130d297cc43754afba22e5eac0fbf8db75b',
18
+ * { network_id: 'base' },
19
+ * );
20
+ * ```
21
+ */
22
+ get(
23
+ tokenAddress: string,
24
+ params: TopTraderGetParams,
25
+ options?: RequestOptions,
26
+ ): APIPromise<TopTraderGetResponse> {
27
+ const { network_id, ...query } = params;
28
+ return this._client.get(path`/onchain/networks/${network_id}/tokens/${tokenAddress}/top_traders`, {
29
+ query,
30
+ ...options,
31
+ });
32
+ }
33
+ }
34
+
35
+ export interface TopTraderGetResponse {
36
+ data?: TopTraderGetResponse.Data;
37
+ }
38
+
39
+ export namespace TopTraderGetResponse {
40
+ export interface Data {
41
+ id?: string;
42
+
43
+ attributes?: Data.Attributes;
44
+
45
+ type?: string;
46
+ }
47
+
48
+ export namespace Data {
49
+ export interface Attributes {
50
+ traders?: Array<Attributes.Trader>;
51
+ }
52
+
53
+ export namespace Attributes {
54
+ export interface Trader {
55
+ address?: string;
56
+
57
+ average_buy_price_usd?: string;
58
+
59
+ average_sell_price_usd?: string;
60
+
61
+ explorer_url?: string;
62
+
63
+ label?: string;
64
+
65
+ name?: string;
66
+
67
+ realized_pnl_usd?: string;
68
+
69
+ token_balance?: string;
70
+
71
+ total_buy_count?: number;
72
+
73
+ total_buy_token_amount?: string;
74
+
75
+ total_buy_usd?: string;
76
+
77
+ total_sell_count?: number;
78
+
79
+ total_sell_token_amount?: string;
80
+
81
+ total_sell_usd?: string;
82
+
83
+ type?: string;
84
+
85
+ unrealized_pnl_usd?: string;
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
+ export interface TopTraderGetParams {
92
+ /**
93
+ * Path param: network ID \*refers to [/networks](/reference/networks-list)
94
+ */
95
+ network_id: string;
96
+
97
+ /**
98
+ * Query param: include address label data, default: false
99
+ */
100
+ include_address_label?: boolean;
101
+
102
+ /**
103
+ * Query param: sort the traders by field Default value: realized_pnl_usd_desc
104
+ */
105
+ sort?: 'realized_pnl_usd_desc' | 'unrealized_pnl_usd_desc' | 'total_buy_usd_desc' | 'total_sell_usd_desc';
106
+
107
+ /**
108
+ * Query param: number of top token traders to return, you may use any integer or
109
+ * `max` Default value: 10
110
+ */
111
+ traders?: string;
112
+ }
113
+
114
+ export declare namespace TopTraders {
115
+ export { type TopTraderGetResponse as TopTraderGetResponse, type TopTraderGetParams as TopTraderGetParams };
116
+ }
@@ -71,6 +71,8 @@ export namespace TrendingPoolGetResponse {
71
71
 
72
72
  base_token_price_usd?: string;
73
73
 
74
+ community_sus_report?: number;
75
+
74
76
  fdv_usd?: string;
75
77
 
76
78
  market_cap_usd?: string;
@@ -89,6 +91,10 @@ export namespace TrendingPoolGetResponse {
89
91
 
90
92
  reserve_in_usd?: string;
91
93
 
94
+ sentiment_vote_negative_percentage?: number;
95
+
96
+ sentiment_vote_positive_percentage?: number;
97
+
92
98
  transactions?: Attributes.Transactions;
93
99
 
94
100
  volume_usd?: Attributes.VolumeUsd;
@@ -287,6 +293,8 @@ export namespace TrendingPoolGetNetworkResponse {
287
293
 
288
294
  base_token_price_usd?: string;
289
295
 
296
+ community_sus_report?: number;
297
+
290
298
  fdv_usd?: string;
291
299
 
292
300
  market_cap_usd?: string;
@@ -305,6 +313,10 @@ export namespace TrendingPoolGetNetworkResponse {
305
313
 
306
314
  reserve_in_usd?: string;
307
315
 
316
+ sentiment_vote_negative_percentage?: number;
317
+
318
+ sentiment_vote_positive_percentage?: number;
319
+
308
320
  transactions?: Attributes.Transactions;
309
321
 
310
322
  volume_usd?: Attributes.VolumeUsd;
@@ -489,6 +501,12 @@ export interface TrendingPoolGetParams {
489
501
  */
490
502
  include?: string;
491
503
 
504
+ /**
505
+ * include GeckoTerminal community data (Sentiment votes, Suspicious reports)
506
+ * Default value: false
507
+ */
508
+ include_gt_community_data?: boolean;
509
+
492
510
  /**
493
511
  * page through results Default value: 1
494
512
  */
@@ -507,6 +525,12 @@ export interface TrendingPoolGetNetworkParams {
507
525
  */
508
526
  include?: string;
509
527
 
528
+ /**
529
+ * include GeckoTerminal community data (Sentiment votes, Suspicious reports)
530
+ * Default value: false
531
+ */
532
+ include_gt_community_data?: boolean;
533
+
510
534
  /**
511
535
  * page through results Default value: 1
512
536
  */
@@ -330,6 +330,21 @@ export interface MegafilterGetParams {
330
330
  */
331
331
  pool_created_hour_min?: number;
332
332
 
333
+ /**
334
+ * duration for price change percentage metric
335
+ */
336
+ price_change_percentage_duration?: '5m' | '1h' | '6h' | '24h';
337
+
338
+ /**
339
+ * maximum price change percentage
340
+ */
341
+ price_change_percentage_max?: number;
342
+
343
+ /**
344
+ * minimum price change percentage
345
+ */
346
+ price_change_percentage_min?: number;
347
+
333
348
  /**
334
349
  * maximum reserve in USD
335
350
  */
@@ -374,7 +389,9 @@ export interface MegafilterGetParams {
374
389
  | 'h6_trending'
375
390
  | 'h24_trending'
376
391
  | 'h24_tx_count_desc'
392
+ | 'h24_tx_count_asc'
377
393
  | 'h24_volume_usd_desc'
394
+ | 'h24_volume_usd_asc'
378
395
  | 'm5_price_change_percentage_asc'
379
396
  | 'h1_price_change_percentage_asc'
380
397
  | 'h6_price_change_percentage_asc'
@@ -387,6 +404,8 @@ export interface MegafilterGetParams {
387
404
  | 'fdv_usd_desc'
388
405
  | 'reserve_in_usd_asc'
389
406
  | 'reserve_in_usd_desc'
407
+ | 'price_asc'
408
+ | 'price_desc'
390
409
  | 'pool_created_at_desc';
391
410
 
392
411
  /**
@@ -47,7 +47,17 @@ export namespace TokenPriceGetAddressesResponse {
47
47
 
48
48
  export namespace Data {
49
49
  export interface Attributes {
50
+ h24_price_change_percentage?: { [key: string]: string };
51
+
52
+ h24_volume_usd?: { [key: string]: string };
53
+
54
+ last_trade_timestamp?: { [key: string]: number };
55
+
56
+ market_cap_usd?: { [key: string]: string };
57
+
50
58
  token_prices?: { [key: string]: string };
59
+
60
+ total_reserve_in_usd?: { [key: string]: string };
51
61
  }
52
62
  }
53
63
  }
@@ -68,6 +78,12 @@ export interface TokenPriceGetAddressesParams {
68
78
  */
69
79
  include_24hr_vol?: boolean;
70
80
 
81
+ /**
82
+ * Query param: include token price data from inactive pools using the most recent
83
+ * swap, default: false
84
+ */
85
+ include_inactive_source?: boolean;
86
+
71
87
  /**
72
88
  * Query param: include market capitalization, default: false
73
89
  */