@coingecko/coingecko-typescript 2.5.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/LICENSE +1 -1
- package/README.md +23 -10
- package/client.d.mts +3 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -2
- package/client.d.ts.map +1 -1
- package/client.js +15 -2
- package/client.js.map +1 -1
- package/client.mjs +15 -2
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/coins/coins.d.mts +9 -1
- package/resources/coins/coins.d.mts.map +1 -1
- package/resources/coins/coins.d.ts +9 -1
- package/resources/coins/coins.d.ts.map +1 -1
- package/resources/coins/coins.js.map +1 -1
- package/resources/coins/coins.mjs.map +1 -1
- package/resources/coins/contract/contract.d.mts +9 -1
- package/resources/coins/contract/contract.d.mts.map +1 -1
- package/resources/coins/contract/contract.d.ts +9 -1
- package/resources/coins/contract/contract.d.ts.map +1 -1
- package/resources/coins/contract/contract.js.map +1 -1
- package/resources/coins/contract/contract.mjs.map +1 -1
- package/resources/coins/contract/market-chart.d.mts +5 -1
- package/resources/coins/contract/market-chart.d.mts.map +1 -1
- package/resources/coins/contract/market-chart.d.ts +5 -1
- package/resources/coins/contract/market-chart.d.ts.map +1 -1
- package/resources/coins/contract/market-chart.js +5 -1
- package/resources/coins/contract/market-chart.js.map +1 -1
- package/resources/coins/contract/market-chart.mjs +5 -1
- package/resources/coins/contract/market-chart.mjs.map +1 -1
- package/resources/coins/market-chart.d.mts +5 -1
- package/resources/coins/market-chart.d.mts.map +1 -1
- package/resources/coins/market-chart.d.ts +5 -1
- package/resources/coins/market-chart.d.ts.map +1 -1
- package/resources/coins/market-chart.js +5 -1
- package/resources/coins/market-chart.js.map +1 -1
- package/resources/coins/market-chart.mjs +5 -1
- package/resources/coins/market-chart.mjs.map +1 -1
- package/resources/coins/markets.d.mts +9 -0
- package/resources/coins/markets.d.mts.map +1 -1
- package/resources/coins/markets.d.ts +9 -0
- package/resources/coins/markets.d.ts.map +1 -1
- package/resources/coins/tickers.d.mts +1 -1
- package/resources/coins/tickers.d.mts.map +1 -1
- package/resources/coins/tickers.d.ts +1 -1
- package/resources/coins/tickers.d.ts.map +1 -1
- package/resources/exchanges/exchanges.d.mts +3 -3
- package/resources/exchanges/exchanges.d.mts.map +1 -1
- package/resources/exchanges/exchanges.d.ts +3 -3
- package/resources/exchanges/exchanges.d.ts.map +1 -1
- package/resources/exchanges/tickers.d.mts +1 -1
- package/resources/exchanges/tickers.d.mts.map +1 -1
- package/resources/exchanges/tickers.d.ts +1 -1
- package/resources/exchanges/tickers.d.ts.map +1 -1
- package/resources/global/global.d.mts +4 -0
- package/resources/global/global.d.mts.map +1 -1
- package/resources/global/global.d.ts +4 -0
- package/resources/global/global.d.ts.map +1 -1
- package/resources/global/global.js.map +1 -1
- package/resources/global/global.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/key.d.mts +10 -0
- package/resources/key.d.mts.map +1 -1
- package/resources/key.d.ts +10 -0
- package/resources/key.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/pools.d.mts +8 -0
- package/resources/onchain/networks/tokens/pools.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/pools.d.ts +8 -0
- package/resources/onchain/networks/tokens/pools.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/top-holders.d.mts +12 -0
- package/resources/onchain/networks/tokens/top-holders.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/top-holders.d.ts +12 -0
- package/resources/onchain/networks/tokens/top-holders.d.ts.map +1 -1
- package/resources/onchain/pools/megafilter.d.mts +13 -1
- package/resources/onchain/pools/megafilter.d.mts.map +1 -1
- package/resources/onchain/pools/megafilter.d.ts +13 -1
- package/resources/onchain/pools/megafilter.d.ts.map +1 -1
- package/resources/public-treasury.d.mts +185 -35
- package/resources/public-treasury.d.mts.map +1 -1
- package/resources/public-treasury.d.ts +185 -35
- package/resources/public-treasury.d.ts.map +1 -1
- package/resources/public-treasury.js +4 -4
- package/resources/public-treasury.js.map +1 -1
- package/resources/public-treasury.mjs +4 -4
- package/resources/public-treasury.mjs.map +1 -1
- package/src/client.ts +20 -3
- package/src/internal/parse.ts +6 -0
- package/src/resources/coins/coins.ts +11 -1
- package/src/resources/coins/contract/contract.ts +11 -1
- package/src/resources/coins/contract/market-chart.ts +5 -1
- package/src/resources/coins/market-chart.ts +5 -1
- package/src/resources/coins/markets.ts +11 -0
- package/src/resources/coins/tickers.ts +1 -1
- package/src/resources/exchanges/exchanges.ts +3 -3
- package/src/resources/exchanges/tickers.ts +1 -1
- package/src/resources/global/global.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/key.ts +12 -0
- package/src/resources/onchain/networks/tokens/pools.ts +12 -0
- package/src/resources/onchain/networks/tokens/top-holders.ts +21 -0
- package/src/resources/onchain/pools/megafilter.ts +19 -0
- package/src/resources/public-treasury.ts +238 -40
- 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
|
@@ -54,6 +54,8 @@ export namespace PoolGetResponse {
|
|
|
54
54
|
|
|
55
55
|
base_token_price_usd?: string;
|
|
56
56
|
|
|
57
|
+
community_sus_report?: number;
|
|
58
|
+
|
|
57
59
|
fdv_usd?: string;
|
|
58
60
|
|
|
59
61
|
last_trade_timestamp?: number;
|
|
@@ -74,6 +76,10 @@ export namespace PoolGetResponse {
|
|
|
74
76
|
|
|
75
77
|
reserve_in_usd?: string;
|
|
76
78
|
|
|
79
|
+
sentiment_vote_negative_percentage?: number;
|
|
80
|
+
|
|
81
|
+
sentiment_vote_positive_percentage?: number;
|
|
82
|
+
|
|
77
83
|
transactions?: Attributes.Transactions;
|
|
78
84
|
|
|
79
85
|
volume_usd?: Attributes.VolumeUsd;
|
|
@@ -257,6 +263,12 @@ export interface PoolGetParams {
|
|
|
257
263
|
*/
|
|
258
264
|
include?: string;
|
|
259
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Query param: include GeckoTerminal community data (Sentiment votes, Suspicious
|
|
268
|
+
* reports) Default value: false
|
|
269
|
+
*/
|
|
270
|
+
include_gt_community_data?: boolean;
|
|
271
|
+
|
|
260
272
|
/**
|
|
261
273
|
* Query param: include tokens from inactive pools using the most recent swap,
|
|
262
274
|
* default: false
|
|
@@ -58,12 +58,28 @@ export namespace TopHolderGetResponse {
|
|
|
58
58
|
|
|
59
59
|
amount?: string;
|
|
60
60
|
|
|
61
|
+
average_buy_price_usd?: string;
|
|
62
|
+
|
|
63
|
+
explorer_url?: string;
|
|
64
|
+
|
|
61
65
|
label?: string;
|
|
62
66
|
|
|
63
67
|
percentage?: string;
|
|
64
68
|
|
|
65
69
|
rank?: number;
|
|
66
70
|
|
|
71
|
+
realized_pnl_percentage?: string;
|
|
72
|
+
|
|
73
|
+
realized_pnl_usd?: string;
|
|
74
|
+
|
|
75
|
+
total_buy_count?: number;
|
|
76
|
+
|
|
77
|
+
total_sell_count?: number;
|
|
78
|
+
|
|
79
|
+
unrealized_pnl_percentage?: string;
|
|
80
|
+
|
|
81
|
+
unrealized_pnl_usd?: string;
|
|
82
|
+
|
|
67
83
|
value?: string;
|
|
68
84
|
}
|
|
69
85
|
}
|
|
@@ -81,6 +97,11 @@ export interface TopHolderGetParams {
|
|
|
81
97
|
* `max` Default value: 10
|
|
82
98
|
*/
|
|
83
99
|
holders?: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Query param: include PnL details for token holders, default: false
|
|
103
|
+
*/
|
|
104
|
+
include_pnl_details?: boolean;
|
|
84
105
|
}
|
|
85
106
|
|
|
86
107
|
export declare namespace TopHolders {
|
|
@@ -330,6 +330,21 @@ export interface MegafilterGetParams {
|
|
|
330
330
|
*/
|
|
331
331
|
pool_created_hour_min?: number;
|
|
332
332
|
|
|
333
|
+
/**
|
|
334
|
+
* duration for price change percentage metric
|
|
335
|
+
*/
|
|
336
|
+
price_change_percentage_duration?: '5m' | '1h' | '6h' | '24h';
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* maximum price change percentage
|
|
340
|
+
*/
|
|
341
|
+
price_change_percentage_max?: number;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* minimum price change percentage
|
|
345
|
+
*/
|
|
346
|
+
price_change_percentage_min?: number;
|
|
347
|
+
|
|
333
348
|
/**
|
|
334
349
|
* maximum reserve in USD
|
|
335
350
|
*/
|
|
@@ -374,7 +389,9 @@ export interface MegafilterGetParams {
|
|
|
374
389
|
| 'h6_trending'
|
|
375
390
|
| 'h24_trending'
|
|
376
391
|
| 'h24_tx_count_desc'
|
|
392
|
+
| 'h24_tx_count_asc'
|
|
377
393
|
| 'h24_volume_usd_desc'
|
|
394
|
+
| 'h24_volume_usd_asc'
|
|
378
395
|
| 'm5_price_change_percentage_asc'
|
|
379
396
|
| 'h1_price_change_percentage_asc'
|
|
380
397
|
| 'h6_price_change_percentage_asc'
|
|
@@ -387,6 +404,8 @@ export interface MegafilterGetParams {
|
|
|
387
404
|
| 'fdv_usd_desc'
|
|
388
405
|
| 'reserve_in_usd_asc'
|
|
389
406
|
| 'reserve_in_usd_desc'
|
|
407
|
+
| 'price_asc'
|
|
408
|
+
| 'price_desc'
|
|
390
409
|
| 'pool_created_at_desc';
|
|
391
410
|
|
|
392
411
|
/**
|
|
@@ -23,8 +23,8 @@ export class PublicTreasury extends APIResource {
|
|
|
23
23
|
params: PublicTreasuryGetCoinIDParams,
|
|
24
24
|
options?: RequestOptions,
|
|
25
25
|
): APIPromise<PublicTreasuryGetCoinIDResponse> {
|
|
26
|
-
const { entity } = params;
|
|
27
|
-
return this._client.get(path`/${entity}/public_treasury/${coinID}`, options);
|
|
26
|
+
const { entity, ...query } = params;
|
|
27
|
+
return this._client.get(path`/${entity}/public_treasury/${coinID}`, { query, ...options });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -38,8 +38,12 @@ export class PublicTreasury extends APIResource {
|
|
|
38
38
|
* );
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
getEntityID(
|
|
42
|
-
|
|
41
|
+
getEntityID(
|
|
42
|
+
entityID: string,
|
|
43
|
+
query: PublicTreasuryGetEntityIDParams | null | undefined = {},
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): APIPromise<PublicTreasuryGetEntityIDResponse> {
|
|
46
|
+
return this._client.get(path`/public_treasury/${entityID}`, { query, ...options });
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
/**
|
|
@@ -88,61 +92,125 @@ export class PublicTreasury extends APIResource {
|
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
94
|
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* market cap dominance
|
|
96
|
-
*/
|
|
97
|
-
market_cap_dominance?: number;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* total crypto holdings of companies or government
|
|
101
|
-
*/
|
|
102
|
-
total_holdings?: number;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* total crypto holdings value in usd
|
|
106
|
-
*/
|
|
107
|
-
total_value_usd?: number;
|
|
108
|
-
}
|
|
95
|
+
export type PublicTreasuryGetCoinIDResponse =
|
|
96
|
+
| PublicTreasuryGetCoinIDResponse.CompaniesTreasury
|
|
97
|
+
| PublicTreasuryGetCoinIDResponse.GovernmentsTreasury;
|
|
109
98
|
|
|
110
99
|
export namespace PublicTreasuryGetCoinIDResponse {
|
|
111
|
-
export interface
|
|
112
|
-
|
|
113
|
-
* company incorporated or government country
|
|
114
|
-
*/
|
|
115
|
-
country?: string;
|
|
100
|
+
export interface CompaniesTreasury {
|
|
101
|
+
companies: Array<CompaniesTreasury.Company>;
|
|
116
102
|
|
|
117
103
|
/**
|
|
118
|
-
*
|
|
104
|
+
* market cap dominance
|
|
119
105
|
*/
|
|
120
|
-
|
|
106
|
+
market_cap_dominance: number;
|
|
121
107
|
|
|
122
108
|
/**
|
|
123
|
-
*
|
|
109
|
+
* total crypto holdings of companies
|
|
124
110
|
*/
|
|
125
|
-
|
|
111
|
+
total_holdings: number;
|
|
126
112
|
|
|
127
113
|
/**
|
|
128
|
-
*
|
|
114
|
+
* total crypto holdings value in usd
|
|
129
115
|
*/
|
|
130
|
-
|
|
116
|
+
total_value_usd: number;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export namespace CompaniesTreasury {
|
|
120
|
+
export interface Company {
|
|
121
|
+
/**
|
|
122
|
+
* company incorporated or government country
|
|
123
|
+
*/
|
|
124
|
+
country?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* company or government name
|
|
128
|
+
*/
|
|
129
|
+
name?: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* percentage of total crypto supply
|
|
133
|
+
*/
|
|
134
|
+
percentage_of_total_supply?: number;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* company symbol
|
|
138
|
+
*/
|
|
139
|
+
symbol?: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* total current value of crypto holdings in usd
|
|
143
|
+
*/
|
|
144
|
+
total_current_value_usd?: number;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* total entry value in usd
|
|
148
|
+
*/
|
|
149
|
+
total_entry_value_usd?: number;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* total crypto holdings
|
|
153
|
+
*/
|
|
154
|
+
total_holdings?: number;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface GovernmentsTreasury {
|
|
159
|
+
governments: Array<GovernmentsTreasury.Government>;
|
|
131
160
|
|
|
132
161
|
/**
|
|
133
|
-
*
|
|
162
|
+
* market cap dominance
|
|
134
163
|
*/
|
|
135
|
-
|
|
164
|
+
market_cap_dominance: number;
|
|
136
165
|
|
|
137
166
|
/**
|
|
138
|
-
* total
|
|
167
|
+
* total crypto holdings of governments
|
|
139
168
|
*/
|
|
140
|
-
|
|
169
|
+
total_holdings: number;
|
|
141
170
|
|
|
142
171
|
/**
|
|
143
|
-
* total crypto holdings
|
|
172
|
+
* total crypto holdings value in usd
|
|
144
173
|
*/
|
|
145
|
-
|
|
174
|
+
total_value_usd: number;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export namespace GovernmentsTreasury {
|
|
178
|
+
export interface Government {
|
|
179
|
+
/**
|
|
180
|
+
* company incorporated or government country
|
|
181
|
+
*/
|
|
182
|
+
country?: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* company or government name
|
|
186
|
+
*/
|
|
187
|
+
name?: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* percentage of total crypto supply
|
|
191
|
+
*/
|
|
192
|
+
percentage_of_total_supply?: number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* company symbol
|
|
196
|
+
*/
|
|
197
|
+
symbol?: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* total current value of crypto holdings in usd
|
|
201
|
+
*/
|
|
202
|
+
total_current_value_usd?: number;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* total entry value in usd
|
|
206
|
+
*/
|
|
207
|
+
total_entry_value_usd?: number;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* total crypto holdings
|
|
211
|
+
*/
|
|
212
|
+
total_holdings?: number;
|
|
213
|
+
}
|
|
146
214
|
}
|
|
147
215
|
}
|
|
148
216
|
|
|
@@ -162,6 +230,11 @@ export interface PublicTreasuryGetEntityIDResponse {
|
|
|
162
230
|
*/
|
|
163
231
|
holdings?: Array<PublicTreasuryGetEntityIDResponse.Holding>;
|
|
164
232
|
|
|
233
|
+
/**
|
|
234
|
+
* market to net asset value ratio
|
|
235
|
+
*/
|
|
236
|
+
m_nav?: number;
|
|
237
|
+
|
|
165
238
|
/**
|
|
166
239
|
* entity name
|
|
167
240
|
*/
|
|
@@ -172,6 +245,16 @@ export interface PublicTreasuryGetEntityIDResponse {
|
|
|
172
245
|
*/
|
|
173
246
|
symbol?: string;
|
|
174
247
|
|
|
248
|
+
/**
|
|
249
|
+
* total asset value per share in USD
|
|
250
|
+
*/
|
|
251
|
+
total_asset_value_per_share_usd?: number;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* total current value of all holdings in USD
|
|
255
|
+
*/
|
|
256
|
+
total_treasury_value_usd?: number;
|
|
257
|
+
|
|
175
258
|
/**
|
|
176
259
|
* official Twitter handle of the entity
|
|
177
260
|
*/
|
|
@@ -182,6 +265,11 @@ export interface PublicTreasuryGetEntityIDResponse {
|
|
|
182
265
|
*/
|
|
183
266
|
type?: string;
|
|
184
267
|
|
|
268
|
+
/**
|
|
269
|
+
* unrealized profit and loss (current value - total entry value)
|
|
270
|
+
*/
|
|
271
|
+
unrealized_pnl?: number;
|
|
272
|
+
|
|
185
273
|
/**
|
|
186
274
|
* official website URL of the entity
|
|
187
275
|
*/
|
|
@@ -195,15 +283,95 @@ export namespace PublicTreasuryGetEntityIDResponse {
|
|
|
195
283
|
*/
|
|
196
284
|
amount?: number;
|
|
197
285
|
|
|
286
|
+
/**
|
|
287
|
+
* amount of cryptocurrency per share
|
|
288
|
+
*/
|
|
289
|
+
amount_per_share?: number;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* average entry cost per unit in USD
|
|
293
|
+
*/
|
|
294
|
+
average_entry_value_usd?: number;
|
|
295
|
+
|
|
198
296
|
/**
|
|
199
297
|
* coin ID
|
|
200
298
|
*/
|
|
201
299
|
coin_id?: string;
|
|
202
300
|
|
|
301
|
+
/**
|
|
302
|
+
* current value of holdings in USD
|
|
303
|
+
*/
|
|
304
|
+
current_value_usd?: number;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* percentage of entity's total treasury value
|
|
308
|
+
*/
|
|
309
|
+
entity_value_usd_percentage?: number;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* holding amount changes over different timeframes (only present if
|
|
313
|
+
* holding_amount_change param is used)
|
|
314
|
+
*/
|
|
315
|
+
holding_amount_change?: Holding.HoldingAmountChange;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* holding change percentages over different timeframes (only present if
|
|
319
|
+
* holding_change_percentage param is used)
|
|
320
|
+
*/
|
|
321
|
+
holding_change_percentage?: Holding.HoldingChangePercentage;
|
|
322
|
+
|
|
203
323
|
/**
|
|
204
324
|
* percentage of total crypto supply
|
|
205
325
|
*/
|
|
206
326
|
percentage_of_total_supply?: number;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* total entry cost/purchase value in USD
|
|
330
|
+
*/
|
|
331
|
+
total_entry_value_usd?: number;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* unrealized profit and loss for this holding
|
|
335
|
+
*/
|
|
336
|
+
unrealized_pnl?: number;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export namespace Holding {
|
|
340
|
+
/**
|
|
341
|
+
* holding amount changes over different timeframes (only present if
|
|
342
|
+
* holding_amount_change param is used)
|
|
343
|
+
*/
|
|
344
|
+
export interface HoldingAmountChange {
|
|
345
|
+
'14d'?: number;
|
|
346
|
+
|
|
347
|
+
'1y'?: number;
|
|
348
|
+
|
|
349
|
+
'30d'?: number;
|
|
350
|
+
|
|
351
|
+
'7d'?: number;
|
|
352
|
+
|
|
353
|
+
'90d'?: number;
|
|
354
|
+
|
|
355
|
+
ytd?: number;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* holding change percentages over different timeframes (only present if
|
|
360
|
+
* holding_change_percentage param is used)
|
|
361
|
+
*/
|
|
362
|
+
export interface HoldingChangePercentage {
|
|
363
|
+
'14d'?: number;
|
|
364
|
+
|
|
365
|
+
'1y'?: number;
|
|
366
|
+
|
|
367
|
+
'30d'?: number;
|
|
368
|
+
|
|
369
|
+
'7d'?: number;
|
|
370
|
+
|
|
371
|
+
'90d'?: number;
|
|
372
|
+
|
|
373
|
+
ytd?: number;
|
|
374
|
+
}
|
|
207
375
|
}
|
|
208
376
|
}
|
|
209
377
|
|
|
@@ -263,9 +431,38 @@ export namespace PublicTreasuryGetTransactionHistoryResponse {
|
|
|
263
431
|
|
|
264
432
|
export interface PublicTreasuryGetCoinIDParams {
|
|
265
433
|
/**
|
|
266
|
-
* public company or government entity
|
|
434
|
+
* Path param: public company or government entity
|
|
267
435
|
*/
|
|
268
436
|
entity: 'companies' | 'governments';
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Query param: Sort order for results
|
|
440
|
+
*/
|
|
441
|
+
order?: 'total_holdings_usd_desc' | 'total_holdings_usd_asc';
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Query param: Page number to return
|
|
445
|
+
*/
|
|
446
|
+
page?: number;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Query param: Number of results to return per page
|
|
450
|
+
*/
|
|
451
|
+
per_page?: number;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export interface PublicTreasuryGetEntityIDParams {
|
|
455
|
+
/**
|
|
456
|
+
* include holding amount change for specified timeframes, comma-separated if
|
|
457
|
+
* querying more than 1 timeframe Valid values: 7d, 14d, 30d, 90d, 1y, ytd
|
|
458
|
+
*/
|
|
459
|
+
holding_amount_change?: string;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* include holding change percentage for specified timeframes, comma-separated if
|
|
463
|
+
* querying more than 1 timeframe Valid values: 7d, 14d, 30d, 90d, 1y, ytd
|
|
464
|
+
*/
|
|
465
|
+
holding_change_percentage?: string;
|
|
269
466
|
}
|
|
270
467
|
|
|
271
468
|
export interface PublicTreasuryGetHoldingChartParams {
|
|
@@ -325,6 +522,7 @@ export declare namespace PublicTreasury {
|
|
|
325
522
|
type PublicTreasuryGetHoldingChartResponse as PublicTreasuryGetHoldingChartResponse,
|
|
326
523
|
type PublicTreasuryGetTransactionHistoryResponse as PublicTreasuryGetTransactionHistoryResponse,
|
|
327
524
|
type PublicTreasuryGetCoinIDParams as PublicTreasuryGetCoinIDParams,
|
|
525
|
+
type PublicTreasuryGetEntityIDParams as PublicTreasuryGetEntityIDParams,
|
|
328
526
|
type PublicTreasuryGetHoldingChartParams as PublicTreasuryGetHoldingChartParams,
|
|
329
527
|
type PublicTreasuryGetTransactionHistoryParams as PublicTreasuryGetTransactionHistoryParams,
|
|
330
528
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '3.0.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "3.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "3.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '3.0.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|