@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.
- package/CHANGELOG.md +100 -0
- package/LICENSE +1 -1
- package/README.md +23 -10
- package/client.d.mts +4 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -3
- package/client.d.ts.map +1 -1
- package/client.js +15 -2
- package/client.js.map +1 -1
- package/client.mjs +15 -2
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/coins/circulating-supply-chart.d.mts +1 -1
- package/resources/coins/circulating-supply-chart.d.mts.map +1 -1
- package/resources/coins/circulating-supply-chart.d.ts +1 -1
- package/resources/coins/circulating-supply-chart.d.ts.map +1 -1
- package/resources/coins/coins.d.mts +158 -1
- package/resources/coins/coins.d.mts.map +1 -1
- package/resources/coins/coins.d.ts +158 -1
- package/resources/coins/coins.d.ts.map +1 -1
- package/resources/coins/coins.js.map +1 -1
- package/resources/coins/coins.mjs.map +1 -1
- package/resources/coins/contract/contract.d.mts +9 -1
- package/resources/coins/contract/contract.d.mts.map +1 -1
- package/resources/coins/contract/contract.d.ts +9 -1
- package/resources/coins/contract/contract.d.ts.map +1 -1
- package/resources/coins/contract/contract.js.map +1 -1
- package/resources/coins/contract/contract.mjs.map +1 -1
- package/resources/coins/contract/market-chart.d.mts +5 -1
- package/resources/coins/contract/market-chart.d.mts.map +1 -1
- package/resources/coins/contract/market-chart.d.ts +5 -1
- package/resources/coins/contract/market-chart.d.ts.map +1 -1
- package/resources/coins/contract/market-chart.js +5 -1
- package/resources/coins/contract/market-chart.js.map +1 -1
- package/resources/coins/contract/market-chart.mjs +5 -1
- package/resources/coins/contract/market-chart.mjs.map +1 -1
- package/resources/coins/history.d.mts +1 -1
- package/resources/coins/history.d.ts +1 -1
- package/resources/coins/market-chart.d.mts +5 -1
- package/resources/coins/market-chart.d.mts.map +1 -1
- package/resources/coins/market-chart.d.ts +5 -1
- package/resources/coins/market-chart.d.ts.map +1 -1
- package/resources/coins/market-chart.js +5 -1
- package/resources/coins/market-chart.js.map +1 -1
- package/resources/coins/market-chart.mjs +5 -1
- package/resources/coins/market-chart.mjs.map +1 -1
- package/resources/coins/markets.d.mts +9 -0
- package/resources/coins/markets.d.mts.map +1 -1
- package/resources/coins/markets.d.ts +9 -0
- package/resources/coins/markets.d.ts.map +1 -1
- package/resources/coins/tickers.d.mts +1 -1
- package/resources/coins/tickers.d.mts.map +1 -1
- package/resources/coins/tickers.d.ts +1 -1
- package/resources/coins/tickers.d.ts.map +1 -1
- package/resources/exchanges/exchanges.d.mts +3 -3
- package/resources/exchanges/exchanges.d.mts.map +1 -1
- package/resources/exchanges/exchanges.d.ts +3 -3
- package/resources/exchanges/exchanges.d.ts.map +1 -1
- package/resources/exchanges/tickers.d.mts +1 -1
- package/resources/exchanges/tickers.d.mts.map +1 -1
- package/resources/exchanges/tickers.d.ts +1 -1
- package/resources/exchanges/tickers.d.ts.map +1 -1
- package/resources/global/global.d.mts +4 -0
- package/resources/global/global.d.mts.map +1 -1
- package/resources/global/global.d.ts +4 -0
- package/resources/global/global.d.ts.map +1 -1
- package/resources/global/global.js.map +1 -1
- package/resources/global/global.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/key.d.mts +10 -0
- package/resources/key.d.mts.map +1 -1
- package/resources/key.d.ts +10 -0
- package/resources/key.d.ts.map +1 -1
- package/resources/onchain/networks/dexes.d.mts +8 -0
- package/resources/onchain/networks/dexes.d.mts.map +1 -1
- package/resources/onchain/networks/dexes.d.ts +8 -0
- package/resources/onchain/networks/dexes.d.ts.map +1 -1
- package/resources/onchain/networks/new-pools.d.mts +16 -0
- package/resources/onchain/networks/new-pools.d.mts.map +1 -1
- package/resources/onchain/networks/new-pools.d.ts +16 -0
- package/resources/onchain/networks/new-pools.d.ts.map +1 -1
- package/resources/onchain/networks/pools/info.d.mts +2 -0
- package/resources/onchain/networks/pools/info.d.mts.map +1 -1
- package/resources/onchain/networks/pools/info.d.ts +2 -0
- package/resources/onchain/networks/pools/info.d.ts.map +1 -1
- package/resources/onchain/networks/pools/pools.d.mts +8 -0
- package/resources/onchain/networks/pools/pools.d.mts.map +1 -1
- package/resources/onchain/networks/pools/pools.d.ts +8 -0
- package/resources/onchain/networks/pools/pools.d.ts.map +1 -1
- package/resources/onchain/networks/pools/pools.js.map +1 -1
- package/resources/onchain/networks/pools/pools.mjs.map +1 -1
- package/resources/onchain/networks/tokens/index.d.mts +1 -0
- package/resources/onchain/networks/tokens/index.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/index.d.ts +1 -0
- package/resources/onchain/networks/tokens/index.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/index.js +3 -1
- package/resources/onchain/networks/tokens/index.js.map +1 -1
- package/resources/onchain/networks/tokens/index.mjs +1 -0
- package/resources/onchain/networks/tokens/index.mjs.map +1 -1
- package/resources/onchain/networks/tokens/info.d.mts +2 -0
- package/resources/onchain/networks/tokens/info.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/info.d.ts +2 -0
- package/resources/onchain/networks/tokens/info.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/multi.d.mts +6 -0
- package/resources/onchain/networks/tokens/multi.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/multi.d.ts +6 -0
- package/resources/onchain/networks/tokens/multi.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/ohlcv.d.mts +5 -0
- package/resources/onchain/networks/tokens/ohlcv.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/ohlcv.d.ts +5 -0
- package/resources/onchain/networks/tokens/ohlcv.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/pools.d.mts +14 -0
- package/resources/onchain/networks/tokens/pools.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/pools.d.ts +14 -0
- package/resources/onchain/networks/tokens/pools.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/tokens.d.mts +10 -0
- package/resources/onchain/networks/tokens/tokens.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/tokens.d.ts +10 -0
- package/resources/onchain/networks/tokens/tokens.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/tokens.js +4 -0
- package/resources/onchain/networks/tokens/tokens.js.map +1 -1
- package/resources/onchain/networks/tokens/tokens.mjs +4 -0
- package/resources/onchain/networks/tokens/tokens.mjs.map +1 -1
- package/resources/onchain/networks/tokens/top-holders.d.mts +12 -0
- package/resources/onchain/networks/tokens/top-holders.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/top-holders.d.ts +12 -0
- package/resources/onchain/networks/tokens/top-holders.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/top-traders.d.mts +77 -0
- package/resources/onchain/networks/tokens/top-traders.d.mts.map +1 -0
- package/resources/onchain/networks/tokens/top-traders.d.ts +77 -0
- package/resources/onchain/networks/tokens/top-traders.d.ts.map +1 -0
- package/resources/onchain/networks/tokens/top-traders.js +30 -0
- package/resources/onchain/networks/tokens/top-traders.js.map +1 -0
- package/resources/onchain/networks/tokens/top-traders.mjs +26 -0
- package/resources/onchain/networks/tokens/top-traders.mjs.map +1 -0
- package/resources/onchain/networks/trending-pools.d.mts +16 -0
- package/resources/onchain/networks/trending-pools.d.mts.map +1 -1
- package/resources/onchain/networks/trending-pools.d.ts +16 -0
- package/resources/onchain/networks/trending-pools.d.ts.map +1 -1
- package/resources/onchain/pools/megafilter.d.mts +13 -1
- package/resources/onchain/pools/megafilter.d.mts.map +1 -1
- package/resources/onchain/pools/megafilter.d.ts +13 -1
- package/resources/onchain/pools/megafilter.d.ts.map +1 -1
- package/resources/onchain/simple/networks/token-price.d.mts +20 -0
- package/resources/onchain/simple/networks/token-price.d.mts.map +1 -1
- package/resources/onchain/simple/networks/token-price.d.ts +20 -0
- package/resources/onchain/simple/networks/token-price.d.ts.map +1 -1
- package/resources/public-treasury.d.mts +286 -31
- package/resources/public-treasury.d.mts.map +1 -1
- package/resources/public-treasury.d.ts +286 -31
- package/resources/public-treasury.d.ts.map +1 -1
- package/resources/public-treasury.js +39 -4
- package/resources/public-treasury.js.map +1 -1
- package/resources/public-treasury.mjs +39 -4
- package/resources/public-treasury.mjs.map +1 -1
- package/src/client.ts +29 -4
- package/src/internal/parse.ts +6 -0
- package/src/resources/coins/circulating-supply-chart.ts +1 -1
- package/src/resources/coins/coins.ts +193 -1
- package/src/resources/coins/contract/contract.ts +11 -1
- package/src/resources/coins/contract/market-chart.ts +5 -1
- package/src/resources/coins/history.ts +1 -1
- package/src/resources/coins/market-chart.ts +5 -1
- package/src/resources/coins/markets.ts +11 -0
- package/src/resources/coins/tickers.ts +1 -1
- package/src/resources/exchanges/exchanges.ts +3 -3
- package/src/resources/exchanges/tickers.ts +1 -1
- package/src/resources/global/global.ts +5 -0
- package/src/resources/index.ts +5 -0
- package/src/resources/key.ts +12 -0
- package/src/resources/onchain/networks/dexes.ts +12 -0
- package/src/resources/onchain/networks/new-pools.ts +24 -0
- package/src/resources/onchain/networks/pools/info.ts +4 -0
- package/src/resources/onchain/networks/pools/pools.ts +12 -0
- package/src/resources/onchain/networks/tokens/index.ts +1 -0
- package/src/resources/onchain/networks/tokens/info.ts +4 -0
- package/src/resources/onchain/networks/tokens/multi.ts +8 -0
- package/src/resources/onchain/networks/tokens/ohlcv.ts +6 -0
- package/src/resources/onchain/networks/tokens/pools.ts +20 -0
- package/src/resources/onchain/networks/tokens/tokens.ts +18 -0
- package/src/resources/onchain/networks/tokens/top-holders.ts +21 -0
- package/src/resources/onchain/networks/tokens/top-traders.ts +116 -0
- package/src/resources/onchain/networks/trending-pools.ts +24 -0
- package/src/resources/onchain/pools/megafilter.ts +19 -0
- package/src/resources/onchain/simple/networks/token-price.ts +16 -0
- package/src/resources/public-treasury.ts +386 -35
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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
|
*/
|