Skip to content

Commit e0bf518

Browse files
feat(api): api update
1 parent fb765bb commit e0bf518

51 files changed

Lines changed: 385 additions & 10 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 81
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/coingecko%2Fcoingecko-9782d0fc256ca80aa3bb4c14cb3b3944b0076c5cea6046563c8a5979adc8981d.yml
3-
openapi_spec_hash: dcb61d2acfd79e5b906fd191f6b512bb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/coingecko%2Fcoingecko-a23494dedfc230f769076f4022de83a327d642db68ceadedf998921c66ff9310.yml
3+
openapi_spec_hash: 0bcc6962d4ee8f39880019986e87e433
44
config_hash: 7710c0bb2c0cea0ec5a44596f81188a6

src/coingecko_sdk/resources/coins/circulating_supply_chart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get(
4949
id: str,
5050
*,
5151
days: str,
52-
interval: Literal["daily"] | Omit = omit,
52+
interval: Literal["5m", "hourly", "daily"] | Omit = omit,
5353
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5454
# The extra values given here take precedence over values defined on the client or passed to this method.
5555
extra_headers: Headers | None = None,
@@ -172,7 +172,7 @@ async def get(
172172
id: str,
173173
*,
174174
days: str,
175-
interval: Literal["daily"] | Omit = omit,
175+
interval: Literal["5m", "hourly", "daily"] | Omit = omit,
176176
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
177177
# The extra values given here take precedence over values defined on the client or passed to this method.
178178
extra_headers: Headers | None = None,

src/coingecko_sdk/resources/coins/coins.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def get_id(
182182
community_data: bool | Omit = omit,
183183
developer_data: bool | Omit = omit,
184184
dex_pair_format: Literal["contract_address", "symbol"] | Omit = omit,
185+
include_categories_details: bool | Omit = omit,
185186
localization: bool | Omit = omit,
186187
market_data: bool | Omit = omit,
187188
sparkline: bool | Omit = omit,
@@ -208,6 +209,8 @@ def get_id(
208209
set to `symbol` to display DEX pair base and target as symbols, default:
209210
`contract_address`
210211
212+
include_categories_details: include categories details, default: false
213+
211214
localization: include all the localized languages in the response, default: true
212215
213216
market_data: include market data, default: true
@@ -238,6 +241,7 @@ def get_id(
238241
"community_data": community_data,
239242
"developer_data": developer_data,
240243
"dex_pair_format": dex_pair_format,
244+
"include_categories_details": include_categories_details,
241245
"localization": localization,
242246
"market_data": market_data,
243247
"sparkline": sparkline,
@@ -321,6 +325,7 @@ async def get_id(
321325
community_data: bool | Omit = omit,
322326
developer_data: bool | Omit = omit,
323327
dex_pair_format: Literal["contract_address", "symbol"] | Omit = omit,
328+
include_categories_details: bool | Omit = omit,
324329
localization: bool | Omit = omit,
325330
market_data: bool | Omit = omit,
326331
sparkline: bool | Omit = omit,
@@ -347,6 +352,8 @@ async def get_id(
347352
set to `symbol` to display DEX pair base and target as symbols, default:
348353
`contract_address`
349354
355+
include_categories_details: include categories details, default: false
356+
350357
localization: include all the localized languages in the response, default: true
351358
352359
market_data: include market data, default: true
@@ -377,6 +384,7 @@ async def get_id(
377384
"community_data": community_data,
378385
"developer_data": developer_data,
379386
"dex_pair_format": dex_pair_format,
387+
"include_categories_details": include_categories_details,
380388
"localization": localization,
381389
"market_data": market_data,
382390
"sparkline": sparkline,

src/coingecko_sdk/resources/coins/history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get(
5959
24hrs volume, ...) at a given date for a coin based on a particular coin ID**
6060
6161
Args:
62-
date: date of data snapshot (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`)
62+
date: date of data snapshot (`YYYY-MM-DD`)
6363
6464
localization: include all the localized languages in response, default: true
6565
@@ -130,7 +130,7 @@ async def get(
130130
24hrs volume, ...) at a given date for a coin based on a particular coin ID**
131131
132132
Args:
133-
date: date of data snapshot (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`)
133+
date: date of data snapshot (`YYYY-MM-DD`)
134134
135135
localization: include all the localized languages in response, default: true
136136

src/coingecko_sdk/resources/onchain/networks/dexes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def get_pools(
9191
*,
9292
network: str,
9393
include: str | Omit = omit,
94+
include_gt_community_data: bool | Omit = omit,
9495
page: int | Omit = omit,
9596
sort: Literal["h24_tx_count_desc", "h24_volume_usd_desc"] | Omit = omit,
9697
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -108,6 +109,9 @@ def get_pools(
108109
include: attributes to include, comma-separated if more than one to include Available
109110
values: `base_token`, `quote_token`, `dex`
110111
112+
include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
113+
Default value: false
114+
111115
page: page through results Default value: 1
112116
113117
sort: sort the pools by field Default value: h24_tx_count_desc
@@ -134,6 +138,7 @@ def get_pools(
134138
query=maybe_transform(
135139
{
136140
"include": include,
141+
"include_gt_community_data": include_gt_community_data,
137142
"page": page,
138143
"sort": sort,
139144
},
@@ -211,6 +216,7 @@ async def get_pools(
211216
*,
212217
network: str,
213218
include: str | Omit = omit,
219+
include_gt_community_data: bool | Omit = omit,
214220
page: int | Omit = omit,
215221
sort: Literal["h24_tx_count_desc", "h24_volume_usd_desc"] | Omit = omit,
216222
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -228,6 +234,9 @@ async def get_pools(
228234
include: attributes to include, comma-separated if more than one to include Available
229235
values: `base_token`, `quote_token`, `dex`
230236
237+
include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
238+
Default value: false
239+
231240
page: page through results Default value: 1
232241
233242
sort: sort the pools by field Default value: h24_tx_count_desc
@@ -254,6 +263,7 @@ async def get_pools(
254263
query=await async_maybe_transform(
255264
{
256265
"include": include,
266+
"include_gt_community_data": include_gt_community_data,
257267
"page": page,
258268
"sort": sort,
259269
},

src/coingecko_sdk/resources/onchain/networks/new_pools.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def get(
4646
self,
4747
*,
4848
include: str | Omit = omit,
49+
include_gt_community_data: bool | Omit = omit,
4950
page: int | Omit = omit,
5051
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5152
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -62,6 +63,9 @@ def get(
6263
include: attributes to include, comma-separated if more than one to include Available
6364
values: `base_token`, `quote_token`, `dex`, `network`
6465
66+
include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
67+
Default value: false
68+
6569
page: page through results Default value: 1
6670
6771
extra_headers: Send extra headers
@@ -82,6 +86,7 @@ def get(
8286
query=maybe_transform(
8387
{
8488
"include": include,
89+
"include_gt_community_data": include_gt_community_data,
8590
"page": page,
8691
},
8792
new_pool_get_params.NewPoolGetParams,
@@ -95,6 +100,7 @@ def get_network(
95100
network: str,
96101
*,
97102
include: str | Omit = omit,
103+
include_gt_community_data: bool | Omit = omit,
98104
page: int | Omit = omit,
99105
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
100106
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -111,6 +117,9 @@ def get_network(
111117
include: attributes to include, comma-separated if more than one to include Available
112118
values: `base_token`, `quote_token`, `dex`
113119
120+
include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
121+
Default value: false
122+
114123
page: page through results Default value: 1
115124
116125
extra_headers: Send extra headers
@@ -133,6 +142,7 @@ def get_network(
133142
query=maybe_transform(
134143
{
135144
"include": include,
145+
"include_gt_community_data": include_gt_community_data,
136146
"page": page,
137147
},
138148
new_pool_get_network_params.NewPoolGetNetworkParams,
@@ -166,6 +176,7 @@ async def get(
166176
self,
167177
*,
168178
include: str | Omit = omit,
179+
include_gt_community_data: bool | Omit = omit,
169180
page: int | Omit = omit,
170181
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
171182
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -182,6 +193,9 @@ async def get(
182193
include: attributes to include, comma-separated if more than one to include Available
183194
values: `base_token`, `quote_token`, `dex`, `network`
184195
196+
include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
197+
Default value: false
198+
185199
page: page through results Default value: 1
186200
187201
extra_headers: Send extra headers
@@ -202,6 +216,7 @@ async def get(
202216
query=await async_maybe_transform(
203217
{
204218
"include": include,
219+
"include_gt_community_data": include_gt_community_data,
205220
"page": page,
206221
},
207222
new_pool_get_params.NewPoolGetParams,
@@ -215,6 +230,7 @@ async def get_network(
215230
network: str,
216231
*,
217232
include: str | Omit = omit,
233+
include_gt_community_data: bool | Omit = omit,
218234
page: int | Omit = omit,
219235
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
220236
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -231,6 +247,9 @@ async def get_network(
231247
include: attributes to include, comma-separated if more than one to include Available
232248
values: `base_token`, `quote_token`, `dex`
233249
250+
include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
251+
Default value: false
252+
234253
page: page through results Default value: 1
235254
236255
extra_headers: Send extra headers
@@ -253,6 +272,7 @@ async def get_network(
253272
query=await async_maybe_transform(
254273
{
255274
"include": include,
275+
"include_gt_community_data": include_gt_community_data,
256276
"page": page,
257277
},
258278
new_pool_get_network_params.NewPoolGetNetworkParams,

src/coingecko_sdk/resources/onchain/networks/pools/pools.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def get(
9797
network: str,
9898
*,
9999
include: str | Omit = omit,
100+
include_gt_community_data: bool | Omit = omit,
100101
page: int | Omit = omit,
101102
sort: Literal["h24_tx_count_desc", "h24_volume_usd_desc"] | Omit = omit,
102103
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -114,6 +115,9 @@ def get(
114115
include: attributes to include, comma-separated if more than one to include Available
115116
values: `base_token`, `quote_token`, `dex`
116117
118+
include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
119+
Default value: false
120+
117121
page: page through results Default value: 1
118122
119123
sort: sort the pools by field Default value: h24_tx_count_desc
@@ -138,6 +142,7 @@ def get(
138142
query=maybe_transform(
139143
{
140144
"include": include,
145+
"include_gt_community_data": include_gt_community_data,
141146
"page": page,
142147
"sort": sort,
143148
},
@@ -247,6 +252,7 @@ async def get(
247252
network: str,
248253
*,
249254
include: str | Omit = omit,
255+
include_gt_community_data: bool | Omit = omit,
250256
page: int | Omit = omit,
251257
sort: Literal["h24_tx_count_desc", "h24_volume_usd_desc"] | Omit = omit,
252258
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -264,6 +270,9 @@ async def get(
264270
include: attributes to include, comma-separated if more than one to include Available
265271
values: `base_token`, `quote_token`, `dex`
266272
273+
include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
274+
Default value: false
275+
267276
page: page through results Default value: 1
268277
269278
sort: sort the pools by field Default value: h24_tx_count_desc
@@ -288,6 +297,7 @@ async def get(
288297
query=await async_maybe_transform(
289298
{
290299
"include": include,
300+
"include_gt_community_data": include_gt_community_data,
291301
"page": page,
292302
"sort": sort,
293303
},

src/coingecko_sdk/resources/onchain/networks/tokens/multi.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def get_addresses(
5050
network: str,
5151
include: Literal["top_pools"] | Omit = omit,
5252
include_composition: bool | Omit = omit,
53+
include_inactive_source: bool | Omit = omit,
5354
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5455
# The extra values given here take precedence over values defined on the client or passed to this method.
5556
extra_headers: Headers | None = None,
@@ -66,6 +67,8 @@ def get_addresses(
6667
6768
include_composition: include pool composition, default: false
6869
70+
include_inactive_source: include tokens from inactive pools using the most recent swap, default: false
71+
6972
extra_headers: Send extra headers
7073
7174
extra_query: Add additional query parameters to the request
@@ -89,6 +92,7 @@ def get_addresses(
8992
{
9093
"include": include,
9194
"include_composition": include_composition,
95+
"include_inactive_source": include_inactive_source,
9296
},
9397
multi_get_addresses_params.MultiGetAddressesParams,
9498
),
@@ -124,6 +128,7 @@ async def get_addresses(
124128
network: str,
125129
include: Literal["top_pools"] | Omit = omit,
126130
include_composition: bool | Omit = omit,
131+
include_inactive_source: bool | Omit = omit,
127132
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
128133
# The extra values given here take precedence over values defined on the client or passed to this method.
129134
extra_headers: Headers | None = None,
@@ -140,6 +145,8 @@ async def get_addresses(
140145
141146
include_composition: include pool composition, default: false
142147
148+
include_inactive_source: include tokens from inactive pools using the most recent swap, default: false
149+
143150
extra_headers: Send extra headers
144151
145152
extra_query: Add additional query parameters to the request
@@ -163,6 +170,7 @@ async def get_addresses(
163170
{
164171
"include": include,
165172
"include_composition": include_composition,
173+
"include_inactive_source": include_inactive_source,
166174
},
167175
multi_get_addresses_params.MultiGetAddressesParams,
168176
),

0 commit comments

Comments
 (0)