@tapline/client 0.2.15 → 0.2.17
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/README.md +4 -2
- package/dist/cjs/client.d.ts +2 -0
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +3 -0
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/airbnb/types.d.ts +1 -1
- package/dist/cjs/services/airbnb/types.d.ts.map +1 -1
- package/dist/cjs/services/birdeye/types.d.ts +547 -530
- package/dist/cjs/services/birdeye/types.d.ts.map +1 -1
- package/dist/cjs/services/brave_search/types.d.ts +1 -1
- package/dist/cjs/services/brave_search/types.d.ts.map +1 -1
- package/dist/cjs/services/expedia/types.d.ts +1 -1
- package/dist/cjs/services/expedia/types.d.ts.map +1 -1
- package/dist/cjs/services/facebook/types.d.ts +1 -1
- package/dist/cjs/services/facebook/types.d.ts.map +1 -1
- package/dist/cjs/services/facebook_ad_library/types.d.ts +1 -1
- package/dist/cjs/services/facebook_ad_library/types.d.ts.map +1 -1
- package/dist/cjs/services/facebook_marketplace/types.d.ts +46 -15
- package/dist/cjs/services/facebook_marketplace/types.d.ts.map +1 -1
- package/dist/cjs/services/geckoterminal/types.d.ts +522 -521
- package/dist/cjs/services/geckoterminal/types.d.ts.map +1 -1
- package/dist/cjs/services/gmgn/client.d.ts +1 -1
- package/dist/cjs/services/gmgn/client.d.ts.map +1 -1
- package/dist/cjs/services/gmgn/client.js +3 -3
- package/dist/cjs/services/gmgn/client.js.map +1 -1
- package/dist/cjs/services/gmgn/types.d.ts +1428 -1407
- package/dist/cjs/services/gmgn/types.d.ts.map +1 -1
- package/dist/cjs/services/google_maps/client.d.ts +45 -0
- package/dist/cjs/services/google_maps/client.d.ts.map +1 -0
- package/dist/cjs/services/google_maps/client.js +99 -0
- package/dist/cjs/services/google_maps/client.js.map +1 -0
- package/dist/cjs/services/google_maps/index.d.ts +3 -0
- package/dist/cjs/services/google_maps/index.d.ts.map +1 -0
- package/dist/cjs/services/google_maps/index.js +22 -0
- package/dist/cjs/services/google_maps/index.js.map +1 -0
- package/dist/cjs/services/google_maps/types.d.ts +1315 -0
- package/dist/cjs/services/google_maps/types.d.ts.map +1 -0
- package/dist/cjs/services/google_maps/types.js +4 -0
- package/dist/cjs/services/google_maps/types.js.map +1 -0
- package/dist/cjs/services/goplus/types.d.ts +1 -1
- package/dist/cjs/services/goplus/types.d.ts.map +1 -1
- package/dist/cjs/services/imovelweb/client.d.ts +1 -1
- package/dist/cjs/services/imovelweb/client.d.ts.map +1 -1
- package/dist/cjs/services/imovelweb/client.js +1 -1
- package/dist/cjs/services/imovelweb/client.js.map +1 -1
- package/dist/cjs/services/imovelweb/types.d.ts +360 -360
- package/dist/cjs/services/imovelweb/types.d.ts.map +1 -1
- package/dist/cjs/services/indeed/types.d.ts +1 -1
- package/dist/cjs/services/indeed/types.d.ts.map +1 -1
- package/dist/cjs/services/instagram/types.d.ts +1 -1
- package/dist/cjs/services/instagram/types.d.ts.map +1 -1
- package/dist/cjs/services/linkedin/types.d.ts +1 -1
- package/dist/cjs/services/linkedin/types.d.ts.map +1 -1
- package/dist/cjs/services/pinterest/types.d.ts +2 -2
- package/dist/cjs/services/pinterest/types.d.ts.map +1 -1
- package/dist/cjs/services/pinterest_v2/types.d.ts +1 -1
- package/dist/cjs/services/pinterest_v2/types.d.ts.map +1 -1
- package/dist/cjs/services/ponsfamily/types.d.ts +331 -325
- package/dist/cjs/services/ponsfamily/types.d.ts.map +1 -1
- package/dist/cjs/services/pumpfun/client.d.ts +2 -10
- package/dist/cjs/services/pumpfun/client.d.ts.map +1 -1
- package/dist/cjs/services/pumpfun/client.js +3 -23
- package/dist/cjs/services/pumpfun/client.js.map +1 -1
- package/dist/cjs/services/pumpfun/types.d.ts +2432 -2393
- package/dist/cjs/services/pumpfun/types.d.ts.map +1 -1
- package/dist/cjs/services/tiktok/client.d.ts +19 -17
- package/dist/cjs/services/tiktok/client.d.ts.map +1 -1
- package/dist/cjs/services/tiktok/client.js +13 -9
- package/dist/cjs/services/tiktok/client.js.map +1 -1
- package/dist/cjs/services/tiktok/types.d.ts +577 -3318
- package/dist/cjs/services/tiktok/types.d.ts.map +1 -1
- package/dist/cjs/services/twitter/types.d.ts +1 -1
- package/dist/cjs/services/twitter/types.d.ts.map +1 -1
- package/dist/cjs/services/youtube/types.d.ts +1 -1
- package/dist/cjs/services/youtube/types.d.ts.map +1 -1
- package/dist/cjs/services/zillow/types.d.ts +1 -1
- package/dist/cjs/services/zillow/types.d.ts.map +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/airbnb/types.d.ts +1 -1
- package/dist/services/airbnb/types.d.ts.map +1 -1
- package/dist/services/birdeye/types.d.ts +547 -530
- package/dist/services/birdeye/types.d.ts.map +1 -1
- package/dist/services/brave_search/types.d.ts +1 -1
- package/dist/services/brave_search/types.d.ts.map +1 -1
- package/dist/services/expedia/types.d.ts +1 -1
- package/dist/services/expedia/types.d.ts.map +1 -1
- package/dist/services/facebook/types.d.ts +1 -1
- package/dist/services/facebook/types.d.ts.map +1 -1
- package/dist/services/facebook_ad_library/types.d.ts +1 -1
- package/dist/services/facebook_ad_library/types.d.ts.map +1 -1
- package/dist/services/facebook_marketplace/types.d.ts +46 -15
- package/dist/services/facebook_marketplace/types.d.ts.map +1 -1
- package/dist/services/geckoterminal/types.d.ts +522 -521
- package/dist/services/geckoterminal/types.d.ts.map +1 -1
- package/dist/services/gmgn/client.d.ts +1 -1
- package/dist/services/gmgn/client.d.ts.map +1 -1
- package/dist/services/gmgn/client.js +3 -3
- package/dist/services/gmgn/client.js.map +1 -1
- package/dist/services/gmgn/types.d.ts +1428 -1407
- package/dist/services/gmgn/types.d.ts.map +1 -1
- package/dist/services/google_maps/client.d.ts +45 -0
- package/dist/services/google_maps/client.d.ts.map +1 -0
- package/dist/services/google_maps/client.js +95 -0
- package/dist/services/google_maps/client.js.map +1 -0
- package/dist/services/google_maps/index.d.ts +3 -0
- package/dist/services/google_maps/index.d.ts.map +1 -0
- package/dist/services/google_maps/index.js +4 -0
- package/dist/services/google_maps/index.js.map +1 -0
- package/dist/services/google_maps/types.d.ts +1315 -0
- package/dist/services/google_maps/types.d.ts.map +1 -0
- package/dist/services/google_maps/types.js +3 -0
- package/dist/services/google_maps/types.js.map +1 -0
- package/dist/services/goplus/types.d.ts +1 -1
- package/dist/services/goplus/types.d.ts.map +1 -1
- package/dist/services/imovelweb/client.d.ts +1 -1
- package/dist/services/imovelweb/client.d.ts.map +1 -1
- package/dist/services/imovelweb/client.js +1 -1
- package/dist/services/imovelweb/client.js.map +1 -1
- package/dist/services/imovelweb/types.d.ts +360 -360
- package/dist/services/imovelweb/types.d.ts.map +1 -1
- package/dist/services/indeed/types.d.ts +1 -1
- package/dist/services/indeed/types.d.ts.map +1 -1
- package/dist/services/instagram/types.d.ts +1 -1
- package/dist/services/instagram/types.d.ts.map +1 -1
- package/dist/services/linkedin/types.d.ts +1 -1
- package/dist/services/linkedin/types.d.ts.map +1 -1
- package/dist/services/pinterest/types.d.ts +2 -2
- package/dist/services/pinterest/types.d.ts.map +1 -1
- package/dist/services/pinterest_v2/types.d.ts +1 -1
- package/dist/services/pinterest_v2/types.d.ts.map +1 -1
- package/dist/services/ponsfamily/types.d.ts +331 -325
- package/dist/services/ponsfamily/types.d.ts.map +1 -1
- package/dist/services/pumpfun/client.d.ts +2 -10
- package/dist/services/pumpfun/client.d.ts.map +1 -1
- package/dist/services/pumpfun/client.js +3 -23
- package/dist/services/pumpfun/client.js.map +1 -1
- package/dist/services/pumpfun/types.d.ts +2432 -2393
- package/dist/services/pumpfun/types.d.ts.map +1 -1
- package/dist/services/tiktok/client.d.ts +19 -17
- package/dist/services/tiktok/client.d.ts.map +1 -1
- package/dist/services/tiktok/client.js +13 -9
- package/dist/services/tiktok/client.js.map +1 -1
- package/dist/services/tiktok/types.d.ts +577 -3318
- package/dist/services/tiktok/types.d.ts.map +1 -1
- package/dist/services/twitter/types.d.ts +1 -1
- package/dist/services/twitter/types.d.ts.map +1 -1
- package/dist/services/youtube/types.d.ts +1 -1
- package/dist/services/youtube/types.d.ts.map +1 -1
- package/dist/services/zillow/types.d.ts +1 -1
- package/dist/services/zillow/types.d.ts.map +1 -1
- package/package.json +4 -2
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
export type CandlestickCurrency = "usd" | "token";
|
|
2
2
|
export type CandlestickResolution = "1" | "5" | "15" | "60" | "120" | "240" | "720" | "1D";
|
|
3
3
|
export interface CandlesticksParams {
|
|
4
|
-
/** Denomination of the bar prices. */
|
|
5
|
-
currency?: CandlestickCurrency;
|
|
6
|
-
/** Unix timestamp for the start of the window. */
|
|
7
|
-
from_timestamp: number;
|
|
8
|
-
/** Quote bars in the other token of the pair. */
|
|
9
|
-
is_inverted?: boolean;
|
|
10
|
-
/** GeckoTerminal numeric pair id, from the pool's `pairs` relationship. */
|
|
11
|
-
pair_id: string;
|
|
12
4
|
/** GeckoTerminal numeric pool id, as returned in a pool resource's `id`. */
|
|
13
5
|
pool_id: string;
|
|
14
|
-
/**
|
|
15
|
-
|
|
6
|
+
/** GeckoTerminal numeric pair id, from the pool's `pairs` relationship. */
|
|
7
|
+
pair_id: string;
|
|
8
|
+
/** Unix timestamp for the start of the window. */
|
|
9
|
+
from_timestamp: number;
|
|
16
10
|
/** Unix timestamp for the end of the window. */
|
|
17
11
|
to_timestamp: number;
|
|
12
|
+
/** Bar width in minutes, or `1D`. */
|
|
13
|
+
resolution?: CandlestickResolution;
|
|
14
|
+
/** Denomination of the bar prices. */
|
|
15
|
+
currency?: CandlestickCurrency;
|
|
16
|
+
/** Quote bars in the other token of the pair. */
|
|
17
|
+
is_inverted?: boolean;
|
|
18
18
|
}
|
|
19
19
|
export interface CandlesticksResponse {
|
|
20
|
-
data: CandlesticksResponseData[];
|
|
21
20
|
meta: Record<string, string>;
|
|
21
|
+
data: CandlesticksResponseData[];
|
|
22
22
|
}
|
|
23
23
|
export interface CandlesticksResponseData {
|
|
24
|
-
c: number;
|
|
25
24
|
dt: string;
|
|
25
|
+
o: number;
|
|
26
26
|
h: number;
|
|
27
27
|
l: number;
|
|
28
|
-
|
|
28
|
+
c: number;
|
|
29
29
|
v: number;
|
|
30
30
|
}
|
|
31
31
|
export interface DexAttributes {
|
|
32
|
+
name: string;
|
|
33
|
+
identifier?: string;
|
|
34
|
+
url?: string;
|
|
32
35
|
analytics_pool_page_url?: string | null;
|
|
33
36
|
analytics_token_page_url?: string | null;
|
|
34
|
-
|
|
37
|
+
no_reserves?: boolean;
|
|
35
38
|
image_url: string;
|
|
36
|
-
is_bonding_curve?: boolean;
|
|
37
39
|
is_launchpad?: boolean;
|
|
38
|
-
|
|
39
|
-
no_reserves?: boolean;
|
|
40
|
-
url?: string;
|
|
40
|
+
is_bonding_curve?: boolean;
|
|
41
41
|
}
|
|
42
42
|
export interface DexLinkServiceAttributes {
|
|
43
|
-
category: string;
|
|
44
|
-
image_url: string;
|
|
45
43
|
name: string;
|
|
46
|
-
|
|
44
|
+
category: string;
|
|
47
45
|
sub_category: string;
|
|
48
46
|
url: string;
|
|
47
|
+
priority: number | null;
|
|
48
|
+
image_url: string;
|
|
49
49
|
}
|
|
50
50
|
export interface DexLinkServiceResource {
|
|
51
|
-
attributes: DexLinkServiceAttributes;
|
|
52
51
|
id: string;
|
|
53
52
|
type: string;
|
|
53
|
+
attributes: DexLinkServiceAttributes;
|
|
54
54
|
}
|
|
55
55
|
export interface DexMetricAttributes {
|
|
56
|
-
pools_count: number;
|
|
57
|
-
rank_by_volume: number | null;
|
|
58
|
-
reserve_in_usd: string;
|
|
59
|
-
swap_count_24h: number;
|
|
60
|
-
swap_volume_percent_change_24h: number | string;
|
|
61
56
|
swap_volume_usd_24h: string;
|
|
57
|
+
swap_count_24h: number;
|
|
62
58
|
swap_volume_usd_48h_24h: string;
|
|
59
|
+
swap_volume_percent_change_24h: number | string;
|
|
60
|
+
reserve_in_usd: string;
|
|
61
|
+
rank_by_volume: number | null;
|
|
62
|
+
pools_count: number;
|
|
63
63
|
tokens_count: number;
|
|
64
64
|
}
|
|
65
65
|
export interface DexMetricResource {
|
|
66
|
-
attributes: DexMetricAttributes;
|
|
67
66
|
id: string;
|
|
68
67
|
type: string;
|
|
68
|
+
attributes: DexMetricAttributes;
|
|
69
69
|
}
|
|
70
70
|
export interface DexRelationships {
|
|
71
|
-
dex_metric?: ResourceLinkage;
|
|
72
71
|
network: ResourceLinkage;
|
|
72
|
+
dex_metric?: ResourceLinkage;
|
|
73
73
|
}
|
|
74
74
|
export interface DexResource {
|
|
75
|
-
attributes: DexAttributes;
|
|
76
75
|
id: string;
|
|
77
|
-
relationships: DexRelationships;
|
|
78
76
|
type: string;
|
|
77
|
+
attributes: DexAttributes;
|
|
78
|
+
relationships: DexRelationships;
|
|
79
79
|
}
|
|
80
80
|
export interface DexesParams {
|
|
81
81
|
/** Restrict results to one network identifier. */
|
|
@@ -90,72 +90,72 @@ export interface DexesResponse {
|
|
|
90
90
|
}
|
|
91
91
|
export interface DexesResponseLinks {
|
|
92
92
|
first: string;
|
|
93
|
-
last: DexesResponseLinksLast;
|
|
94
|
-
next: string | null;
|
|
95
93
|
prev: string | null;
|
|
94
|
+
next: string | null;
|
|
95
|
+
last: DexesResponseLinksLast;
|
|
96
96
|
}
|
|
97
97
|
export interface DexesResponseLinksLast {
|
|
98
|
-
href: string;
|
|
99
98
|
meta: DexesResponseLinksLastMeta;
|
|
99
|
+
href: string;
|
|
100
100
|
}
|
|
101
101
|
export interface DexesResponseLinksLastMeta {
|
|
102
102
|
series: string[];
|
|
103
103
|
}
|
|
104
104
|
export interface ErrorDetail {
|
|
105
|
-
|
|
106
|
-
input?: unknown | null;
|
|
105
|
+
type?: string | null;
|
|
107
106
|
loc?: (string | number)[] | null;
|
|
108
107
|
msg?: string | null;
|
|
109
|
-
|
|
108
|
+
input?: unknown | null;
|
|
109
|
+
ctx?: Record<string, unknown> | null;
|
|
110
110
|
}
|
|
111
111
|
export interface ErrorResponse {
|
|
112
112
|
code: PublicError;
|
|
113
|
-
details?: ErrorDetail[] | null;
|
|
114
|
-
domain?: string | null;
|
|
115
113
|
message: string;
|
|
116
114
|
request_id: string;
|
|
115
|
+
domain?: string | null;
|
|
116
|
+
details?: ErrorDetail[] | null;
|
|
117
117
|
upgrade_url?: string | null;
|
|
118
118
|
}
|
|
119
119
|
export interface ExplorerAttributes {
|
|
120
|
-
coin_url: string;
|
|
121
|
-
holders_url: string;
|
|
122
|
-
logo_url: string;
|
|
123
120
|
name: string;
|
|
121
|
+
url: string;
|
|
124
122
|
rank: number | null;
|
|
123
|
+
coin_url: string;
|
|
124
|
+
holders_url: string;
|
|
125
125
|
tx_url: string;
|
|
126
|
-
|
|
126
|
+
logo_url: string;
|
|
127
127
|
}
|
|
128
128
|
export interface ExplorerResource {
|
|
129
|
-
attributes: ExplorerAttributes;
|
|
130
129
|
id: string;
|
|
131
130
|
type: string;
|
|
131
|
+
attributes: ExplorerAttributes;
|
|
132
132
|
}
|
|
133
133
|
export interface GlobalStatAttributes {
|
|
134
|
-
dexes_count: number;
|
|
135
|
-
eth_gas_oracle: GlobalStatAttributesEthGasOracle;
|
|
136
|
-
fng_stats: GlobalStatAttributesFngStats;
|
|
137
134
|
networks_count: number;
|
|
135
|
+
dexes_count: number;
|
|
138
136
|
pools_count: number;
|
|
139
137
|
tokens_count: number;
|
|
138
|
+
fng_stats: GlobalStatAttributesFngStats;
|
|
139
|
+
eth_gas_oracle: GlobalStatAttributesEthGasOracle;
|
|
140
140
|
}
|
|
141
141
|
export interface GlobalStatAttributesEthGasOracle {
|
|
142
|
+
last_block: number;
|
|
143
|
+
updated_at: string;
|
|
142
144
|
fast_gas_price: number;
|
|
143
145
|
gas_used_ratio: string;
|
|
144
|
-
last_block: number;
|
|
145
|
-
propose_gas_price: number;
|
|
146
146
|
safe_gas_price: number;
|
|
147
147
|
suggest_base_fee: number;
|
|
148
|
-
|
|
148
|
+
propose_gas_price: number;
|
|
149
149
|
}
|
|
150
150
|
export interface GlobalStatAttributesFngStats {
|
|
151
|
-
next_update_at: string;
|
|
152
151
|
value: number;
|
|
153
152
|
value_classification: string;
|
|
153
|
+
next_update_at: string;
|
|
154
154
|
}
|
|
155
155
|
export interface GlobalStatResource {
|
|
156
|
-
attributes: GlobalStatAttributes;
|
|
157
156
|
id: string;
|
|
158
157
|
type: string;
|
|
158
|
+
attributes: GlobalStatAttributes;
|
|
159
159
|
}
|
|
160
160
|
export interface GlobalStatsResponse {
|
|
161
161
|
data: GlobalStatResource;
|
|
@@ -170,14 +170,14 @@ export interface LatestPoolsParams {
|
|
|
170
170
|
export interface LatestPoolsResponse {
|
|
171
171
|
data: PoolResource[];
|
|
172
172
|
included: (DexResource | NetworkResource | PoolMetricResource | TokenResource)[];
|
|
173
|
-
links: LatestPoolsResponseLinks;
|
|
174
173
|
meta: LatestPoolsResponseMeta;
|
|
174
|
+
links: LatestPoolsResponseLinks;
|
|
175
175
|
}
|
|
176
176
|
export interface LatestPoolsResponseLinks {
|
|
177
177
|
first: string;
|
|
178
|
-
last: LatestPoolsResponseLinksLast;
|
|
179
|
-
next: string | null;
|
|
180
178
|
prev: string | null;
|
|
179
|
+
next: string | null;
|
|
180
|
+
last: LatestPoolsResponseLinksLast;
|
|
181
181
|
}
|
|
182
182
|
export interface LatestPoolsResponseLinksLast {
|
|
183
183
|
meta: LatestPoolsResponseLinksLastMeta;
|
|
@@ -189,20 +189,20 @@ export interface LatestPoolsResponseMeta {
|
|
|
189
189
|
sort: string;
|
|
190
190
|
}
|
|
191
191
|
export interface NetworkAttributes {
|
|
192
|
-
cg_network_id?: string | null;
|
|
193
|
-
chain_id?: number | null;
|
|
194
|
-
explorer_coin_url?: string;
|
|
195
|
-
explorer_logo_url?: string;
|
|
196
|
-
explorer_tx_url?: string;
|
|
197
|
-
explorer_url?: string;
|
|
198
|
-
identifier: string;
|
|
199
|
-
image_url?: string;
|
|
200
|
-
is_new?: boolean;
|
|
201
192
|
name?: string;
|
|
202
|
-
|
|
193
|
+
identifier: string;
|
|
194
|
+
chain_id?: number | null;
|
|
195
|
+
cg_network_id?: string | null;
|
|
203
196
|
native_currency_symbol?: string;
|
|
197
|
+
native_currency_address?: string;
|
|
204
198
|
pool_reserve_threshold?: string;
|
|
199
|
+
image_url?: string;
|
|
200
|
+
is_new?: boolean;
|
|
205
201
|
supports_top_holders?: boolean;
|
|
202
|
+
explorer_url?: string;
|
|
203
|
+
explorer_coin_url?: string;
|
|
204
|
+
explorer_tx_url?: string;
|
|
205
|
+
explorer_logo_url?: string;
|
|
206
206
|
}
|
|
207
207
|
export interface NetworkLatestPoolsParams {
|
|
208
208
|
/** GeckoTerminal network identifier. */
|
|
@@ -215,87 +215,88 @@ export interface NetworkLatestPoolsParams {
|
|
|
215
215
|
export interface NetworkLatestPoolsResponse {
|
|
216
216
|
data: PoolResource[];
|
|
217
217
|
included: (DexResource | NetworkResource | PoolMetricResource | TokenResource)[];
|
|
218
|
-
links: LatestPoolsResponseLinks;
|
|
219
218
|
meta: NetworkLatestPoolsResponseMeta;
|
|
219
|
+
links: LatestPoolsResponseLinks;
|
|
220
220
|
}
|
|
221
221
|
export interface NetworkLatestPoolsResponseMeta {
|
|
222
|
-
network: string;
|
|
223
222
|
sort: string;
|
|
223
|
+
network: string;
|
|
224
224
|
}
|
|
225
225
|
export interface NetworkLinkServiceAttributes {
|
|
226
|
-
category: string;
|
|
227
|
-
image_url: string;
|
|
228
226
|
name: string;
|
|
229
|
-
|
|
227
|
+
category: string;
|
|
230
228
|
sub_category: string | null;
|
|
231
229
|
url: string;
|
|
230
|
+
priority: number | null;
|
|
231
|
+
image_url: string;
|
|
232
232
|
}
|
|
233
233
|
export interface NetworkLinkServiceResource {
|
|
234
|
-
attributes: NetworkLinkServiceAttributes;
|
|
235
234
|
id: string;
|
|
236
235
|
type: string;
|
|
236
|
+
attributes: NetworkLinkServiceAttributes;
|
|
237
237
|
}
|
|
238
238
|
export interface NetworkMetricAttributes {
|
|
239
|
-
dexes_count?: number;
|
|
240
|
-
latest_pools_count: number;
|
|
241
|
-
pools_count?: number;
|
|
242
|
-
rank_by_liquidity?: number;
|
|
243
|
-
reserve_in_usd?: string;
|
|
244
|
-
swap_count_24h?: number;
|
|
245
|
-
swap_volume_percent_change_24h?: string;
|
|
246
239
|
swap_volume_usd_24h?: string;
|
|
240
|
+
swap_count_24h?: number;
|
|
247
241
|
swap_volume_usd_48h_24h?: string;
|
|
248
|
-
|
|
242
|
+
/** A decimal string; 0.0 when prior-day volume is zero. */
|
|
243
|
+
swap_volume_percent_change_24h?: string | number;
|
|
244
|
+
latest_pools_count: number;
|
|
249
245
|
trending_pools_count?: number;
|
|
246
|
+
reserve_in_usd?: string;
|
|
247
|
+
rank_by_liquidity?: number;
|
|
248
|
+
dexes_count?: number;
|
|
249
|
+
pools_count?: number;
|
|
250
|
+
tokens_count?: number;
|
|
250
251
|
}
|
|
251
252
|
export interface NetworkMetricResource {
|
|
252
|
-
attributes: NetworkMetricAttributes;
|
|
253
253
|
id: string;
|
|
254
254
|
type: string;
|
|
255
|
+
attributes: NetworkMetricAttributes;
|
|
255
256
|
}
|
|
256
257
|
export interface NetworkPoolScreenerRequest {
|
|
257
|
-
/**
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
|
|
263
|
-
/** Restrict to these DEX identifiers. */
|
|
264
|
-
dexes?: string[] | null;
|
|
265
|
-
/** Fully diluted valuation in USD. */
|
|
266
|
-
fdv_in_usd?: RangeFilter | null;
|
|
267
|
-
/** Only pools above GeckoTerminal's GT score threshold. */
|
|
268
|
-
good_gt_score?: boolean | null;
|
|
269
|
-
/** Only pools whose token declares social links. */
|
|
270
|
-
has_social?: boolean | null;
|
|
271
|
-
/** Number of token holders. */
|
|
272
|
-
holder_count?: RangeFilter | null;
|
|
258
|
+
/** 1-based result page. */
|
|
259
|
+
page?: number;
|
|
260
|
+
/** Ranking applied before pagination. Omit for GeckoTerminal's default. */
|
|
261
|
+
sort?: PoolSort | null;
|
|
262
|
+
/** 24h traded volume in USD. */
|
|
263
|
+
volume_24h?: RangeFilter | null;
|
|
273
264
|
/** Pool liquidity in USD. */
|
|
274
265
|
liquidity?: RangeFilter | null;
|
|
266
|
+
/** Fully diluted valuation in USD. */
|
|
267
|
+
fdv_in_usd?: RangeFilter | null;
|
|
275
268
|
/** Market cap in USD. */
|
|
276
269
|
mc_in_usd?: RangeFilter | null;
|
|
277
|
-
/**
|
|
278
|
-
|
|
279
|
-
/** Exclude tokens flagged as honeypots. */
|
|
280
|
-
no_honeypot?: boolean | null;
|
|
281
|
-
/** Only pools whose token is listed on CoinGecko. */
|
|
282
|
-
on_coingecko?: boolean | null;
|
|
283
|
-
/** 1-based result page. */
|
|
284
|
-
page?: number;
|
|
285
|
-
/** Pool age in hours. */
|
|
286
|
-
pool_creation_hours_ago?: RangeFilter | null;
|
|
270
|
+
/** Buy tax percentage. */
|
|
271
|
+
buy_tax?: RangeFilter | null;
|
|
287
272
|
/** Sell tax percentage. */
|
|
288
273
|
sell_tax?: RangeFilter | null;
|
|
289
|
-
/**
|
|
290
|
-
|
|
291
|
-
/** Ranking applied before pagination. Omit for GeckoTerminal's default. */
|
|
292
|
-
sort?: PoolSort | null;
|
|
274
|
+
/** Pool age in hours. */
|
|
275
|
+
pool_creation_hours_ago?: RangeFilter | null;
|
|
293
276
|
/** Share of supply held by the ten largest holders. */
|
|
294
277
|
top_10_holders_percentage?: RangeFilter | null;
|
|
278
|
+
/** Number of token holders. */
|
|
279
|
+
holder_count?: RangeFilter | null;
|
|
295
280
|
/** Transaction count over the chosen window. */
|
|
296
281
|
tx_count?: TimeframedRangeFilter | null;
|
|
297
|
-
/**
|
|
298
|
-
|
|
282
|
+
/** Buy count over the chosen window. */
|
|
283
|
+
buys?: TimeframedRangeFilter | null;
|
|
284
|
+
/** Sell count over the chosen window. */
|
|
285
|
+
sells?: TimeframedRangeFilter | null;
|
|
286
|
+
/** Only pools whose token is listed on CoinGecko. */
|
|
287
|
+
on_coingecko?: boolean | null;
|
|
288
|
+
/** Only pools whose token declares social links. */
|
|
289
|
+
has_social?: boolean | null;
|
|
290
|
+
/** Exclude tokens flagged as honeypots. */
|
|
291
|
+
no_honeypot?: boolean | null;
|
|
292
|
+
/** Only pools above GeckoTerminal's GT score threshold. */
|
|
293
|
+
good_gt_score?: boolean | null;
|
|
294
|
+
/** Restrict to these network identifiers. */
|
|
295
|
+
networks?: string[] | null;
|
|
296
|
+
/** Restrict to these DEX identifiers. */
|
|
297
|
+
dexes?: string[] | null;
|
|
298
|
+
/** Restrict to a single DEX on this network, by identifier. */
|
|
299
|
+
dex?: string | null;
|
|
299
300
|
}
|
|
300
301
|
export interface NetworkPoolsParams {
|
|
301
302
|
/** GeckoTerminal network identifier. */
|
|
@@ -304,8 +305,8 @@ export interface NetworkPoolsParams {
|
|
|
304
305
|
export interface NetworkPoolsResponse {
|
|
305
306
|
data: PoolResource[];
|
|
306
307
|
included: (DexMetricResource | DexResource | NetworkResource | TokenResource)[];
|
|
307
|
-
links: LatestPoolsResponseLinks;
|
|
308
308
|
meta: LatestPoolsResponseMeta;
|
|
309
|
+
links: LatestPoolsResponseLinks;
|
|
309
310
|
}
|
|
310
311
|
export interface NetworkRankingsParams {
|
|
311
312
|
/** 1-based result page. */
|
|
@@ -321,10 +322,10 @@ export interface NetworkRelationships {
|
|
|
321
322
|
network_metric?: ResourceLinkage;
|
|
322
323
|
}
|
|
323
324
|
export interface NetworkResource {
|
|
324
|
-
attributes: NetworkAttributes;
|
|
325
325
|
id: string;
|
|
326
|
-
relationships: NetworkRelationships;
|
|
327
326
|
type: string;
|
|
327
|
+
attributes: NetworkAttributes;
|
|
328
|
+
relationships: NetworkRelationships;
|
|
328
329
|
}
|
|
329
330
|
export interface NetworksParams {
|
|
330
331
|
/** Ordering applied to the chain list, e.g. `-24h_volume`. */
|
|
@@ -334,189 +335,189 @@ export interface NetworksResponse {
|
|
|
334
335
|
data: NetworkResource[];
|
|
335
336
|
}
|
|
336
337
|
export interface PairAttributes {
|
|
337
|
-
|
|
338
|
-
base_name: string;
|
|
338
|
+
base_symbol: string;
|
|
339
339
|
base_price_in_currency: string;
|
|
340
|
-
base_price_in_quote: string;
|
|
341
|
-
base_price_in_usd: string;
|
|
342
340
|
base_price_in_usd_percent_change: number;
|
|
343
|
-
|
|
344
|
-
base_token_id: string;
|
|
345
|
-
data_24h: PairAttributesData24h;
|
|
346
|
-
name: string;
|
|
347
|
-
price_change_data: PairAttributesPriceChangeData;
|
|
348
|
-
quote_address: string;
|
|
349
|
-
quote_name: string;
|
|
350
|
-
quote_price_in_base: string;
|
|
341
|
+
quote_symbol: string;
|
|
351
342
|
quote_price_in_currency: string;
|
|
352
|
-
quote_price_in_usd: string;
|
|
353
343
|
quote_price_in_usd_percent_change: number;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
swap_count: number;
|
|
357
|
-
transaction_data: PairAttributesTransactionData;
|
|
358
|
-
volume_data: PairAttributesVolumeData;
|
|
344
|
+
base_price_in_quote: string;
|
|
345
|
+
quote_price_in_base: string;
|
|
359
346
|
volume_in_currency: string;
|
|
360
347
|
volume_in_usd: string;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
348
|
+
transaction_data: PairAttributesTransactionData;
|
|
349
|
+
volume_data: PairAttributesVolumeData;
|
|
350
|
+
price_change_data: PairAttributesPriceChangeData;
|
|
351
|
+
swap_count: number;
|
|
352
|
+
name: string;
|
|
353
|
+
base_address: string;
|
|
354
|
+
quote_address: string;
|
|
355
|
+
base_name: string;
|
|
356
|
+
quote_name: string;
|
|
357
|
+
base_token_id: string;
|
|
358
|
+
quote_token_id: string;
|
|
359
|
+
base_price_in_usd: string;
|
|
360
|
+
quote_price_in_usd: string;
|
|
361
|
+
data_24h: PairAttributesData24h;
|
|
362
|
+
}
|
|
363
|
+
export interface PairAttributesData24h {
|
|
364
|
+
buys: number;
|
|
365
|
+
sells: number;
|
|
366
|
+
total_in_usd: number;
|
|
367
|
+
}
|
|
367
368
|
export interface PairAttributesPriceChangeData {
|
|
368
|
-
last_172800_s: PairAttributesPriceChangeDataEntry;
|
|
369
|
-
last_1800_s: PairAttributesPriceChangeDataEntry;
|
|
370
|
-
last_21600_s: PairAttributesPriceChangeDataEntry;
|
|
371
369
|
last_300_s: PairAttributesPriceChangeDataEntry;
|
|
370
|
+
last_900_s: PairAttributesPriceChangeDataEntry;
|
|
371
|
+
last_1800_s: PairAttributesPriceChangeDataEntry;
|
|
372
372
|
last_3600_s: PairAttributesPriceChangeDataEntry;
|
|
373
|
-
last_43200_s: PairAttributesPriceChangeDataEntry;
|
|
374
373
|
last_7200_s: PairAttributesPriceChangeDataEntry;
|
|
374
|
+
last_21600_s: PairAttributesPriceChangeDataEntry;
|
|
375
|
+
last_43200_s: PairAttributesPriceChangeDataEntry;
|
|
375
376
|
last_86400_s: PairAttributesPriceChangeDataEntry;
|
|
376
|
-
|
|
377
|
+
last_172800_s: PairAttributesPriceChangeDataEntry;
|
|
377
378
|
}
|
|
378
379
|
export interface PairAttributesPriceChangeDataEntry {
|
|
379
|
-
base_token_percentage: number;
|
|
380
|
-
base_token_usd: number;
|
|
381
380
|
prices: PairAttributesPriceChangeDataEntryPrices;
|
|
382
|
-
|
|
381
|
+
base_token_usd: number;
|
|
383
382
|
quote_token_usd: number;
|
|
383
|
+
base_token_percentage: number;
|
|
384
|
+
quote_token_percentage: number;
|
|
384
385
|
}
|
|
385
386
|
export interface PairAttributesPriceChangeDataEntryPrices {
|
|
387
|
+
base_token_low_price_in_usd?: number;
|
|
386
388
|
base_token_high_price_in_usd?: number;
|
|
387
|
-
base_token_high_price_timestamp?: string;
|
|
388
389
|
base_token_last_price_in_usd?: number;
|
|
389
|
-
|
|
390
|
-
base_token_low_price_timestamp?: string;
|
|
390
|
+
quote_token_low_price_in_usd?: number;
|
|
391
391
|
base_token_start_price_in_usd?: number;
|
|
392
392
|
quote_token_high_price_in_usd?: number;
|
|
393
|
-
quote_token_high_price_timestamp?: string;
|
|
394
393
|
quote_token_last_price_in_usd?: number;
|
|
395
|
-
|
|
396
|
-
quote_token_low_price_timestamp?: string;
|
|
394
|
+
base_token_low_price_timestamp?: string;
|
|
397
395
|
quote_token_start_price_in_usd?: number;
|
|
396
|
+
base_token_high_price_timestamp?: string;
|
|
397
|
+
quote_token_low_price_timestamp?: string;
|
|
398
|
+
quote_token_high_price_timestamp?: string;
|
|
398
399
|
}
|
|
399
400
|
export interface PairAttributesTransactionData {
|
|
400
|
-
last_172800_s: PairAttributesTransactionDataEntry;
|
|
401
|
-
last_1800_s: PairAttributesTransactionDataEntry;
|
|
402
|
-
last_21600_s: PairAttributesTransactionDataEntry;
|
|
403
401
|
last_300_s: PairAttributesTransactionDataEntry;
|
|
402
|
+
last_900_s: PairAttributesTransactionDataEntry;
|
|
403
|
+
last_1800_s: PairAttributesTransactionDataEntry;
|
|
404
404
|
last_3600_s: PairAttributesTransactionDataEntry;
|
|
405
|
-
last_43200_s: PairAttributesTransactionDataEntry;
|
|
406
405
|
last_7200_s: PairAttributesTransactionDataEntry;
|
|
406
|
+
last_21600_s: PairAttributesTransactionDataEntry;
|
|
407
|
+
last_43200_s: PairAttributesTransactionDataEntry;
|
|
407
408
|
last_86400_s: PairAttributesTransactionDataEntry;
|
|
408
|
-
|
|
409
|
+
last_172800_s: PairAttributesTransactionDataEntry;
|
|
409
410
|
}
|
|
410
411
|
export interface PairAttributesTransactionDataEntry {
|
|
411
412
|
buys: number;
|
|
412
413
|
sells: number;
|
|
413
414
|
}
|
|
414
415
|
export interface PairAttributesVolumeData {
|
|
415
|
-
last_172800_s: PairAttributesVolumeDataEntry;
|
|
416
|
-
last_1800_s: PairAttributesVolumeDataEntry;
|
|
417
|
-
last_21600_s: PairAttributesVolumeDataEntry;
|
|
418
416
|
last_300_s: PairAttributesVolumeDataEntry;
|
|
417
|
+
last_900_s: PairAttributesVolumeDataEntry;
|
|
418
|
+
last_1800_s: PairAttributesVolumeDataEntry;
|
|
419
419
|
last_3600_s: PairAttributesVolumeDataEntry;
|
|
420
|
-
last_43200_s: PairAttributesVolumeDataEntry;
|
|
421
420
|
last_7200_s: PairAttributesVolumeDataEntry;
|
|
421
|
+
last_21600_s: PairAttributesVolumeDataEntry;
|
|
422
|
+
last_43200_s: PairAttributesVolumeDataEntry;
|
|
422
423
|
last_86400_s: PairAttributesVolumeDataEntry;
|
|
423
|
-
|
|
424
|
+
last_172800_s: PairAttributesVolumeDataEntry;
|
|
424
425
|
}
|
|
425
426
|
export interface PairAttributesVolumeDataEntry {
|
|
426
|
-
buys_in_currency_token: number;
|
|
427
427
|
buys_in_usd: number;
|
|
428
|
-
sells_in_currency_token: number;
|
|
429
428
|
sells_in_usd: number;
|
|
429
|
+
total_in_usd: number;
|
|
430
430
|
total_in_base_token: number;
|
|
431
|
-
total_in_currency_token: number;
|
|
432
431
|
total_in_quote_token: number;
|
|
433
|
-
|
|
432
|
+
buys_in_currency_token: number;
|
|
433
|
+
sells_in_currency_token: number;
|
|
434
|
+
total_in_currency_token: number;
|
|
434
435
|
}
|
|
435
436
|
export interface PairRelationships {
|
|
436
437
|
pool: ResourceLinkage;
|
|
437
438
|
}
|
|
438
439
|
export interface PairResource {
|
|
439
|
-
attributes: PairAttributes;
|
|
440
440
|
id: string;
|
|
441
|
-
relationships: PairRelationships;
|
|
442
441
|
type: string;
|
|
442
|
+
attributes: PairAttributes;
|
|
443
|
+
relationships: PairRelationships;
|
|
443
444
|
}
|
|
444
445
|
export interface PastTokensDeveloperDetailAttributes {
|
|
445
|
-
past_tokens: PastTokensDeveloperDetailAttributesPastTokens[] | string[];
|
|
446
446
|
past_tokens_count: number;
|
|
447
|
+
past_tokens: PastTokensDeveloperDetailAttributesPastTokens[] | string[];
|
|
447
448
|
}
|
|
448
449
|
export interface PastTokensDeveloperDetailAttributesPastTokens {
|
|
449
|
-
address: string;
|
|
450
|
-
fdv_in_usd: number;
|
|
451
|
-
market_cap_in_usd: number | null;
|
|
452
|
-
name: string;
|
|
453
450
|
symbol: string;
|
|
451
|
+
name: string;
|
|
452
|
+
address: string;
|
|
454
453
|
token_image_url: string;
|
|
454
|
+
market_cap_in_usd: number | null;
|
|
455
|
+
fdv_in_usd: number;
|
|
455
456
|
top_pool_address: string;
|
|
456
457
|
}
|
|
457
458
|
export interface PastTokensDeveloperDetailResource {
|
|
458
|
-
attributes: PastTokensDeveloperDetailAttributes;
|
|
459
459
|
id: string;
|
|
460
460
|
type: string;
|
|
461
|
+
attributes: PastTokensDeveloperDetailAttributes;
|
|
461
462
|
}
|
|
462
463
|
export interface PoolAttributes {
|
|
463
464
|
address: string;
|
|
464
|
-
|
|
465
|
+
name?: string;
|
|
466
|
+
from_volume_in_usd?: string;
|
|
467
|
+
to_volume_in_usd?: string;
|
|
465
468
|
api_address?: string;
|
|
466
|
-
|
|
469
|
+
swap_count_24h?: number;
|
|
470
|
+
price_percent_change: string | null;
|
|
471
|
+
price_percent_changes?: PoolAttributesPricePercentChanges;
|
|
472
|
+
pool_fee?: string | null;
|
|
467
473
|
base_token_id: string;
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
474
|
+
token_value_data?: Record<string, PoolAttributesTokenValueDataEntry>;
|
|
475
|
+
price_in_usd?: string;
|
|
476
|
+
reserve_in_usd?: string | null;
|
|
477
|
+
pool_created_at: string;
|
|
478
|
+
net_volume_data_24h?: PoolAttributesNetVolumeData24h;
|
|
471
479
|
graduation_percentage?: number | null;
|
|
480
|
+
graduated_pool_address?: string | null;
|
|
481
|
+
holder_count?: number | null;
|
|
482
|
+
security_indicators_data?: PoolAttributesSecurityIndicatorsData;
|
|
483
|
+
aggregated_network_metrics?: PoolAttributesAggregatedNetworkMetrics;
|
|
484
|
+
fully_diluted_valuation?: string;
|
|
485
|
+
price_in_target_token?: string;
|
|
486
|
+
reserve_threshold_met?: boolean;
|
|
487
|
+
is_suspicious_chart?: boolean | null;
|
|
488
|
+
token_weightages?: Record<string, string> | null;
|
|
489
|
+
token_reserves?: Record<string, PoolAttributesTokenReservesEntry>;
|
|
490
|
+
balancer_pool_id?: string | null;
|
|
491
|
+
swap_url?: string;
|
|
492
|
+
sentiment_votes?: PoolAttributesSentimentVotes;
|
|
493
|
+
trending_narrative?: string | null;
|
|
494
|
+
historical_data?: PoolAttributesHistoricalData;
|
|
495
|
+
security_indicators?: string[];
|
|
472
496
|
gt_score?: number;
|
|
473
497
|
gt_score_details?: PoolAttributesGtScoreDetails;
|
|
498
|
+
pool_reports_count?: number;
|
|
499
|
+
latest_swap_timestamp?: string;
|
|
474
500
|
high_low_price_data_by_token_id?: Record<string, PoolAttributesHighLowPriceDataByTokenIdEntry>;
|
|
475
|
-
historical_data?: PoolAttributesHistoricalData;
|
|
476
|
-
holder_count?: number | null;
|
|
477
501
|
is_nsfw?: boolean;
|
|
478
|
-
is_pool_address_explorable?: boolean;
|
|
479
502
|
is_stale_pool?: boolean | null;
|
|
480
|
-
|
|
481
|
-
latest_swap_timestamp?: string;
|
|
482
|
-
name?: string;
|
|
483
|
-
net_volume_data_24h?: PoolAttributesNetVolumeData24h;
|
|
484
|
-
pool_created_at: string;
|
|
485
|
-
pool_fee?: string | null;
|
|
486
|
-
pool_reports_count?: number;
|
|
487
|
-
price_in_target_token?: string;
|
|
488
|
-
price_in_usd?: string;
|
|
489
|
-
price_percent_change: string | null;
|
|
490
|
-
price_percent_changes?: PoolAttributesPricePercentChanges;
|
|
491
|
-
price_sparkline_7d?: number[] | null;
|
|
492
|
-
reserve_in_usd?: string | null;
|
|
493
|
-
reserve_threshold_met?: boolean;
|
|
503
|
+
is_pool_address_explorable?: boolean;
|
|
494
504
|
risk_flags?: string[];
|
|
495
|
-
|
|
496
|
-
security_indicators_data?: PoolAttributesSecurityIndicatorsData;
|
|
497
|
-
sentiment_votes?: PoolAttributesSentimentVotes;
|
|
498
|
-
suggested_pools_by_liquidity?: PoolAttributesSuggestedPoolsByLiquidity;
|
|
499
|
-
swap_count_24h?: number;
|
|
500
|
-
swap_url?: string;
|
|
505
|
+
price_sparkline_7d?: number[] | null;
|
|
501
506
|
tagged_token_id?: string;
|
|
502
|
-
|
|
503
|
-
token_reserves?: Record<string, PoolAttributesTokenReservesEntry>;
|
|
504
|
-
token_value_data?: Record<string, PoolAttributesTokenValueDataEntry>;
|
|
505
|
-
token_weightages?: Record<string, string> | null;
|
|
506
|
-
trending_narrative?: string | null;
|
|
507
|
+
suggested_pools_by_liquidity?: PoolAttributesSuggestedPoolsByLiquidity;
|
|
507
508
|
}
|
|
508
509
|
export interface PoolAttributesAggregatedNetworkMetrics {
|
|
509
|
-
total_swap_count_24h: number;
|
|
510
|
-
total_swap_volume_percent_change_24h: string;
|
|
511
510
|
total_swap_volume_usd_24h: string;
|
|
512
511
|
total_swap_volume_usd_48h_24h: string;
|
|
512
|
+
total_swap_count_24h: number;
|
|
513
|
+
total_swap_volume_percent_change_24h: string;
|
|
513
514
|
}
|
|
514
515
|
export interface PoolAttributesGtScoreDetails {
|
|
515
|
-
creation: number;
|
|
516
|
-
holders: number;
|
|
517
516
|
info: number;
|
|
518
517
|
pool: number;
|
|
519
518
|
transactions: number;
|
|
519
|
+
holders: number;
|
|
520
|
+
creation: number;
|
|
520
521
|
}
|
|
521
522
|
export interface PoolAttributesHighLowPriceDataByTokenIdEntry {
|
|
522
523
|
high_price_in_usd_24h: number;
|
|
@@ -525,68 +526,68 @@ export interface PoolAttributesHighLowPriceDataByTokenIdEntry {
|
|
|
525
526
|
low_price_timestamp_24h: string;
|
|
526
527
|
}
|
|
527
528
|
export interface PoolAttributesHistoricalData {
|
|
529
|
+
last_5m: PoolAttributesHistoricalDataEntry;
|
|
528
530
|
last_15m: PoolAttributesHistoricalDataEntry;
|
|
529
|
-
last_1h: PoolAttributesHistoricalDataEntry;
|
|
530
|
-
last_24h: PoolAttributesHistoricalDataEntry;
|
|
531
531
|
last_30m: PoolAttributesHistoricalDataEntry;
|
|
532
|
-
|
|
532
|
+
last_1h: PoolAttributesHistoricalDataEntry;
|
|
533
533
|
last_6h: PoolAttributesHistoricalDataEntry;
|
|
534
|
+
last_24h: PoolAttributesHistoricalDataEntry;
|
|
534
535
|
}
|
|
535
536
|
export interface PoolAttributesHistoricalDataEntry {
|
|
536
|
-
|
|
537
|
-
buy_volume_in_usd?: string;
|
|
537
|
+
swaps_count: number;
|
|
538
538
|
buyers_count: number;
|
|
539
|
-
net_volume_in_usd?: string;
|
|
540
539
|
price_in_usd: string | null;
|
|
541
|
-
sell_swaps_count: number;
|
|
542
|
-
sell_volume_in_usd?: string;
|
|
543
540
|
sellers_count: number;
|
|
544
|
-
swaps_count: number;
|
|
545
541
|
volume_in_usd: string;
|
|
542
|
+
buy_volume_in_usd?: string;
|
|
543
|
+
sell_volume_in_usd?: string;
|
|
544
|
+
net_volume_in_usd?: string;
|
|
545
|
+
buy_swaps_count: number;
|
|
546
|
+
sell_swaps_count: number;
|
|
546
547
|
}
|
|
547
548
|
export interface PoolAttributesNetVolumeData24h {
|
|
548
549
|
buy_volume_in_usd: string;
|
|
549
|
-
net_volume_in_usd: string;
|
|
550
550
|
sell_volume_in_usd: string;
|
|
551
|
+
net_volume_in_usd: string;
|
|
551
552
|
}
|
|
552
553
|
export interface PoolAttributesPricePercentChanges {
|
|
554
|
+
last_5m: string | null;
|
|
553
555
|
last_15m: string | null;
|
|
554
|
-
last_1h: string | null;
|
|
555
|
-
last_24h: string | null;
|
|
556
556
|
last_30m: string | null;
|
|
557
|
-
|
|
557
|
+
last_1h: string | null;
|
|
558
558
|
last_6h: string | null;
|
|
559
|
+
last_24h: string | null;
|
|
559
560
|
}
|
|
560
561
|
export interface PoolAttributesSecurityIndicatorsData {
|
|
561
|
-
bundler_percentage: number | null;
|
|
562
|
-
buy_tax: number | null;
|
|
563
|
-
cluster_percentage: number | null;
|
|
564
|
-
developer_holding_percentage: number | null;
|
|
565
|
-
early_buyers_percentage: number | null;
|
|
566
|
-
freezable: boolean | null;
|
|
567
562
|
gt_score: number | null;
|
|
563
|
+
pool_created_at: string;
|
|
564
|
+
developer_holding_percentage: number | null;
|
|
565
|
+
top_10_holders_percentage: number | null;
|
|
568
566
|
holder_count: number | null;
|
|
569
567
|
honeypot: boolean | null;
|
|
570
|
-
is_liquidity_locked: boolean | null;
|
|
571
568
|
mintable: boolean | null;
|
|
572
|
-
|
|
569
|
+
freezable: boolean | null;
|
|
570
|
+
buy_tax: number | null;
|
|
573
571
|
sell_tax: number | null;
|
|
574
|
-
|
|
572
|
+
is_liquidity_locked: boolean | null;
|
|
573
|
+
early_buyers_percentage: number | null;
|
|
574
|
+
bundler_percentage: number | null;
|
|
575
|
+
cluster_percentage: number | null;
|
|
575
576
|
}
|
|
576
577
|
export interface PoolAttributesSentimentVotes {
|
|
577
|
-
down_percentage: number;
|
|
578
578
|
total: number;
|
|
579
579
|
up_percentage: number;
|
|
580
|
+
down_percentage: number;
|
|
580
581
|
}
|
|
581
582
|
export interface PoolAttributesSuggestedPoolsByLiquidity {
|
|
582
583
|
by_base_token_address: string[];
|
|
583
584
|
by_base_token_symbol: PoolAttributesSuggestedPoolsByLiquidityByBaseTokenSymbol[];
|
|
584
585
|
}
|
|
585
586
|
export interface PoolAttributesSuggestedPoolsByLiquidityByBaseTokenSymbol {
|
|
587
|
+
name: string;
|
|
586
588
|
address: string;
|
|
587
589
|
dex_identifier: string;
|
|
588
590
|
dex_name: string;
|
|
589
|
-
name: string;
|
|
590
591
|
network_identifier: string;
|
|
591
592
|
}
|
|
592
593
|
export interface PoolAttributesTokenReservesEntry {
|
|
@@ -600,84 +601,84 @@ export interface PoolAttributesTokenValueDataEntry {
|
|
|
600
601
|
}
|
|
601
602
|
export type PoolFilterTimeframe = "5m" | "1h" | "6h" | "24h";
|
|
602
603
|
export interface PoolLockedLiquidityAttributes {
|
|
603
|
-
final_unlock_timestamp: string | null;
|
|
604
|
-
locked_percent: number;
|
|
605
|
-
next_unlock_percent: number | null;
|
|
606
604
|
next_unlock_timestamp: string | null;
|
|
605
|
+
final_unlock_timestamp: string | null;
|
|
607
606
|
source: string;
|
|
608
607
|
url: string;
|
|
608
|
+
locked_percent: number;
|
|
609
|
+
next_unlock_percent: number | null;
|
|
609
610
|
}
|
|
610
611
|
export interface PoolLockedLiquidityResource {
|
|
611
|
-
attributes: PoolLockedLiquidityAttributes;
|
|
612
612
|
id: string;
|
|
613
613
|
type: string;
|
|
614
|
+
attributes: PoolLockedLiquidityAttributes;
|
|
614
615
|
}
|
|
615
616
|
export interface PoolMetricAttributes {
|
|
616
|
-
currency_token_id: number;
|
|
617
|
-
currency_token_symbol: string;
|
|
618
617
|
dex_id: number;
|
|
619
|
-
|
|
618
|
+
pool_id: number;
|
|
620
619
|
from_token_id: number;
|
|
620
|
+
to_token_id: number;
|
|
621
|
+
currency_token_id: number;
|
|
621
622
|
from_token_name: string;
|
|
622
623
|
from_token_symbol: string;
|
|
623
|
-
|
|
624
|
-
from_volume_in_currency_token: string;
|
|
625
|
-
from_volume_in_usd: string;
|
|
626
|
-
historical_data: Record<string, PoolMetricAttributesHistoricalDataEntry>;
|
|
627
|
-
pool_id: number;
|
|
628
|
-
price: string;
|
|
629
|
-
reserve_in_currency_token: string;
|
|
630
|
-
reserve_in_usd: string;
|
|
631
|
-
swap_count_24h: number;
|
|
632
|
-
to_token_address: string;
|
|
633
|
-
to_token_id: number;
|
|
624
|
+
from_token_address: string;
|
|
634
625
|
to_token_name: string;
|
|
635
626
|
to_token_symbol: string;
|
|
627
|
+
to_token_address: string;
|
|
628
|
+
currency_token_symbol: string;
|
|
629
|
+
price: string;
|
|
630
|
+
from_volume: string;
|
|
636
631
|
to_volume: string;
|
|
632
|
+
reserve_in_usd: string;
|
|
633
|
+
reserve_in_currency_token: string;
|
|
634
|
+
from_volume_in_currency_token: string;
|
|
635
|
+
from_volume_in_usd: string;
|
|
637
636
|
to_volume_in_currency_token: string;
|
|
638
637
|
to_volume_in_usd: string;
|
|
638
|
+
swap_count_24h: number;
|
|
639
|
+
historical_data: Record<string, PoolMetricAttributesHistoricalDataEntry>;
|
|
639
640
|
}
|
|
640
641
|
export interface PoolMetricAttributesHistoricalDataEntry {
|
|
641
|
-
last_172800_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
642
|
-
last_1800_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
643
|
-
last_21600_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
644
642
|
last_300_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
643
|
+
last_900_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
644
|
+
last_1800_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
645
645
|
last_3600_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
646
|
-
last_43200_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
647
646
|
last_7200_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
647
|
+
last_21600_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
648
|
+
last_43200_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
648
649
|
last_86400_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
649
|
-
|
|
650
|
+
last_172800_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
650
651
|
}
|
|
651
652
|
export interface PoolMetricAttributesHistoricalDataEntryEntry {
|
|
652
|
-
|
|
653
|
-
buy_volume_in_usd: string;
|
|
653
|
+
swaps_count: number;
|
|
654
654
|
buyers_count: number;
|
|
655
|
-
net_volume_in_usd: string;
|
|
656
655
|
price_in_usd: string | null;
|
|
657
|
-
sell_swaps_count: number;
|
|
658
|
-
sell_volume_in_usd: string;
|
|
659
656
|
sellers_count: number;
|
|
660
|
-
swaps_count: number;
|
|
661
657
|
volume_in_usd: string;
|
|
658
|
+
buy_swaps_count: number;
|
|
659
|
+
sell_swaps_count: number;
|
|
660
|
+
buy_volume_in_usd: string;
|
|
661
|
+
net_volume_in_usd: string;
|
|
662
|
+
sell_volume_in_usd: string;
|
|
662
663
|
}
|
|
663
664
|
export interface PoolMetricResource {
|
|
664
|
-
attributes: PoolMetricAttributes;
|
|
665
665
|
id: string;
|
|
666
666
|
type: string;
|
|
667
|
+
attributes: PoolMetricAttributes;
|
|
667
668
|
}
|
|
668
669
|
export interface PoolParams {
|
|
670
|
+
/** GeckoTerminal network identifier. */
|
|
671
|
+
network: string;
|
|
669
672
|
/** On-chain pool address. */
|
|
670
673
|
address: string;
|
|
671
674
|
/** Index of the token to quote the pool in. */
|
|
672
675
|
base_token?: number;
|
|
673
|
-
/** GeckoTerminal network identifier. */
|
|
674
|
-
network: string;
|
|
675
676
|
}
|
|
676
677
|
export interface PoolRelatedPoolsParams {
|
|
677
|
-
/** On-chain pool address. */
|
|
678
|
-
address: string;
|
|
679
678
|
/** GeckoTerminal network identifier. */
|
|
680
679
|
network: string;
|
|
680
|
+
/** On-chain pool address. */
|
|
681
|
+
address: string;
|
|
681
682
|
}
|
|
682
683
|
export interface PoolRelatedPoolsResponse {
|
|
683
684
|
data: RelatedPoolResource[];
|
|
@@ -685,97 +686,97 @@ export interface PoolRelatedPoolsResponse {
|
|
|
685
686
|
}
|
|
686
687
|
export interface PoolRelationships {
|
|
687
688
|
dex?: ResourceLinkage;
|
|
688
|
-
pairs?: ResourceLinkageList;
|
|
689
|
-
pool_metric?: ResourceLinkage;
|
|
690
689
|
tokens: ResourceLinkageList;
|
|
690
|
+
pool_metric?: ResourceLinkage;
|
|
691
|
+
pairs?: ResourceLinkageList;
|
|
691
692
|
}
|
|
692
693
|
export interface PoolResource {
|
|
693
|
-
attributes: PoolAttributes;
|
|
694
694
|
id: string;
|
|
695
|
-
relationships: PoolRelationships;
|
|
696
695
|
type: string;
|
|
696
|
+
attributes: PoolAttributes;
|
|
697
|
+
relationships: PoolRelationships;
|
|
697
698
|
}
|
|
698
699
|
export interface PoolResponse {
|
|
699
700
|
data: PoolResource;
|
|
700
701
|
included: (DexLinkServiceResource | DexResource | ExplorerResource | NetworkLinkServiceResource | NetworkResource | PairResource | PoolLockedLiquidityResource | TagResource | TokenDeveloperDetailResource | TokenResource | TokenSecurityMetricResource)[];
|
|
701
702
|
}
|
|
702
703
|
export interface PoolScreenerRequest {
|
|
703
|
-
/**
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
|
|
709
|
-
/** Fully diluted valuation in USD. */
|
|
710
|
-
fdv_in_usd?: RangeFilter | null;
|
|
711
|
-
/** Only pools above GeckoTerminal's GT score threshold. */
|
|
712
|
-
good_gt_score?: boolean | null;
|
|
713
|
-
/** Only pools whose token declares social links. */
|
|
714
|
-
has_social?: boolean | null;
|
|
715
|
-
/** Number of token holders. */
|
|
716
|
-
holder_count?: RangeFilter | null;
|
|
704
|
+
/** 1-based result page. */
|
|
705
|
+
page?: number;
|
|
706
|
+
/** Ranking applied before pagination. Omit for GeckoTerminal's default. */
|
|
707
|
+
sort?: PoolSort | null;
|
|
708
|
+
/** 24h traded volume in USD. */
|
|
709
|
+
volume_24h?: RangeFilter | null;
|
|
717
710
|
/** Pool liquidity in USD. */
|
|
718
711
|
liquidity?: RangeFilter | null;
|
|
712
|
+
/** Fully diluted valuation in USD. */
|
|
713
|
+
fdv_in_usd?: RangeFilter | null;
|
|
719
714
|
/** Market cap in USD. */
|
|
720
715
|
mc_in_usd?: RangeFilter | null;
|
|
721
|
-
/**
|
|
722
|
-
|
|
723
|
-
/** Exclude tokens flagged as honeypots. */
|
|
724
|
-
no_honeypot?: boolean | null;
|
|
725
|
-
/** Only pools whose token is listed on CoinGecko. */
|
|
726
|
-
on_coingecko?: boolean | null;
|
|
727
|
-
/** 1-based result page. */
|
|
728
|
-
page?: number;
|
|
729
|
-
/** Pool age in hours. */
|
|
730
|
-
pool_creation_hours_ago?: RangeFilter | null;
|
|
716
|
+
/** Buy tax percentage. */
|
|
717
|
+
buy_tax?: RangeFilter | null;
|
|
731
718
|
/** Sell tax percentage. */
|
|
732
719
|
sell_tax?: RangeFilter | null;
|
|
733
|
-
/**
|
|
734
|
-
|
|
735
|
-
/** Ranking applied before pagination. Omit for GeckoTerminal's default. */
|
|
736
|
-
sort?: PoolSort | null;
|
|
720
|
+
/** Pool age in hours. */
|
|
721
|
+
pool_creation_hours_ago?: RangeFilter | null;
|
|
737
722
|
/** Share of supply held by the ten largest holders. */
|
|
738
723
|
top_10_holders_percentage?: RangeFilter | null;
|
|
724
|
+
/** Number of token holders. */
|
|
725
|
+
holder_count?: RangeFilter | null;
|
|
739
726
|
/** Transaction count over the chosen window. */
|
|
740
727
|
tx_count?: TimeframedRangeFilter | null;
|
|
741
|
-
/**
|
|
742
|
-
|
|
728
|
+
/** Buy count over the chosen window. */
|
|
729
|
+
buys?: TimeframedRangeFilter | null;
|
|
730
|
+
/** Sell count over the chosen window. */
|
|
731
|
+
sells?: TimeframedRangeFilter | null;
|
|
732
|
+
/** Only pools whose token is listed on CoinGecko. */
|
|
733
|
+
on_coingecko?: boolean | null;
|
|
734
|
+
/** Only pools whose token declares social links. */
|
|
735
|
+
has_social?: boolean | null;
|
|
736
|
+
/** Exclude tokens flagged as honeypots. */
|
|
737
|
+
no_honeypot?: boolean | null;
|
|
738
|
+
/** Only pools above GeckoTerminal's GT score threshold. */
|
|
739
|
+
good_gt_score?: boolean | null;
|
|
740
|
+
/** Restrict to these network identifiers. */
|
|
741
|
+
networks?: string[] | null;
|
|
742
|
+
/** Restrict to these DEX identifiers. */
|
|
743
|
+
dexes?: string[] | null;
|
|
743
744
|
}
|
|
744
745
|
export interface PoolSenderSwapsParams {
|
|
746
|
+
/** GeckoTerminal network identifier. */
|
|
747
|
+
network: string;
|
|
745
748
|
/** On-chain pool address. */
|
|
746
749
|
address: string;
|
|
747
750
|
/** Unix timestamp for the start of the window. */
|
|
748
751
|
from_timestamp: number;
|
|
749
|
-
/**
|
|
750
|
-
|
|
751
|
-
/** Quote prices in the other token of the pair. */
|
|
752
|
-
inverted?: boolean;
|
|
753
|
-
/** GeckoTerminal network identifier. */
|
|
754
|
-
network: string;
|
|
752
|
+
/** Unix timestamp for the end of the window. */
|
|
753
|
+
to_timestamp: number;
|
|
755
754
|
/** Pair id from the pool's `pairs` relationship. */
|
|
756
755
|
pair_id: string;
|
|
757
756
|
/** Restrict swaps to one sender wallet address. */
|
|
758
757
|
sender?: string | null;
|
|
759
|
-
/**
|
|
760
|
-
|
|
758
|
+
/** Tag swaps made by the token's developer wallet. */
|
|
759
|
+
include_developer?: boolean;
|
|
760
|
+
/** Quote prices in the other token of the pair. */
|
|
761
|
+
inverted?: boolean;
|
|
761
762
|
}
|
|
762
763
|
export interface PoolSenderSwapsResponse {
|
|
763
764
|
data: SenderSwapResource[];
|
|
764
765
|
}
|
|
765
766
|
export type PoolSort = "-5m_trend_score" | "-1h_trend_score" | "-6h_trend_score" | "-24h_trend_score" | "-24h_transactions" | "-24h_volume" | "-pool_creation_date" | "-24h_price_percent_change" | "-6h_price_percent_change" | "-1h_price_percent_change" | "-5m_price_percent_change" | "fdv" | "-fdv" | "liquidity" | "-liquidity" | "mc" | "-mc";
|
|
766
767
|
export interface PoolSwapsParams {
|
|
767
|
-
/** On-chain pool address. */
|
|
768
|
-
address: string;
|
|
769
|
-
/** Quote prices in the other token of the pair. */
|
|
770
|
-
inverted?: boolean;
|
|
771
768
|
/** GeckoTerminal network identifier. */
|
|
772
769
|
network: string;
|
|
770
|
+
/** On-chain pool address. */
|
|
771
|
+
address: string;
|
|
772
|
+
/** Pair id from the pool's `pairs` relationship. */
|
|
773
|
+
pair_id: string;
|
|
773
774
|
/** Return swaps older than this cursor. Defaults to the current unix timestamp when neither cursor is supplied. */
|
|
774
775
|
page_after?: string | null;
|
|
775
776
|
/** Return swaps newer than this cursor. */
|
|
776
777
|
page_before?: string | null;
|
|
777
|
-
/**
|
|
778
|
-
|
|
778
|
+
/** Quote prices in the other token of the pair. */
|
|
779
|
+
inverted?: boolean;
|
|
779
780
|
/** Restrict swaps to one sender wallet address. */
|
|
780
781
|
sender?: string | null;
|
|
781
782
|
}
|
|
@@ -786,17 +787,17 @@ export interface PoolSwapsResponse {
|
|
|
786
787
|
meta?: PoolSwapsResponseMeta;
|
|
787
788
|
}
|
|
788
789
|
export interface PoolSwapsResponseLinks {
|
|
789
|
-
next: string;
|
|
790
790
|
prev: string;
|
|
791
|
+
next: string;
|
|
791
792
|
}
|
|
792
793
|
export interface PoolSwapsResponseMeta {
|
|
793
794
|
next_limit: number;
|
|
794
795
|
}
|
|
795
796
|
export interface PoolTokenInfoSnapshotsParams {
|
|
796
|
-
/** On-chain pool address. */
|
|
797
|
-
address: string;
|
|
798
797
|
/** GeckoTerminal network identifier. */
|
|
799
798
|
network: string;
|
|
799
|
+
/** On-chain pool address. */
|
|
800
|
+
address: string;
|
|
800
801
|
}
|
|
801
802
|
export interface PoolTokenInfoSnapshotsResponse {
|
|
802
803
|
data: TokenResource[];
|
|
@@ -804,10 +805,10 @@ export interface PoolTokenInfoSnapshotsResponse {
|
|
|
804
805
|
export interface PoolsResponse {
|
|
805
806
|
data: PoolResource[];
|
|
806
807
|
included: (DexResource | NetworkResource | TokenResource)[];
|
|
807
|
-
links: LatestPoolsResponseLinks;
|
|
808
808
|
meta: LatestPoolsResponseMeta;
|
|
809
|
+
links: LatestPoolsResponseLinks;
|
|
809
810
|
}
|
|
810
|
-
export type PublicError = "blocked" | "concurrency_exceeded" | "timeout" | "extraction_failed" | "upstream_blocked" | "upstream_unavailable" | "upstream_response_invalid" | "invalid_url_scheme" | "invalid_url_host" | "unauthenticated" | "forbidden" | "resource_forbidden" | "not_found" | "rate_limited" | "invalid_request" | "invalid_cursor" | "insufficient_credits" | "internal_error";
|
|
811
|
+
export type PublicError = "blocked" | "concurrency_exceeded" | "timeout" | "extraction_failed" | "upstream_blocked" | "upstream_unavailable" | "upstream_response_invalid" | "invalid_url_scheme" | "invalid_url_host" | "unauthenticated" | "forbidden" | "resource_forbidden" | "not_found" | "endpoint_retired" | "rate_limited" | "invalid_request" | "invalid_cursor" | "insufficient_credits" | "internal_error";
|
|
811
812
|
export interface RangeFilter {
|
|
812
813
|
/** Inclusive lower bound. */
|
|
813
814
|
gte?: number | null;
|
|
@@ -816,20 +817,20 @@ export interface RangeFilter {
|
|
|
816
817
|
}
|
|
817
818
|
export interface RelatedPoolAttributes {
|
|
818
819
|
address: string;
|
|
819
|
-
liquidity: string;
|
|
820
820
|
pool_fee: string | null;
|
|
821
821
|
token_id: string;
|
|
822
|
+
liquidity: string;
|
|
822
823
|
volume_in_usd_24h: string;
|
|
823
824
|
}
|
|
824
825
|
export interface RelatedPoolRelationships {
|
|
825
|
-
dex: ResourceLinkage;
|
|
826
826
|
tokens: ResourceLinkageList;
|
|
827
|
+
dex: ResourceLinkage;
|
|
827
828
|
}
|
|
828
829
|
export interface RelatedPoolResource {
|
|
829
|
-
attributes: RelatedPoolAttributes;
|
|
830
830
|
id: string;
|
|
831
|
-
relationships: RelatedPoolRelationships;
|
|
832
831
|
type: string;
|
|
832
|
+
attributes: RelatedPoolAttributes;
|
|
833
|
+
relationships: RelatedPoolRelationships;
|
|
833
834
|
}
|
|
834
835
|
export interface ResourceIdentifier {
|
|
835
836
|
id: string;
|
|
@@ -850,80 +851,80 @@ export interface RevivalRadarPoolsResponseMeta {
|
|
|
850
851
|
sections: RevivalRadarPoolsResponseMetaSections;
|
|
851
852
|
}
|
|
852
853
|
export interface RevivalRadarPoolsResponseMetaSections {
|
|
853
|
-
revived: string[];
|
|
854
854
|
reviving: string[];
|
|
855
|
+
revived: string[];
|
|
855
856
|
sunsetting: string[];
|
|
856
857
|
}
|
|
857
858
|
export interface SearchAttributes {
|
|
858
|
-
dexes: SearchAttributesDexes[] | string[];
|
|
859
859
|
networks: SearchAttributesNetworks[] | string[];
|
|
860
|
-
|
|
860
|
+
dexes: SearchAttributesDexes[] | string[];
|
|
861
861
|
pools: SearchAttributesPools[] | string[];
|
|
862
|
+
pairs: string[];
|
|
862
863
|
tags: SearchAttributesTags[] | string[];
|
|
863
864
|
}
|
|
864
865
|
export interface SearchAttributesDexes {
|
|
866
|
+
type: string;
|
|
867
|
+
name: string;
|
|
865
868
|
identifier: string;
|
|
866
869
|
image_url: string;
|
|
867
|
-
name: string;
|
|
868
|
-
network: TrendAttributesNewPoolsNetwork;
|
|
869
|
-
pools_count: number;
|
|
870
|
-
rank_by_volume_usd_24h: number;
|
|
871
|
-
swap_count_24h: number;
|
|
872
870
|
swap_volume_usd_24h: string;
|
|
873
|
-
|
|
871
|
+
swap_count_24h: number;
|
|
872
|
+
rank_by_volume_usd_24h: number;
|
|
873
|
+
pools_count: number;
|
|
874
|
+
network: TrendAttributesNewPoolsNetwork;
|
|
874
875
|
}
|
|
875
876
|
export interface SearchAttributesNetworks {
|
|
877
|
+
type: string;
|
|
878
|
+
name: string;
|
|
876
879
|
identifier: string;
|
|
877
880
|
image_url: string;
|
|
878
|
-
name: string;
|
|
879
|
-
pools_count: number;
|
|
880
|
-
rank_by_volume_usd_24h: number;
|
|
881
|
-
swap_count_24h: number;
|
|
882
881
|
swap_volume_usd_24h: string;
|
|
883
|
-
|
|
882
|
+
swap_count_24h: number;
|
|
883
|
+
rank_by_volume_usd_24h: number;
|
|
884
|
+
pools_count: number;
|
|
884
885
|
}
|
|
885
886
|
export interface SearchAttributesPools {
|
|
887
|
+
type: string;
|
|
886
888
|
address: string;
|
|
887
889
|
api_address: string;
|
|
888
|
-
dex: TrendAttributesNewPoolsDex;
|
|
889
|
-
fdv_in_usd: string | null;
|
|
890
|
-
from_volume_in_usd: string;
|
|
891
|
-
gt_score: number;
|
|
892
|
-
market_cap_in_usd: string | null;
|
|
893
|
-
network: TrendAttributesNewPoolsNetwork;
|
|
894
|
-
on_coingecko: boolean;
|
|
895
|
-
pool_creation_date: string;
|
|
896
|
-
pool_id: number;
|
|
897
890
|
price_in_usd: string;
|
|
898
|
-
price_percent_change: string;
|
|
899
891
|
reserve_in_usd: string;
|
|
892
|
+
from_volume_in_usd: string;
|
|
900
893
|
to_volume_in_usd: string;
|
|
894
|
+
price_percent_change: string;
|
|
895
|
+
on_coingecko: boolean;
|
|
896
|
+
market_cap_in_usd: string | null;
|
|
897
|
+
fdv_in_usd: string | null;
|
|
898
|
+
pool_id: number;
|
|
899
|
+
network: TrendAttributesNewPoolsNetwork;
|
|
900
|
+
dex: TrendAttributesNewPoolsDex;
|
|
901
901
|
tokens: SearchAttributesPoolsTokens[];
|
|
902
|
-
type: string;
|
|
903
902
|
volume_percent_change_24h: string;
|
|
903
|
+
pool_creation_date: string;
|
|
904
|
+
gt_score: number;
|
|
904
905
|
}
|
|
905
906
|
export interface SearchAttributesPoolsTokens {
|
|
907
|
+
name: string;
|
|
908
|
+
symbol: string;
|
|
906
909
|
address: string;
|
|
907
|
-
holder_count: number | null;
|
|
908
910
|
image_url: string;
|
|
909
911
|
is_base_token: boolean;
|
|
910
912
|
is_verified: boolean;
|
|
911
|
-
|
|
912
|
-
symbol: string;
|
|
913
|
+
holder_count: number | null;
|
|
913
914
|
}
|
|
914
915
|
export interface SearchAttributesTags {
|
|
915
|
-
identifier: string;
|
|
916
|
-
name: string;
|
|
917
916
|
type: string;
|
|
917
|
+
name: string;
|
|
918
|
+
identifier: string;
|
|
918
919
|
}
|
|
919
920
|
export interface SearchParams {
|
|
920
921
|
/** Free-text query matched against tokens, pools, categories, chains and DEXes. */
|
|
921
922
|
query: string;
|
|
922
923
|
}
|
|
923
924
|
export interface SearchResource {
|
|
924
|
-
attributes: SearchAttributes;
|
|
925
925
|
id: string;
|
|
926
926
|
type: string;
|
|
927
|
+
attributes: SearchAttributes;
|
|
927
928
|
}
|
|
928
929
|
export interface SearchResponse {
|
|
929
930
|
data: SearchResource;
|
|
@@ -932,121 +933,121 @@ export interface SearchTrendAttributes {
|
|
|
932
933
|
search_items: SearchTrendAttributesSearchItems[];
|
|
933
934
|
}
|
|
934
935
|
export interface SearchTrendAttributesSearchItems {
|
|
935
|
-
|
|
936
|
-
base_token_name: string;
|
|
937
|
-
base_token_symbol: string;
|
|
938
|
-
dex_identifier: string;
|
|
939
|
-
dex_image_url: string;
|
|
940
|
-
is_verified: boolean;
|
|
936
|
+
type: string;
|
|
941
937
|
name: string;
|
|
942
938
|
network_identifier: string;
|
|
939
|
+
dex_identifier: string;
|
|
943
940
|
network_image_url: string;
|
|
944
|
-
|
|
941
|
+
dex_image_url: string;
|
|
945
942
|
pool_address: string;
|
|
946
943
|
pool_api_address: string;
|
|
944
|
+
base_token_name: string;
|
|
945
|
+
base_token_symbol: string;
|
|
946
|
+
base_token_image_url: string;
|
|
947
947
|
price_percent_change: string;
|
|
948
|
-
|
|
949
|
-
|
|
948
|
+
on_coingecko: boolean;
|
|
949
|
+
is_verified: boolean;
|
|
950
950
|
volume_in_usd_24h: string;
|
|
951
|
+
reserve_in_usd: string;
|
|
951
952
|
}
|
|
952
953
|
export interface SearchTrendResource {
|
|
953
|
-
attributes: SearchTrendAttributes;
|
|
954
954
|
id: string;
|
|
955
955
|
type: string;
|
|
956
|
+
attributes: SearchTrendAttributes;
|
|
956
957
|
}
|
|
957
958
|
export interface SearchTrendsResponse {
|
|
958
959
|
data: SearchTrendResource;
|
|
959
960
|
}
|
|
960
961
|
export interface SenderSwapAttributes {
|
|
962
|
+
timestamp: string;
|
|
963
|
+
swap_total_in_usd: string;
|
|
961
964
|
action: string;
|
|
962
965
|
by: string;
|
|
963
|
-
swap_total_in_usd: string;
|
|
964
|
-
timestamp: string;
|
|
965
966
|
}
|
|
966
967
|
export interface SenderSwapResource {
|
|
967
|
-
attributes: SenderSwapAttributes;
|
|
968
968
|
id: string;
|
|
969
969
|
type: string;
|
|
970
|
+
attributes: SenderSwapAttributes;
|
|
970
971
|
}
|
|
971
972
|
export interface SwapAttributes {
|
|
973
|
+
timestamp: string;
|
|
974
|
+
tx_hash: string;
|
|
975
|
+
tx_from_address: string;
|
|
972
976
|
from_token_amount: string;
|
|
973
|
-
from_token_total_in_usd: string;
|
|
974
977
|
price_from: string;
|
|
975
978
|
price_from_in_currency_token: string;
|
|
976
979
|
price_from_in_usd: string;
|
|
980
|
+
from_token_total_in_usd: string;
|
|
981
|
+
to_token_amount: string;
|
|
977
982
|
price_to: string;
|
|
978
983
|
price_to_in_currency_token: string;
|
|
979
984
|
price_to_in_usd: string;
|
|
980
|
-
timestamp: string;
|
|
981
|
-
to_token_amount: string;
|
|
982
985
|
to_token_total_in_usd: string;
|
|
983
|
-
tx_from_address: string;
|
|
984
|
-
tx_hash: string;
|
|
985
986
|
}
|
|
986
987
|
export interface SwapRelationships {
|
|
987
988
|
from_token: ResourceLinkage;
|
|
988
989
|
to_token: ResourceLinkage;
|
|
989
990
|
}
|
|
990
991
|
export interface SwapResource {
|
|
991
|
-
attributes: SwapAttributes;
|
|
992
992
|
id: string;
|
|
993
|
-
relationships: SwapRelationships;
|
|
994
993
|
type: string;
|
|
994
|
+
attributes: SwapAttributes;
|
|
995
|
+
relationships: SwapRelationships;
|
|
995
996
|
}
|
|
996
997
|
export interface TagAttributes {
|
|
997
|
-
buy_count_24h?: number;
|
|
998
|
-
description?: string | null;
|
|
999
|
-
fdv_in_usd?: string;
|
|
1000
|
-
icon_url: string | null;
|
|
1001
|
-
identifier: string;
|
|
1002
998
|
name: string;
|
|
999
|
+
identifier: string;
|
|
1000
|
+
icon_url: string | null;
|
|
1003
1001
|
pool_trend_rank: number | null;
|
|
1004
|
-
|
|
1002
|
+
description?: string | null;
|
|
1003
|
+
buy_count_24h?: number;
|
|
1005
1004
|
sell_count_24h?: number;
|
|
1006
|
-
swap_count_24h?: number;
|
|
1007
|
-
swap_volume_usd_24h?: number;
|
|
1008
1005
|
volume_percent_changes?: TagAttributesVolumePercentChanges;
|
|
1006
|
+
reserve_in_usd?: string;
|
|
1007
|
+
fdv_in_usd?: string;
|
|
1008
|
+
swap_volume_usd_24h?: number;
|
|
1009
|
+
swap_count_24h?: number;
|
|
1009
1010
|
}
|
|
1010
1011
|
export interface TagAttributesVolumePercentChanges {
|
|
1011
|
-
last_12h: string;
|
|
1012
1012
|
last_1h: string;
|
|
1013
|
-
last_24h: string;
|
|
1014
1013
|
last_6h: string;
|
|
1014
|
+
last_12h: string;
|
|
1015
|
+
last_24h: string;
|
|
1015
1016
|
}
|
|
1016
1017
|
export interface TagNetworkPoolsParams {
|
|
1018
|
+
/** Category slug, as returned by the tags endpoint. */
|
|
1019
|
+
tag: string;
|
|
1017
1020
|
/** GeckoTerminal network identifier. */
|
|
1018
1021
|
network: string;
|
|
1019
1022
|
/** 1-based result page. */
|
|
1020
1023
|
page?: number;
|
|
1021
|
-
/** Category slug, as returned by the tags endpoint. */
|
|
1022
|
-
tag: string;
|
|
1023
1024
|
}
|
|
1024
1025
|
export interface TagNetworkPoolsResponse {
|
|
1025
1026
|
data: PoolResource[];
|
|
1026
1027
|
included: (DexResource | NetworkResource | TokenResource)[];
|
|
1027
|
-
links: LatestPoolsResponseLinks;
|
|
1028
1028
|
meta: LatestPoolsResponseMeta;
|
|
1029
|
+
links: LatestPoolsResponseLinks;
|
|
1029
1030
|
}
|
|
1030
1031
|
export interface TagPoolsParams {
|
|
1031
|
-
/** 1-based result page. */
|
|
1032
|
-
page?: number;
|
|
1033
1032
|
/** Category slug, as returned by the tags endpoint. */
|
|
1034
1033
|
tag: string;
|
|
1034
|
+
/** 1-based result page. */
|
|
1035
|
+
page?: number;
|
|
1035
1036
|
}
|
|
1036
1037
|
export interface TagPoolsResponse {
|
|
1037
1038
|
data: PoolResource[];
|
|
1038
1039
|
included: (DexResource | NetworkResource | TokenResource)[];
|
|
1039
|
-
links: LatestPoolsResponseLinks;
|
|
1040
1040
|
meta: LatestPoolsResponseMeta;
|
|
1041
|
+
links: LatestPoolsResponseLinks;
|
|
1041
1042
|
}
|
|
1042
1043
|
export interface TagRelationships {
|
|
1043
1044
|
top_tokens?: ResourceLinkageList;
|
|
1044
1045
|
}
|
|
1045
1046
|
export interface TagResource {
|
|
1046
|
-
attributes: TagAttributes;
|
|
1047
1047
|
id: string;
|
|
1048
|
-
relationships: TagRelationships;
|
|
1049
1048
|
type: string;
|
|
1049
|
+
attributes: TagAttributes;
|
|
1050
|
+
relationships: TagRelationships;
|
|
1050
1051
|
}
|
|
1051
1052
|
export interface TagsParams {
|
|
1052
1053
|
/** 1-based result page. */
|
|
@@ -1059,43 +1060,43 @@ export interface TagsResponse {
|
|
|
1059
1060
|
}
|
|
1060
1061
|
export interface TagsResponseLinks {
|
|
1061
1062
|
first: string;
|
|
1062
|
-
last: TagsResponseLinksLast;
|
|
1063
|
-
next: string;
|
|
1064
1063
|
prev: string | null;
|
|
1064
|
+
next: string;
|
|
1065
|
+
last: TagsResponseLinksLast;
|
|
1065
1066
|
}
|
|
1066
1067
|
export interface TagsResponseLinksLast {
|
|
1067
|
-
href: string;
|
|
1068
1068
|
meta: LatestPoolsResponseLinksLastMeta;
|
|
1069
|
+
href: string;
|
|
1069
1070
|
}
|
|
1070
1071
|
export interface ThemeAttributes {
|
|
1071
|
-
pools: ThemeAttributesPools[];
|
|
1072
1072
|
pools_count: number;
|
|
1073
1073
|
tag: ThemeAttributesTag;
|
|
1074
|
+
pools: ThemeAttributesPools[];
|
|
1074
1075
|
}
|
|
1075
1076
|
export interface ThemeAttributesPools {
|
|
1076
|
-
base_token_id: string;
|
|
1077
1077
|
network_identifier: string;
|
|
1078
1078
|
pool_address: string;
|
|
1079
|
+
base_token_id: string;
|
|
1079
1080
|
tagged_token_id: string;
|
|
1080
1081
|
tokens: ThemeAttributesPoolsTokens[];
|
|
1081
1082
|
}
|
|
1082
1083
|
export interface ThemeAttributesPoolsTokens {
|
|
1083
1084
|
id: string;
|
|
1084
|
-
image_url: string;
|
|
1085
1085
|
symbol: string;
|
|
1086
|
+
image_url: string;
|
|
1086
1087
|
}
|
|
1087
1088
|
export interface ThemeAttributesTag {
|
|
1088
|
-
description?: string;
|
|
1089
1089
|
id: string;
|
|
1090
|
-
identifier: string;
|
|
1091
1090
|
name: string;
|
|
1091
|
+
identifier: string;
|
|
1092
1092
|
swap_count_24h: number;
|
|
1093
|
+
description?: string;
|
|
1093
1094
|
swap_volume_usd_24h?: number;
|
|
1094
1095
|
}
|
|
1095
1096
|
export interface ThemeResource {
|
|
1096
|
-
attributes: ThemeAttributes;
|
|
1097
1097
|
id: string;
|
|
1098
1098
|
type: string;
|
|
1099
|
+
attributes: ThemeAttributes;
|
|
1099
1100
|
}
|
|
1100
1101
|
export interface TimeframedRangeFilter {
|
|
1101
1102
|
/** Inclusive lower bound. */
|
|
@@ -1106,45 +1107,45 @@ export interface TimeframedRangeFilter {
|
|
|
1106
1107
|
timeframe?: PoolFilterTimeframe;
|
|
1107
1108
|
}
|
|
1108
1109
|
export interface TokenAttributes {
|
|
1110
|
+
name?: string;
|
|
1111
|
+
symbol?: string;
|
|
1109
1112
|
address?: string;
|
|
1110
|
-
banner_image_url?: string;
|
|
1111
|
-
cg_coin_id?: string | null;
|
|
1112
|
-
circulating_supply?: number;
|
|
1113
|
-
cto?: string | null;
|
|
1114
|
-
decimals?: number;
|
|
1115
|
-
description?: TokenAttributesDescription;
|
|
1116
1113
|
image_url?: string;
|
|
1117
1114
|
is_verified?: boolean;
|
|
1118
|
-
links?: TokenAttributesLinks;
|
|
1119
|
-
market_cap_in_usd?: number | null;
|
|
1120
|
-
metadata_updated_at?: string | null;
|
|
1121
|
-
name?: string;
|
|
1122
1115
|
on_coingecko?: boolean | null;
|
|
1116
|
+
decimals?: number;
|
|
1123
1117
|
on_pump_fun?: boolean | null;
|
|
1118
|
+
cg_coin_id?: string | null;
|
|
1119
|
+
market_cap_in_usd?: number | null;
|
|
1120
|
+
links?: TokenAttributesLinks;
|
|
1121
|
+
description?: TokenAttributesDescription;
|
|
1122
|
+
metadata_updated_at?: string | null;
|
|
1123
|
+
circulating_supply?: number;
|
|
1124
1124
|
supports_bubblemaps?: boolean;
|
|
1125
1125
|
supports_bubblemaps_v2?: boolean;
|
|
1126
|
-
|
|
1127
|
-
|
|
1126
|
+
banner_image_url?: string;
|
|
1127
|
+
cto?: string | null;
|
|
1128
1128
|
top_traders_enabled?: boolean;
|
|
1129
1129
|
verified_at?: string | null;
|
|
1130
|
+
token_info_snapshots?: TokenAttributesTokenInfoSnapshots[];
|
|
1130
1131
|
}
|
|
1131
1132
|
export interface TokenAttributesDescription {
|
|
1132
1133
|
en?: string;
|
|
1133
1134
|
}
|
|
1134
1135
|
export interface TokenAttributesLinks {
|
|
1136
|
+
websites?: string[];
|
|
1137
|
+
zora_url?: string | null;
|
|
1135
1138
|
discord_url?: string | null;
|
|
1136
|
-
|
|
1137
|
-
github_repo_name?: string | null;
|
|
1138
|
-
instagram_handle?: string | null;
|
|
1139
|
+
warpcast_url?: string | null;
|
|
1139
1140
|
medium_handle?: string | null;
|
|
1140
|
-
subreddit_handle?: string | null;
|
|
1141
|
-
telegram_handle?: string | null;
|
|
1142
1141
|
tiktok_handle?: string | null;
|
|
1143
1142
|
twitter_handle?: string | null;
|
|
1144
|
-
warpcast_url?: string | null;
|
|
1145
|
-
websites?: string[];
|
|
1146
1143
|
youtube_handle?: string | null;
|
|
1147
|
-
|
|
1144
|
+
facebook_handle?: string | null;
|
|
1145
|
+
telegram_handle?: string | null;
|
|
1146
|
+
github_repo_name?: string | null;
|
|
1147
|
+
instagram_handle?: string | null;
|
|
1148
|
+
subreddit_handle?: string | null;
|
|
1148
1149
|
}
|
|
1149
1150
|
export interface TokenAttributesTokenInfoSnapshots {
|
|
1150
1151
|
description: TokenAttributesDescription;
|
|
@@ -1153,35 +1154,35 @@ export interface TokenAttributesTokenInfoSnapshots {
|
|
|
1153
1154
|
type: string;
|
|
1154
1155
|
}
|
|
1155
1156
|
export interface TokenAttributesTokenInfoSnapshotsLinks {
|
|
1157
|
+
websites?: string[];
|
|
1158
|
+
zora_url?: string | null;
|
|
1156
1159
|
discord_url?: string | null;
|
|
1157
|
-
|
|
1158
|
-
github_repo_name?: string | null;
|
|
1159
|
-
instagram_handle?: string | null;
|
|
1160
|
+
warpcast_url?: string | null;
|
|
1160
1161
|
medium_handle?: string | null;
|
|
1161
|
-
subreddit_handle?: string | null;
|
|
1162
|
-
telegram_handle?: string | null;
|
|
1163
1162
|
tiktok_handle?: string | null;
|
|
1164
1163
|
twitter_handle?: string | null;
|
|
1165
|
-
warpcast_url?: string | null;
|
|
1166
|
-
websites?: string[];
|
|
1167
1164
|
youtube_handle?: string | null;
|
|
1168
|
-
|
|
1165
|
+
facebook_handle?: string | null;
|
|
1166
|
+
telegram_handle?: string | null;
|
|
1167
|
+
github_repo_name?: string | null;
|
|
1168
|
+
instagram_handle?: string | null;
|
|
1169
|
+
subreddit_handle?: string | null;
|
|
1169
1170
|
}
|
|
1170
1171
|
export interface TokenDeveloperDetailAttributes {
|
|
1171
1172
|
address: string;
|
|
1173
|
+
label: string | null;
|
|
1172
1174
|
holding_amount: string;
|
|
1173
1175
|
holding_percentage: number;
|
|
1174
|
-
label: string | null;
|
|
1175
1176
|
realized_pnl_amount: string | null;
|
|
1176
1177
|
realized_pnl_percentage: number | null;
|
|
1177
1178
|
unrealized_pnl_amount: string | null;
|
|
1178
1179
|
unrealized_pnl_percentage: number | null;
|
|
1179
1180
|
}
|
|
1180
1181
|
export interface TokenDeveloperDetailResource {
|
|
1181
|
-
attributes: TokenDeveloperDetailAttributes;
|
|
1182
1182
|
id: string;
|
|
1183
|
-
relationships: TokenSecurityMetricRelationships;
|
|
1184
1183
|
type: string;
|
|
1184
|
+
attributes: TokenDeveloperDetailAttributes;
|
|
1185
|
+
relationships: TokenSecurityMetricRelationships;
|
|
1185
1186
|
}
|
|
1186
1187
|
export interface TokenDeveloperPastTokensParams {
|
|
1187
1188
|
/** Id of a `token_developer_detail` resource embedded in a pool response. */
|
|
@@ -1193,130 +1194,130 @@ export interface TokenDeveloperPastTokensResponse {
|
|
|
1193
1194
|
export interface TokenHistoricalHoldersParams {
|
|
1194
1195
|
/** GeckoTerminal network identifier. */
|
|
1195
1196
|
network: string;
|
|
1196
|
-
/** Look-back window for the snapshot series. */
|
|
1197
|
-
period?: HolderHistoryPeriod;
|
|
1198
1197
|
/** On-chain token address. */
|
|
1199
1198
|
token_address: string;
|
|
1199
|
+
/** Look-back window for the snapshot series. */
|
|
1200
|
+
period?: HolderHistoryPeriod;
|
|
1200
1201
|
}
|
|
1201
1202
|
export interface TokenHistoricalHoldersResponse {
|
|
1202
1203
|
data: TokenHoldersSnapshotResource[];
|
|
1203
1204
|
}
|
|
1204
1205
|
export interface TokenHoldersDetailAttributes {
|
|
1206
|
+
source: string | null;
|
|
1205
1207
|
explorer_coin_url: string;
|
|
1206
1208
|
explorer_holder_url: string;
|
|
1207
|
-
source: string | null;
|
|
1208
1209
|
top_holders: TokenHoldersDetailAttributesTopHolders[];
|
|
1209
1210
|
}
|
|
1210
1211
|
export interface TokenHoldersDetailAttributesTopHolders {
|
|
1212
|
+
wallet_address: string;
|
|
1211
1213
|
amount: number;
|
|
1212
|
-
|
|
1214
|
+
owner_percent: number;
|
|
1215
|
+
value_in_usd: number;
|
|
1216
|
+
is_liquidity_pool: boolean | null;
|
|
1213
1217
|
entity_name: string | null;
|
|
1214
1218
|
entity_type: string | null;
|
|
1215
|
-
is_liquidity_pool: boolean | null;
|
|
1216
1219
|
label: string | null;
|
|
1217
|
-
|
|
1218
|
-
realized_pnl: number | null;
|
|
1219
|
-
realized_pnl_percentage: number | null;
|
|
1220
|
+
average_buy_in_usd: number | null;
|
|
1220
1221
|
total_buy_count: number | null;
|
|
1221
1222
|
total_sell_count: number | null;
|
|
1223
|
+
realized_pnl: number | null;
|
|
1222
1224
|
unrealized_pnl: number | null;
|
|
1225
|
+
realized_pnl_percentage: number | null;
|
|
1223
1226
|
unrealized_pnl_percentage: number | null;
|
|
1224
|
-
value_in_usd: number;
|
|
1225
|
-
wallet_address: string;
|
|
1226
1227
|
}
|
|
1227
1228
|
export interface TokenHoldersDetailResource {
|
|
1228
|
-
attributes: TokenHoldersDetailAttributes;
|
|
1229
1229
|
id: string;
|
|
1230
1230
|
type: string;
|
|
1231
|
+
attributes: TokenHoldersDetailAttributes;
|
|
1231
1232
|
}
|
|
1232
1233
|
export interface TokenHoldersSnapshotAttributes {
|
|
1233
1234
|
holder_count: number;
|
|
1234
1235
|
timestamp: string;
|
|
1235
1236
|
}
|
|
1236
1237
|
export interface TokenHoldersSnapshotResource {
|
|
1237
|
-
attributes: TokenHoldersSnapshotAttributes;
|
|
1238
1238
|
id: string;
|
|
1239
1239
|
type: string;
|
|
1240
|
+
attributes: TokenHoldersSnapshotAttributes;
|
|
1240
1241
|
}
|
|
1241
1242
|
export interface TokenRelationships {
|
|
1242
1243
|
tags?: ResourceLinkageList;
|
|
1243
1244
|
}
|
|
1244
1245
|
export interface TokenResource {
|
|
1245
|
-
attributes: TokenAttributes;
|
|
1246
1246
|
id: string;
|
|
1247
|
-
relationships: TokenRelationships;
|
|
1248
1247
|
type: string;
|
|
1248
|
+
attributes: TokenAttributes;
|
|
1249
|
+
relationships: TokenRelationships;
|
|
1249
1250
|
}
|
|
1250
1251
|
export interface TokenSecurityMetricAttributes {
|
|
1251
|
-
|
|
1252
|
-
defi_scanner_updated_at: string | null;
|
|
1253
|
-
go_plus_token_security_data: TokenSecurityMetricAttributesGoPlusTokenSecurityData;
|
|
1254
|
-
go_plus_token_security_updated_at: string | null;
|
|
1252
|
+
insightx_security_data: TokenSecurityMetricAttributesInsightxSecurityData;
|
|
1255
1253
|
holder_count: number;
|
|
1256
|
-
|
|
1254
|
+
go_plus_token_security_updated_at: string | null;
|
|
1255
|
+
defi_scanner_updated_at: string | null;
|
|
1256
|
+
soul_scanner_updated_at: string | null;
|
|
1257
1257
|
honeypot_scanner_updated_at: string | null;
|
|
1258
|
-
insightx_security_data: TokenSecurityMetricAttributesInsightxSecurityData;
|
|
1259
1258
|
insightx_updated_at: string | null;
|
|
1259
|
+
go_plus_token_security_data: TokenSecurityMetricAttributesGoPlusTokenSecurityData;
|
|
1260
|
+
defi_scanner_data: Record<string, string | null>;
|
|
1260
1261
|
soul_scanner_data: TokenSecurityMetricAttributesSoulScannerData;
|
|
1261
|
-
|
|
1262
|
+
honeypot_scanner_data: TokenSecurityMetricAttributesHoneypotScannerData;
|
|
1262
1263
|
}
|
|
1263
1264
|
export interface TokenSecurityMetricAttributesGoPlusTokenSecurityData {
|
|
1264
|
-
|
|
1265
|
+
top_10_holders_percent?: string | null;
|
|
1265
1266
|
buy_tax?: string;
|
|
1266
|
-
|
|
1267
|
+
sell_tax?: string;
|
|
1268
|
+
is_proxy?: string;
|
|
1269
|
+
is_open_source?: string;
|
|
1267
1270
|
cannot_buy?: string;
|
|
1268
1271
|
cannot_sell_all?: string;
|
|
1272
|
+
is_in_dex?: string;
|
|
1269
1273
|
creator_address?: string;
|
|
1270
1274
|
creator_balance?: string;
|
|
1271
1275
|
creator_percent?: string;
|
|
1272
|
-
external_call?: string;
|
|
1273
|
-
hidden_owner?: string;
|
|
1274
1276
|
holder_count?: string;
|
|
1275
|
-
is_anti_whale?: string;
|
|
1276
|
-
is_blacklisted?: string;
|
|
1277
1277
|
is_honeypot?: string;
|
|
1278
|
-
|
|
1278
|
+
trust_list?: string;
|
|
1279
1279
|
is_mintable?: string;
|
|
1280
|
-
|
|
1281
|
-
is_proxy?: string;
|
|
1282
|
-
is_whitelisted?: string;
|
|
1283
|
-
owner_address?: string;
|
|
1284
|
-
owner_balance?: string;
|
|
1280
|
+
can_take_back_ownership?: string;
|
|
1285
1281
|
owner_change_balance?: string;
|
|
1286
|
-
|
|
1287
|
-
personal_slippage_modifiable?: string;
|
|
1282
|
+
hidden_owner?: string;
|
|
1288
1283
|
selfdestruct?: string;
|
|
1289
|
-
|
|
1284
|
+
external_call?: string;
|
|
1290
1285
|
slippage_modifiable?: string;
|
|
1291
|
-
top_10_holders_percent?: string | null;
|
|
1292
|
-
trading_cooldown?: string;
|
|
1293
1286
|
transfer_pausable?: string;
|
|
1294
|
-
|
|
1287
|
+
is_blacklisted?: string;
|
|
1288
|
+
is_whitelisted?: string;
|
|
1289
|
+
is_anti_whale?: string;
|
|
1290
|
+
anti_whale_modifiable?: string;
|
|
1291
|
+
trading_cooldown?: string;
|
|
1292
|
+
personal_slippage_modifiable?: string;
|
|
1293
|
+
owner_balance?: string;
|
|
1294
|
+
owner_percent?: string;
|
|
1295
|
+
owner_address?: string;
|
|
1295
1296
|
}
|
|
1296
1297
|
export interface TokenSecurityMetricAttributesHoneypotScannerData {
|
|
1297
1298
|
holder_count?: number;
|
|
1298
1299
|
honeypot?: string;
|
|
1299
1300
|
}
|
|
1300
1301
|
export interface TokenSecurityMetricAttributesInsightxSecurityData {
|
|
1301
|
-
bundlers_pct?: number;
|
|
1302
|
-
cluster_pct?: number;
|
|
1303
1302
|
dev_pct?: number;
|
|
1304
|
-
insiders_pct?: number;
|
|
1305
|
-
snipers_pct?: number;
|
|
1306
1303
|
top10_pct?: number;
|
|
1304
|
+
cluster_pct?: number;
|
|
1305
|
+
snipers_pct?: number;
|
|
1306
|
+
bundlers_pct?: number;
|
|
1307
|
+
insiders_pct?: number;
|
|
1307
1308
|
}
|
|
1308
1309
|
export interface TokenSecurityMetricAttributesSoulScannerData {
|
|
1309
|
-
freezeable?: string;
|
|
1310
1310
|
mintable?: string;
|
|
1311
|
+
freezeable?: string;
|
|
1311
1312
|
}
|
|
1312
1313
|
export interface TokenSecurityMetricRelationships {
|
|
1313
1314
|
token: ResourceLinkage;
|
|
1314
1315
|
}
|
|
1315
1316
|
export interface TokenSecurityMetricResource {
|
|
1316
|
-
attributes: TokenSecurityMetricAttributes;
|
|
1317
1317
|
id: string;
|
|
1318
|
-
relationships: TokenSecurityMetricRelationships;
|
|
1319
1318
|
type: string;
|
|
1319
|
+
attributes: TokenSecurityMetricAttributes;
|
|
1320
|
+
relationships: TokenSecurityMetricRelationships;
|
|
1320
1321
|
}
|
|
1321
1322
|
export interface TokenTopHoldersParams {
|
|
1322
1323
|
/** GeckoTerminal network identifier. */
|
|
@@ -1340,108 +1341,108 @@ export interface TrendAttributes {
|
|
|
1340
1341
|
top_gainers_pairs: TrendAttributesTopGainersPairs[];
|
|
1341
1342
|
}
|
|
1342
1343
|
export interface TrendAttributesNewPools {
|
|
1344
|
+
type: string;
|
|
1343
1345
|
address: string;
|
|
1344
1346
|
api_address: string;
|
|
1345
|
-
dex: TrendAttributesNewPoolsDex;
|
|
1346
|
-
network: TrendAttributesNewPoolsNetwork;
|
|
1347
|
-
pair_id: string | null;
|
|
1348
|
-
pool: TrendAttributesNewPoolsPool;
|
|
1349
|
-
pool_created_at: string;
|
|
1350
|
-
price_change: string;
|
|
1351
1347
|
price_in_usd: string;
|
|
1348
|
+
price_change: string;
|
|
1352
1349
|
price_percent_change: string;
|
|
1353
|
-
|
|
1350
|
+
network: TrendAttributesNewPoolsNetwork;
|
|
1351
|
+
dex: TrendAttributesNewPoolsDex;
|
|
1352
|
+
pool: TrendAttributesNewPoolsPool;
|
|
1354
1353
|
tokens: TrendAttributesNewPoolsTokens[];
|
|
1355
|
-
|
|
1354
|
+
pair_id: string | null;
|
|
1355
|
+
token_id: string | null;
|
|
1356
|
+
pool_created_at: string;
|
|
1356
1357
|
}
|
|
1357
1358
|
export interface TrendAttributesNewPoolsDex {
|
|
1359
|
+
name: string;
|
|
1358
1360
|
identifier: string;
|
|
1359
1361
|
image_url: string;
|
|
1360
|
-
name: string;
|
|
1361
1362
|
}
|
|
1362
1363
|
export interface TrendAttributesNewPoolsNetwork {
|
|
1363
|
-
identifier: string;
|
|
1364
|
-
image_url: string;
|
|
1365
1364
|
name: string;
|
|
1365
|
+
image_url: string;
|
|
1366
|
+
identifier: string;
|
|
1366
1367
|
}
|
|
1367
1368
|
export interface TrendAttributesNewPoolsPool {
|
|
1368
1369
|
pairs_count: number;
|
|
1369
1370
|
}
|
|
1370
1371
|
export interface TrendAttributesNewPoolsTokens {
|
|
1371
|
-
image_url: string;
|
|
1372
|
-
is_base_token: boolean;
|
|
1373
1372
|
name: string;
|
|
1374
1373
|
symbol: string;
|
|
1374
|
+
image_url: string;
|
|
1375
|
+
is_base_token: boolean;
|
|
1375
1376
|
}
|
|
1376
1377
|
export interface TrendAttributesTopGainersPairs {
|
|
1378
|
+
type: string;
|
|
1377
1379
|
address: string;
|
|
1378
1380
|
api_address: string;
|
|
1379
|
-
dex: TrendAttributesNewPoolsDex;
|
|
1380
|
-
network: TrendAttributesNewPoolsNetwork;
|
|
1381
|
-
pair_id: number;
|
|
1382
|
-
pool: TrendAttributesNewPoolsPool;
|
|
1383
|
-
price_change: number;
|
|
1384
1381
|
price_in_usd: string;
|
|
1382
|
+
price_change: number;
|
|
1385
1383
|
price_percent_change: number;
|
|
1386
|
-
|
|
1384
|
+
network: TrendAttributesNewPoolsNetwork;
|
|
1385
|
+
dex: TrendAttributesNewPoolsDex;
|
|
1386
|
+
pool: TrendAttributesNewPoolsPool;
|
|
1387
1387
|
tokens: TrendAttributesNewPoolsTokens[];
|
|
1388
|
-
|
|
1388
|
+
pair_id: number;
|
|
1389
|
+
token_id: string | null;
|
|
1389
1390
|
}
|
|
1390
1391
|
export interface TrendResource {
|
|
1391
|
-
attributes: TrendAttributes;
|
|
1392
1392
|
id: string;
|
|
1393
1393
|
type: string;
|
|
1394
|
+
attributes: TrendAttributes;
|
|
1394
1395
|
}
|
|
1395
1396
|
export interface TrendingLinkAttributes {
|
|
1396
1397
|
name: string;
|
|
1397
1398
|
path: string;
|
|
1398
1399
|
}
|
|
1399
1400
|
export interface TrendingLinkResource {
|
|
1400
|
-
attributes: TrendingLinkAttributes;
|
|
1401
1401
|
id: string;
|
|
1402
1402
|
type: string;
|
|
1403
|
+
attributes: TrendingLinkAttributes;
|
|
1403
1404
|
}
|
|
1404
1405
|
export interface TrendingLinksResponse {
|
|
1405
1406
|
data: TrendingLinkResource[];
|
|
1406
1407
|
}
|
|
1407
1408
|
export interface TrendingThemesParams {
|
|
1409
|
+
/** Restrict results to one network identifier. */
|
|
1410
|
+
network?: string | null;
|
|
1408
1411
|
/** Restrict results to one DEX identifier. */
|
|
1409
1412
|
dex?: string | null;
|
|
1410
1413
|
/** Return GeckoTerminal's extended theme list rather than the top few. */
|
|
1411
1414
|
more_themes?: boolean;
|
|
1412
|
-
/** Restrict results to one network identifier. */
|
|
1413
|
-
network?: string | null;
|
|
1414
1415
|
}
|
|
1415
1416
|
export interface TrendingThemesResponse {
|
|
1416
1417
|
data: ThemeResource[];
|
|
1417
1418
|
}
|
|
1418
1419
|
export interface TrendsParams {
|
|
1419
|
-
/** Restrict results to one DEX identifier. */
|
|
1420
|
-
dex?: string | null;
|
|
1421
1420
|
/** Restrict results to one network identifier. */
|
|
1422
1421
|
network?: string | null;
|
|
1422
|
+
/** Restrict results to one DEX identifier. */
|
|
1423
|
+
dex?: string | null;
|
|
1423
1424
|
}
|
|
1424
1425
|
export interface TrendsResponse {
|
|
1425
1426
|
data: TrendResource;
|
|
1426
1427
|
}
|
|
1427
1428
|
export interface WalletTokenAttributes {
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
explorer_holder_url: string;
|
|
1429
|
+
wallet_address: string;
|
|
1430
|
+
total_buys: number;
|
|
1431
|
+
total_sells: number;
|
|
1432
1432
|
realized_pnl: string;
|
|
1433
|
-
realized_pnl_percentage: number | null;
|
|
1434
|
-
total_buy_amount: string;
|
|
1435
1433
|
total_buy_count: number;
|
|
1436
|
-
total_buy_in_usd: string;
|
|
1437
|
-
total_buys: number;
|
|
1438
|
-
total_sell_amount: string;
|
|
1439
1434
|
total_sell_count: number;
|
|
1435
|
+
total_buy_amount: string;
|
|
1436
|
+
total_sell_amount: string;
|
|
1437
|
+
total_buy_in_usd: string;
|
|
1440
1438
|
total_sell_in_usd: string;
|
|
1441
|
-
|
|
1439
|
+
average_buy_in_usd: string;
|
|
1440
|
+
average_sell_in_usd: string;
|
|
1441
|
+
balance: string | null;
|
|
1442
1442
|
unrealized_pnl: string | null;
|
|
1443
|
+
explorer_holder_url: string;
|
|
1444
|
+
realized_pnl_percentage: number | null;
|
|
1443
1445
|
unrealized_pnl_percentage: number | null;
|
|
1444
|
-
wallet_address: string;
|
|
1445
1446
|
}
|
|
1446
1447
|
export interface WalletTokenParams {
|
|
1447
1448
|
/** GeckoTerminal numeric token id, as returned in a token resource's `id`. */
|
|
@@ -1453,10 +1454,10 @@ export interface WalletTokenRelationships {
|
|
|
1453
1454
|
address_label: ResourceLinkage;
|
|
1454
1455
|
}
|
|
1455
1456
|
export interface WalletTokenResource {
|
|
1456
|
-
attributes: WalletTokenAttributes;
|
|
1457
1457
|
id: string;
|
|
1458
|
-
relationships: WalletTokenRelationships;
|
|
1459
1458
|
type: string;
|
|
1459
|
+
attributes: WalletTokenAttributes;
|
|
1460
|
+
relationships: WalletTokenRelationships;
|
|
1460
1461
|
}
|
|
1461
1462
|
export interface WalletTokenResponse {
|
|
1462
1463
|
data: WalletTokenResource[];
|