@coingecko/coingecko-typescript 1.14.0 → 1.15.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 +14 -0
- package/client.d.mts +6 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -3
- package/client.d.ts.map +1 -1
- package/client.js +6 -3
- package/client.js.map +1 -1
- package/client.mjs +6 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/coins/circulating-supply-chart.d.mts +7 -5
- package/resources/coins/circulating-supply-chart.d.mts.map +1 -1
- package/resources/coins/circulating-supply-chart.d.ts +7 -5
- package/resources/coins/circulating-supply-chart.d.ts.map +1 -1
- package/resources/coins/circulating-supply-chart.js +1 -1
- package/resources/coins/circulating-supply-chart.mjs +1 -1
- package/resources/coins/contract/market-chart.d.mts +13 -5
- package/resources/coins/contract/market-chart.d.mts.map +1 -1
- package/resources/coins/contract/market-chart.d.ts +13 -5
- package/resources/coins/contract/market-chart.d.ts.map +1 -1
- package/resources/coins/contract/market-chart.js +6 -1
- package/resources/coins/contract/market-chart.js.map +1 -1
- package/resources/coins/contract/market-chart.mjs +6 -1
- package/resources/coins/contract/market-chart.mjs.map +1 -1
- package/resources/coins/history.d.mts +2 -2
- package/resources/coins/history.d.ts +2 -2
- package/resources/coins/history.js +1 -1
- package/resources/coins/history.mjs +1 -1
- package/resources/coins/market-chart.d.mts +7 -5
- package/resources/coins/market-chart.d.mts.map +1 -1
- package/resources/coins/market-chart.d.ts +7 -5
- package/resources/coins/market-chart.d.ts.map +1 -1
- package/resources/coins/market-chart.js +1 -1
- package/resources/coins/market-chart.mjs +1 -1
- package/resources/coins/markets.d.mts +1 -1
- package/resources/coins/markets.d.ts +1 -1
- package/resources/coins/ohlc.d.mts +12 -5
- package/resources/coins/ohlc.d.mts.map +1 -1
- package/resources/coins/ohlc.d.ts +12 -5
- package/resources/coins/ohlc.d.ts.map +1 -1
- package/resources/coins/ohlc.js +6 -1
- package/resources/coins/ohlc.js.map +1 -1
- package/resources/coins/ohlc.mjs +6 -1
- package/resources/coins/ohlc.mjs.map +1 -1
- package/resources/coins/top-gainers-losers.d.mts +95 -5
- package/resources/coins/top-gainers-losers.d.mts.map +1 -1
- package/resources/coins/top-gainers-losers.d.ts +95 -5
- package/resources/coins/top-gainers-losers.d.ts.map +1 -1
- package/resources/coins/top-gainers-losers.js +1 -1
- package/resources/coins/top-gainers-losers.mjs +1 -1
- package/resources/coins/total-supply-chart.d.mts +8 -6
- package/resources/coins/total-supply-chart.d.mts.map +1 -1
- package/resources/coins/total-supply-chart.d.ts +8 -6
- package/resources/coins/total-supply-chart.d.ts.map +1 -1
- package/resources/coins/total-supply-chart.js +2 -2
- package/resources/coins/total-supply-chart.mjs +2 -2
- package/resources/derivatives/exchanges.d.mts +2 -2
- package/resources/derivatives/exchanges.d.ts +2 -2
- package/resources/derivatives/exchanges.js +2 -2
- package/resources/derivatives/exchanges.mjs +2 -2
- package/resources/entities.d.mts +54 -0
- package/resources/entities.d.mts.map +1 -0
- package/resources/entities.d.ts +54 -0
- package/resources/entities.d.ts.map +1 -0
- package/resources/entities.js +21 -0
- package/resources/entities.js.map +1 -0
- package/resources/entities.mjs +17 -0
- package/resources/entities.mjs.map +1 -0
- package/resources/exchanges/exchanges.d.mts +3 -3
- package/resources/exchanges/exchanges.d.ts +3 -3
- package/resources/exchanges/exchanges.js +3 -3
- package/resources/exchanges/exchanges.mjs +3 -3
- package/resources/exchanges/tickers.d.mts +2 -2
- package/resources/exchanges/tickers.d.mts.map +1 -1
- package/resources/exchanges/tickers.d.ts +2 -2
- package/resources/exchanges/tickers.d.ts.map +1 -1
- package/resources/exchanges/tickers.js +1 -1
- package/resources/exchanges/tickers.mjs +1 -1
- package/resources/exchanges/volume-chart.d.mts +2 -2
- package/resources/exchanges/volume-chart.d.ts +2 -2
- package/resources/exchanges/volume-chart.js +2 -2
- package/resources/exchanges/volume-chart.mjs +2 -2
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/onchain/networks/pools/info.d.mts +72 -48
- package/resources/onchain/networks/pools/info.d.mts.map +1 -1
- package/resources/onchain/networks/pools/info.d.ts +72 -48
- package/resources/onchain/networks/pools/info.d.ts.map +1 -1
- package/resources/onchain/networks/pools/info.js +5 -2
- package/resources/onchain/networks/pools/info.js.map +1 -1
- package/resources/onchain/networks/pools/info.mjs +5 -2
- package/resources/onchain/networks/pools/info.mjs.map +1 -1
- package/resources/onchain/networks/pools/multi.d.mts +35 -0
- package/resources/onchain/networks/pools/multi.d.mts.map +1 -1
- package/resources/onchain/networks/pools/multi.d.ts +35 -0
- package/resources/onchain/networks/pools/multi.d.ts.map +1 -1
- package/resources/onchain/networks/pools/ohlcv.d.mts +2 -2
- package/resources/onchain/networks/pools/ohlcv.d.mts.map +1 -1
- package/resources/onchain/networks/pools/ohlcv.d.ts +2 -2
- package/resources/onchain/networks/pools/ohlcv.d.ts.map +1 -1
- package/resources/onchain/networks/pools/ohlcv.js.map +1 -1
- package/resources/onchain/networks/pools/ohlcv.mjs.map +1 -1
- package/resources/onchain/networks/pools/pools.d.mts +35 -0
- package/resources/onchain/networks/pools/pools.d.mts.map +1 -1
- package/resources/onchain/networks/pools/pools.d.ts +35 -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/info.d.mts +1 -1
- package/resources/onchain/networks/tokens/info.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/info.d.ts +1 -1
- package/resources/onchain/networks/tokens/info.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/multi.d.mts +132 -0
- package/resources/onchain/networks/tokens/multi.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/multi.d.ts +132 -0
- package/resources/onchain/networks/tokens/multi.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/ohlcv.d.mts +2 -2
- package/resources/onchain/networks/tokens/ohlcv.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/ohlcv.d.ts +2 -2
- package/resources/onchain/networks/tokens/ohlcv.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/ohlcv.js.map +1 -1
- package/resources/onchain/networks/tokens/ohlcv.mjs.map +1 -1
- package/resources/onchain/networks/tokens/tokens.d.mts +15 -0
- package/resources/onchain/networks/tokens/tokens.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/tokens.d.ts +15 -0
- package/resources/onchain/networks/tokens/tokens.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/tokens.js.map +1 -1
- package/resources/onchain/networks/tokens/tokens.mjs.map +1 -1
- package/resources/onchain/pools/megafilter.d.mts +1 -1
- package/resources/onchain/pools/megafilter.d.mts.map +1 -1
- package/resources/onchain/pools/megafilter.d.ts +1 -1
- package/resources/onchain/pools/megafilter.d.ts.map +1 -1
- package/resources/public-treasury.d.mts +137 -0
- package/resources/public-treasury.d.mts.map +1 -0
- package/resources/public-treasury.d.ts +137 -0
- package/resources/public-treasury.d.ts.map +1 -0
- package/resources/public-treasury.js +40 -0
- package/resources/public-treasury.js.map +1 -0
- package/resources/public-treasury.mjs +36 -0
- package/resources/public-treasury.mjs.map +1 -0
- package/resources/simple/price.d.mts +2 -2
- package/resources/simple/price.d.ts +2 -2
- package/src/client.ts +24 -5
- package/src/resources/coins/circulating-supply-chart.ts +7 -5
- package/src/resources/coins/contract/market-chart.ts +13 -5
- package/src/resources/coins/history.ts +2 -2
- package/src/resources/coins/market-chart.ts +7 -5
- package/src/resources/coins/markets.ts +1 -1
- package/src/resources/coins/ohlc.ts +12 -5
- package/src/resources/coins/top-gainers-losers.ts +117 -5
- package/src/resources/coins/total-supply-chart.ts +8 -6
- package/src/resources/derivatives/exchanges.ts +2 -2
- package/src/resources/entities.ts +73 -0
- package/src/resources/exchanges/exchanges.ts +3 -3
- package/src/resources/exchanges/tickers.ts +9 -2
- package/src/resources/exchanges/volume-chart.ts +2 -2
- package/src/resources/index.ts +7 -1
- package/src/resources/onchain/networks/pools/info.ts +92 -54
- package/src/resources/onchain/networks/pools/multi.ts +61 -0
- package/src/resources/onchain/networks/pools/ohlcv.ts +2 -2
- package/src/resources/onchain/networks/pools/pools.ts +61 -0
- package/src/resources/onchain/networks/tokens/info.ts +1 -1
- package/src/resources/onchain/networks/tokens/multi.ts +211 -0
- package/src/resources/onchain/networks/tokens/ohlcv.ts +2 -2
- package/src/resources/onchain/networks/tokens/tokens.ts +25 -0
- package/src/resources/onchain/pools/megafilter.ts +7 -0
- package/src/resources/public-treasury.ts +178 -0
- package/src/resources/simple/price.ts +2 -2
- 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
- package/resources/companies/companies.d.mts +0 -10
- package/resources/companies/companies.d.mts.map +0 -1
- package/resources/companies/companies.d.ts +0 -10
- package/resources/companies/companies.d.ts.map +0 -1
- package/resources/companies/companies.js +0 -17
- package/resources/companies/companies.js.map +0 -1
- package/resources/companies/companies.mjs +0 -12
- package/resources/companies/companies.mjs.map +0 -1
- package/resources/companies/index.d.mts +0 -3
- package/resources/companies/index.d.mts.map +0 -1
- package/resources/companies/index.d.ts +0 -3
- package/resources/companies/index.d.ts.map +0 -1
- package/resources/companies/index.js +0 -9
- package/resources/companies/index.js.map +0 -1
- package/resources/companies/index.mjs +0 -4
- package/resources/companies/index.mjs.map +0 -1
- package/resources/companies/public-treasury.d.mts +0 -69
- package/resources/companies/public-treasury.d.mts.map +0 -1
- package/resources/companies/public-treasury.d.ts +0 -69
- package/resources/companies/public-treasury.d.ts.map +0 -1
- package/resources/companies/public-treasury.js +0 -25
- package/resources/companies/public-treasury.js.map +0 -1
- package/resources/companies/public-treasury.mjs +0 -21
- package/resources/companies/public-treasury.mjs.map +0 -1
- package/resources/companies.d.mts +0 -2
- package/resources/companies.d.mts.map +0 -1
- package/resources/companies.d.ts +0 -2
- package/resources/companies.d.ts.map +0 -1
- package/resources/companies.js +0 -6
- package/resources/companies.js.map +0 -1
- package/resources/companies.mjs +0 -3
- package/resources/companies.mjs.map +0 -1
- package/src/resources/companies/companies.ts +0 -18
- package/src/resources/companies/index.ts +0 -4
- package/src/resources/companies/public-treasury.ts +0 -89
- package/src/resources/companies.ts +0 -3
|
@@ -53,12 +53,18 @@ export namespace MultiGetAddressesResponse {
|
|
|
53
53
|
export interface Attributes {
|
|
54
54
|
address?: string;
|
|
55
55
|
|
|
56
|
+
base_token_balance?: string;
|
|
57
|
+
|
|
58
|
+
base_token_liquidity_usd?: string;
|
|
59
|
+
|
|
56
60
|
base_token_price_native_currency?: string;
|
|
57
61
|
|
|
58
62
|
base_token_price_quote_token?: string;
|
|
59
63
|
|
|
60
64
|
base_token_price_usd?: string;
|
|
61
65
|
|
|
66
|
+
buy_volume_usd?: Attributes.BuyVolumeUsd;
|
|
67
|
+
|
|
62
68
|
fdv_usd?: string;
|
|
63
69
|
|
|
64
70
|
locked_liquidity_percentage?: string;
|
|
@@ -67,6 +73,8 @@ export namespace MultiGetAddressesResponse {
|
|
|
67
73
|
|
|
68
74
|
name?: string;
|
|
69
75
|
|
|
76
|
+
net_buy_volume_usd?: Attributes.NetBuyVolumeUsd;
|
|
77
|
+
|
|
70
78
|
pool_created_at?: string;
|
|
71
79
|
|
|
72
80
|
pool_fee_percentage?: string;
|
|
@@ -75,6 +83,10 @@ export namespace MultiGetAddressesResponse {
|
|
|
75
83
|
|
|
76
84
|
price_change_percentage?: Attributes.PriceChangePercentage;
|
|
77
85
|
|
|
86
|
+
quote_token_balance?: string;
|
|
87
|
+
|
|
88
|
+
quote_token_liquidity_usd?: string;
|
|
89
|
+
|
|
78
90
|
quote_token_price_base_token?: string;
|
|
79
91
|
|
|
80
92
|
quote_token_price_native_currency?: string;
|
|
@@ -83,12 +95,42 @@ export namespace MultiGetAddressesResponse {
|
|
|
83
95
|
|
|
84
96
|
reserve_in_usd?: string;
|
|
85
97
|
|
|
98
|
+
sell_volume_usd?: Attributes.SellVolumeUsd;
|
|
99
|
+
|
|
86
100
|
transactions?: Attributes.Transactions;
|
|
87
101
|
|
|
88
102
|
volume_usd?: Attributes.VolumeUsd;
|
|
89
103
|
}
|
|
90
104
|
|
|
91
105
|
export namespace Attributes {
|
|
106
|
+
export interface BuyVolumeUsd {
|
|
107
|
+
h1?: string;
|
|
108
|
+
|
|
109
|
+
h24?: string;
|
|
110
|
+
|
|
111
|
+
h6?: string;
|
|
112
|
+
|
|
113
|
+
m15?: string;
|
|
114
|
+
|
|
115
|
+
m30?: string;
|
|
116
|
+
|
|
117
|
+
m5?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface NetBuyVolumeUsd {
|
|
121
|
+
h1?: string;
|
|
122
|
+
|
|
123
|
+
h24?: string;
|
|
124
|
+
|
|
125
|
+
h6?: string;
|
|
126
|
+
|
|
127
|
+
m15?: string;
|
|
128
|
+
|
|
129
|
+
m30?: string;
|
|
130
|
+
|
|
131
|
+
m5?: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
92
134
|
export interface PriceChangePercentage {
|
|
93
135
|
h1?: string;
|
|
94
136
|
|
|
@@ -103,6 +145,20 @@ export namespace MultiGetAddressesResponse {
|
|
|
103
145
|
m5?: string;
|
|
104
146
|
}
|
|
105
147
|
|
|
148
|
+
export interface SellVolumeUsd {
|
|
149
|
+
h1?: string;
|
|
150
|
+
|
|
151
|
+
h24?: string;
|
|
152
|
+
|
|
153
|
+
h6?: string;
|
|
154
|
+
|
|
155
|
+
m15?: string;
|
|
156
|
+
|
|
157
|
+
m30?: string;
|
|
158
|
+
|
|
159
|
+
m5?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
106
162
|
export interface Transactions {
|
|
107
163
|
h1?: Transactions.H1;
|
|
108
164
|
|
|
@@ -278,6 +334,11 @@ export interface MultiGetAddressesParams {
|
|
|
278
334
|
*/
|
|
279
335
|
include?: string;
|
|
280
336
|
|
|
337
|
+
/**
|
|
338
|
+
* Query param: include pool composition, default: false
|
|
339
|
+
*/
|
|
340
|
+
include_composition?: boolean;
|
|
341
|
+
|
|
281
342
|
/**
|
|
282
343
|
* Query param: include volume breakdown, default: false
|
|
283
344
|
*/
|
|
@@ -24,7 +24,7 @@ export class Ohlcv extends APIResource {
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
getTimeframe(
|
|
27
|
-
timeframe: 'day' | 'hour' | 'minute',
|
|
27
|
+
timeframe: 'day' | 'hour' | 'minute' | 'second',
|
|
28
28
|
params: OhlcvGetTimeframeParams,
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): APIPromise<OhlcvGetTimeframeResponse> {
|
|
@@ -106,7 +106,7 @@ export interface OhlcvGetTimeframeParams {
|
|
|
106
106
|
/**
|
|
107
107
|
* Query param: time period to aggregate each OHLCV Available values (day): `1`
|
|
108
108
|
* Available values (hour): `1` , `4` , `12` Available values (minute): `1` , `5` ,
|
|
109
|
-
* `15` Default value: 1
|
|
109
|
+
* `15` Available values (second): `1`, `15`, `30` Default value: 1
|
|
110
110
|
*/
|
|
111
111
|
aggregate?: string;
|
|
112
112
|
|
|
@@ -296,12 +296,18 @@ export namespace PoolGetAddressResponse {
|
|
|
296
296
|
export interface Attributes {
|
|
297
297
|
address?: string;
|
|
298
298
|
|
|
299
|
+
base_token_balance?: string;
|
|
300
|
+
|
|
301
|
+
base_token_liquidity_usd?: string;
|
|
302
|
+
|
|
299
303
|
base_token_price_native_currency?: string;
|
|
300
304
|
|
|
301
305
|
base_token_price_quote_token?: string;
|
|
302
306
|
|
|
303
307
|
base_token_price_usd?: string;
|
|
304
308
|
|
|
309
|
+
buy_volume_usd?: Attributes.BuyVolumeUsd;
|
|
310
|
+
|
|
305
311
|
fdv_usd?: string;
|
|
306
312
|
|
|
307
313
|
locked_liquidity_percentage?: string;
|
|
@@ -310,6 +316,8 @@ export namespace PoolGetAddressResponse {
|
|
|
310
316
|
|
|
311
317
|
name?: string;
|
|
312
318
|
|
|
319
|
+
net_buy_volume_usd?: Attributes.NetBuyVolumeUsd;
|
|
320
|
+
|
|
313
321
|
pool_created_at?: string;
|
|
314
322
|
|
|
315
323
|
pool_fee_percentage?: string;
|
|
@@ -318,6 +326,10 @@ export namespace PoolGetAddressResponse {
|
|
|
318
326
|
|
|
319
327
|
price_change_percentage?: Attributes.PriceChangePercentage;
|
|
320
328
|
|
|
329
|
+
quote_token_balance?: string;
|
|
330
|
+
|
|
331
|
+
quote_token_liquidity_usd?: string;
|
|
332
|
+
|
|
321
333
|
quote_token_price_base_token?: string;
|
|
322
334
|
|
|
323
335
|
quote_token_price_native_currency?: string;
|
|
@@ -326,12 +338,42 @@ export namespace PoolGetAddressResponse {
|
|
|
326
338
|
|
|
327
339
|
reserve_in_usd?: string;
|
|
328
340
|
|
|
341
|
+
sell_volume_usd?: Attributes.SellVolumeUsd;
|
|
342
|
+
|
|
329
343
|
transactions?: Attributes.Transactions;
|
|
330
344
|
|
|
331
345
|
volume_usd?: Attributes.VolumeUsd;
|
|
332
346
|
}
|
|
333
347
|
|
|
334
348
|
export namespace Attributes {
|
|
349
|
+
export interface BuyVolumeUsd {
|
|
350
|
+
h1?: string;
|
|
351
|
+
|
|
352
|
+
h24?: string;
|
|
353
|
+
|
|
354
|
+
h6?: string;
|
|
355
|
+
|
|
356
|
+
m15?: string;
|
|
357
|
+
|
|
358
|
+
m30?: string;
|
|
359
|
+
|
|
360
|
+
m5?: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export interface NetBuyVolumeUsd {
|
|
364
|
+
h1?: string;
|
|
365
|
+
|
|
366
|
+
h24?: string;
|
|
367
|
+
|
|
368
|
+
h6?: string;
|
|
369
|
+
|
|
370
|
+
m15?: string;
|
|
371
|
+
|
|
372
|
+
m30?: string;
|
|
373
|
+
|
|
374
|
+
m5?: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
335
377
|
export interface PriceChangePercentage {
|
|
336
378
|
h1?: string;
|
|
337
379
|
|
|
@@ -346,6 +388,20 @@ export namespace PoolGetAddressResponse {
|
|
|
346
388
|
m5?: string;
|
|
347
389
|
}
|
|
348
390
|
|
|
391
|
+
export interface SellVolumeUsd {
|
|
392
|
+
h1?: string;
|
|
393
|
+
|
|
394
|
+
h24?: string;
|
|
395
|
+
|
|
396
|
+
h6?: string;
|
|
397
|
+
|
|
398
|
+
m15?: string;
|
|
399
|
+
|
|
400
|
+
m30?: string;
|
|
401
|
+
|
|
402
|
+
m5?: string;
|
|
403
|
+
}
|
|
404
|
+
|
|
349
405
|
export interface Transactions {
|
|
350
406
|
h1?: Transactions.H1;
|
|
351
407
|
|
|
@@ -539,6 +595,11 @@ export interface PoolGetAddressParams {
|
|
|
539
595
|
*/
|
|
540
596
|
include?: string;
|
|
541
597
|
|
|
598
|
+
/**
|
|
599
|
+
* Query param: include pool composition, default: false
|
|
600
|
+
*/
|
|
601
|
+
include_composition?: boolean;
|
|
602
|
+
|
|
542
603
|
/**
|
|
543
604
|
* Query param: include volume breakdown, default: false
|
|
544
605
|
*/
|
|
@@ -34,6 +34,8 @@ export class Multi extends APIResource {
|
|
|
34
34
|
|
|
35
35
|
export interface MultiGetAddressesResponse {
|
|
36
36
|
data?: Array<MultiGetAddressesResponse.Data>;
|
|
37
|
+
|
|
38
|
+
included?: Array<MultiGetAddressesResponse.Included>;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
export namespace MultiGetAddressesResponse {
|
|
@@ -100,6 +102,210 @@ export namespace MultiGetAddressesResponse {
|
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
}
|
|
105
|
+
|
|
106
|
+
export interface Included {
|
|
107
|
+
id?: string;
|
|
108
|
+
|
|
109
|
+
attributes?: Included.Attributes;
|
|
110
|
+
|
|
111
|
+
relationships?: Included.Relationships;
|
|
112
|
+
|
|
113
|
+
type?: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export namespace Included {
|
|
117
|
+
export interface Attributes {
|
|
118
|
+
address?: string;
|
|
119
|
+
|
|
120
|
+
base_token_balance?: string;
|
|
121
|
+
|
|
122
|
+
base_token_liquidity_usd?: string;
|
|
123
|
+
|
|
124
|
+
base_token_price_native_currency?: string;
|
|
125
|
+
|
|
126
|
+
base_token_price_quote_token?: string;
|
|
127
|
+
|
|
128
|
+
base_token_price_usd?: string;
|
|
129
|
+
|
|
130
|
+
fdv_usd?: string;
|
|
131
|
+
|
|
132
|
+
market_cap_usd?: string;
|
|
133
|
+
|
|
134
|
+
name?: string;
|
|
135
|
+
|
|
136
|
+
pool_created_at?: string;
|
|
137
|
+
|
|
138
|
+
price_change_percentage?: Attributes.PriceChangePercentage;
|
|
139
|
+
|
|
140
|
+
quote_token_balance?: string;
|
|
141
|
+
|
|
142
|
+
quote_token_liquidity_usd?: string;
|
|
143
|
+
|
|
144
|
+
quote_token_price_base_token?: string;
|
|
145
|
+
|
|
146
|
+
quote_token_price_native_currency?: string;
|
|
147
|
+
|
|
148
|
+
quote_token_price_usd?: string;
|
|
149
|
+
|
|
150
|
+
reserve_in_usd?: string;
|
|
151
|
+
|
|
152
|
+
transactions?: Attributes.Transactions;
|
|
153
|
+
|
|
154
|
+
volume_usd?: Attributes.VolumeUsd;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export namespace Attributes {
|
|
158
|
+
export interface PriceChangePercentage {
|
|
159
|
+
h1?: string;
|
|
160
|
+
|
|
161
|
+
h24?: string;
|
|
162
|
+
|
|
163
|
+
h6?: string;
|
|
164
|
+
|
|
165
|
+
m15?: string;
|
|
166
|
+
|
|
167
|
+
m30?: string;
|
|
168
|
+
|
|
169
|
+
m5?: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface Transactions {
|
|
173
|
+
h1?: Transactions.H1;
|
|
174
|
+
|
|
175
|
+
h24?: Transactions.H24;
|
|
176
|
+
|
|
177
|
+
h6?: Transactions.H6;
|
|
178
|
+
|
|
179
|
+
m15?: Transactions.M15;
|
|
180
|
+
|
|
181
|
+
m30?: Transactions.M30;
|
|
182
|
+
|
|
183
|
+
m5?: Transactions.M5;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export namespace Transactions {
|
|
187
|
+
export interface H1 {
|
|
188
|
+
buyers?: number;
|
|
189
|
+
|
|
190
|
+
buys?: number;
|
|
191
|
+
|
|
192
|
+
sellers?: number;
|
|
193
|
+
|
|
194
|
+
sells?: number;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface H24 {
|
|
198
|
+
buyers?: number;
|
|
199
|
+
|
|
200
|
+
buys?: number;
|
|
201
|
+
|
|
202
|
+
sellers?: number;
|
|
203
|
+
|
|
204
|
+
sells?: number;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export interface H6 {
|
|
208
|
+
buyers?: number;
|
|
209
|
+
|
|
210
|
+
buys?: number;
|
|
211
|
+
|
|
212
|
+
sellers?: number;
|
|
213
|
+
|
|
214
|
+
sells?: number;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export interface M15 {
|
|
218
|
+
buyers?: number;
|
|
219
|
+
|
|
220
|
+
buys?: number;
|
|
221
|
+
|
|
222
|
+
sellers?: number;
|
|
223
|
+
|
|
224
|
+
sells?: number;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface M30 {
|
|
228
|
+
buyers?: number;
|
|
229
|
+
|
|
230
|
+
buys?: number;
|
|
231
|
+
|
|
232
|
+
sellers?: number;
|
|
233
|
+
|
|
234
|
+
sells?: number;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export interface M5 {
|
|
238
|
+
buyers?: number;
|
|
239
|
+
|
|
240
|
+
buys?: number;
|
|
241
|
+
|
|
242
|
+
sellers?: number;
|
|
243
|
+
|
|
244
|
+
sells?: number;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface VolumeUsd {
|
|
249
|
+
h1?: string;
|
|
250
|
+
|
|
251
|
+
h24?: string;
|
|
252
|
+
|
|
253
|
+
h6?: string;
|
|
254
|
+
|
|
255
|
+
m15?: string;
|
|
256
|
+
|
|
257
|
+
m30?: string;
|
|
258
|
+
|
|
259
|
+
m5?: string;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface Relationships {
|
|
264
|
+
base_token?: Relationships.BaseToken;
|
|
265
|
+
|
|
266
|
+
dex?: Relationships.Dex;
|
|
267
|
+
|
|
268
|
+
quote_token?: Relationships.QuoteToken;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export namespace Relationships {
|
|
272
|
+
export interface BaseToken {
|
|
273
|
+
data?: BaseToken.Data;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export namespace BaseToken {
|
|
277
|
+
export interface Data {
|
|
278
|
+
id?: string;
|
|
279
|
+
|
|
280
|
+
type?: string;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface Dex {
|
|
285
|
+
data?: Dex.Data;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export namespace Dex {
|
|
289
|
+
export interface Data {
|
|
290
|
+
id?: string;
|
|
291
|
+
|
|
292
|
+
type?: string;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface QuoteToken {
|
|
297
|
+
data?: QuoteToken.Data;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export namespace QuoteToken {
|
|
301
|
+
export interface Data {
|
|
302
|
+
id?: string;
|
|
303
|
+
|
|
304
|
+
type?: string;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
103
309
|
}
|
|
104
310
|
|
|
105
311
|
export interface MultiGetAddressesParams {
|
|
@@ -112,6 +318,11 @@ export interface MultiGetAddressesParams {
|
|
|
112
318
|
* Query param: attributes to include
|
|
113
319
|
*/
|
|
114
320
|
include?: 'top_pools';
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Query param: include pool composition, default: false
|
|
324
|
+
*/
|
|
325
|
+
include_composition?: boolean;
|
|
115
326
|
}
|
|
116
327
|
|
|
117
328
|
export declare namespace Multi {
|
|
@@ -24,7 +24,7 @@ export class Ohlcv extends APIResource {
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
getTimeframe(
|
|
27
|
-
timeframe: 'day' | 'hour' | 'minute',
|
|
27
|
+
timeframe: 'day' | 'hour' | 'minute' | 'second',
|
|
28
28
|
params: OhlcvGetTimeframeParams,
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): APIPromise<OhlcvGetTimeframeResponse> {
|
|
@@ -100,7 +100,7 @@ export interface OhlcvGetTimeframeParams {
|
|
|
100
100
|
/**
|
|
101
101
|
* Query param: time period to aggregate each OHLCV Available values (day): `1`
|
|
102
102
|
* Available values (hour): `1` , `4` , `12` Available values (minute): `1` , `5` ,
|
|
103
|
-
* `15` Default value: 1
|
|
103
|
+
* `15` Available values (second): `1`, `15`, `30` Default value: 1
|
|
104
104
|
*/
|
|
105
105
|
aggregate?: string;
|
|
106
106
|
|
|
@@ -136,6 +136,10 @@ export namespace TokenGetAddressResponse {
|
|
|
136
136
|
export interface Attributes {
|
|
137
137
|
address?: string;
|
|
138
138
|
|
|
139
|
+
base_token_balance?: string;
|
|
140
|
+
|
|
141
|
+
base_token_liquidity_usd?: string;
|
|
142
|
+
|
|
139
143
|
base_token_price_native_currency?: string;
|
|
140
144
|
|
|
141
145
|
base_token_price_quote_token?: string;
|
|
@@ -152,6 +156,10 @@ export namespace TokenGetAddressResponse {
|
|
|
152
156
|
|
|
153
157
|
price_change_percentage?: Attributes.PriceChangePercentage;
|
|
154
158
|
|
|
159
|
+
quote_token_balance?: string;
|
|
160
|
+
|
|
161
|
+
quote_token_liquidity_usd?: string;
|
|
162
|
+
|
|
155
163
|
quote_token_price_base_token?: string;
|
|
156
164
|
|
|
157
165
|
quote_token_price_native_currency?: string;
|
|
@@ -187,6 +195,8 @@ export namespace TokenGetAddressResponse {
|
|
|
187
195
|
|
|
188
196
|
h24?: Transactions.H24;
|
|
189
197
|
|
|
198
|
+
h6?: Transactions.H6;
|
|
199
|
+
|
|
190
200
|
m15?: Transactions.M15;
|
|
191
201
|
|
|
192
202
|
m30?: Transactions.M30;
|
|
@@ -215,6 +225,16 @@ export namespace TokenGetAddressResponse {
|
|
|
215
225
|
sells?: number;
|
|
216
226
|
}
|
|
217
227
|
|
|
228
|
+
export interface H6 {
|
|
229
|
+
buyers?: number;
|
|
230
|
+
|
|
231
|
+
buys?: number;
|
|
232
|
+
|
|
233
|
+
sellers?: number;
|
|
234
|
+
|
|
235
|
+
sells?: number;
|
|
236
|
+
}
|
|
237
|
+
|
|
218
238
|
export interface M15 {
|
|
219
239
|
buyers?: number;
|
|
220
240
|
|
|
@@ -319,6 +339,11 @@ export interface TokenGetAddressParams {
|
|
|
319
339
|
* Query param: attributes to include
|
|
320
340
|
*/
|
|
321
341
|
include?: 'top_pools';
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Query param: include pool composition, default: false
|
|
345
|
+
*/
|
|
346
|
+
include_composition?: boolean;
|
|
322
347
|
}
|
|
323
348
|
|
|
324
349
|
Tokens.Multi = Multi;
|
|
@@ -375,7 +375,14 @@ export interface MegafilterGetParams {
|
|
|
375
375
|
| 'h24_trending'
|
|
376
376
|
| 'h24_tx_count_desc'
|
|
377
377
|
| 'h24_volume_usd_desc'
|
|
378
|
+
| 'm5_price_change_percentage_desc'
|
|
379
|
+
| 'h1_price_change_percentage_desc'
|
|
380
|
+
| 'h6_price_change_percentage_desc'
|
|
378
381
|
| 'h24_price_change_percentage_desc'
|
|
382
|
+
| 'fdv_usd_asc'
|
|
383
|
+
| 'fdv_usd_desc'
|
|
384
|
+
| 'reserve_in_usd_asc'
|
|
385
|
+
| 'reserve_in_usd_desc'
|
|
379
386
|
| 'pool_created_at_desc';
|
|
380
387
|
|
|
381
388
|
/**
|