Skip to content

Client

cyhole.gecko.client

GeckoClient

GeckoClient(interaction: Gecko, headers: Any | None = None)

Bases: APIClient


              flowchart TD
              cyhole.gecko.client.GeckoClient[GeckoClient]
              cyhole.core.client.APIClient[APIClient]
              cyhole.core.client.APIClientInterface[APIClientInterface]

                              cyhole.core.client.APIClient --> cyhole.gecko.client.GeckoClient
                                cyhole.core.client.APIClientInterface --> cyhole.core.client.APIClient
                



              click cyhole.gecko.client.GeckoClient href "" "cyhole.gecko.client.GeckoClient"
              click cyhole.core.client.APIClient href "" "cyhole.core.client.APIClient"
              click cyhole.core.client.APIClientInterface href "" "cyhole.core.client.APIClientInterface"
            

Client for synchronous API calls for Gecko interaction.

Source code in src/cyhole/gecko/client.py
34
35
36
def __init__(self, interaction: Gecko, headers: Any | None = None) -> None:
    super().__init__(interaction, headers)
    self._interaction: Gecko = self._interaction

get_networks

get_networks(
    page: int | None = None,
) -> GetNetworksResponse

Call the Gecko's GET Networks API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_networks.

Source code in src/cyhole/gecko/client.py
38
39
40
41
42
43
def get_networks(self, page: int | None = None) -> GetNetworksResponse:
    """
    Call the Gecko's GET **[Networks](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_networks`][cyhole.gecko.interaction.Gecko._get_networks].
    """
    return self._interaction._get_networks(True, page)

get_dexes

get_dexes(
    network: str, page: int | None = None
) -> GetDexesResponse

Call the Gecko's GET Dexes by Network API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_dexes.

Source code in src/cyhole/gecko/client.py
45
46
47
48
49
50
def get_dexes(self, network: str, page: int | None = None) -> GetDexesResponse:
    """
    Call the Gecko's GET **[Dexes by Network](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_dexes`][cyhole.gecko.interaction.Gecko._get_dexes].
    """
    return self._interaction._get_dexes(True, network, page)

get_pool_ohlcv

get_pool_ohlcv(
    network: str,
    pool_address: str,
    timeframe: str,
    query: GetPoolOhlcvQuery | None = None,
) -> GetPoolOHLCVResponse

Call the Gecko's GET Pool OHLCV API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_pool_ohlcv.

Source code in src/cyhole/gecko/client.py
52
53
54
55
56
57
def get_pool_ohlcv(self, network: str, pool_address: str, timeframe: str, query: GetPoolOhlcvQuery | None = None) -> GetPoolOHLCVResponse:
    """
    Call the Gecko's GET **[Pool OHLCV](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_pool_ohlcv`][cyhole.gecko.interaction.Gecko._get_pool_ohlcv].
    """
    return self._interaction._get_pool_ohlcv(True, network, pool_address, timeframe, query)

get_pool_token_info

get_pool_token_info(
    network: str, pool_address: str
) -> GetPoolTokenInfoResponse

Call the Gecko's GET Pool Tokens Info API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_pool_token_info.

Source code in src/cyhole/gecko/client.py
59
60
61
62
63
64
def get_pool_token_info(self, network: str, pool_address: str) -> GetPoolTokenInfoResponse:
    """
    Call the Gecko's GET **[Pool Tokens Info](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_pool_token_info`][cyhole.gecko.interaction.Gecko._get_pool_token_info].
    """
    return self._interaction._get_pool_token_info(True, network, pool_address)

get_pool_trades

get_pool_trades(
    network: str,
    pool_address: str,
    trade_volume_in_usd_greater_than: float | None = None,
    token: str | None = None,
) -> GetPoolTradesResponse

Call the Gecko's GET Pool Trades API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_pool_trades.

Source code in src/cyhole/gecko/client.py
66
67
68
69
70
71
def get_pool_trades(self, network: str, pool_address: str, trade_volume_in_usd_greater_than: float | None = None, token: str | None = None) -> GetPoolTradesResponse:
    """
    Call the Gecko's GET **[Pool Trades](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_pool_trades`][cyhole.gecko.interaction.Gecko._get_pool_trades].
    """
    return self._interaction._get_pool_trades(True, network, pool_address, trade_volume_in_usd_greater_than, token)

get_token_data

get_token_data(
    network: str,
    address: str,
    include: str | None = None,
    include_composition: bool | None = None,
    include_inactive_source: bool | None = None,
) -> GetTokenDataResponse
get_token_data(
    network: str,
    address: list[str],
    include: str | None = None,
    include_composition: bool | None = None,
    include_inactive_source: bool | None = None,
) -> GetTokenDataMultipleResponse
get_token_data(
    network: str,
    address: str | list[str],
    include: str | None = None,
    include_composition: bool | None = None,
    include_inactive_source: bool | None = None,
) -> GetTokenDataResponse | GetTokenDataMultipleResponse

Call the Gecko's GET Token Data API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_token_data.

Source code in src/cyhole/gecko/client.py
78
79
80
81
82
83
def get_token_data(self, network: str, address: str | list[str], include: str | None = None, include_composition: bool | None = None, include_inactive_source: bool | None = None) -> GetTokenDataResponse | GetTokenDataMultipleResponse:
    """
    Call the Gecko's GET **[Token Data](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_data`][cyhole.gecko.interaction.Gecko._get_token_data].
    """
    return self._interaction._get_token_data(True, network, address, include, include_composition, include_inactive_source)  # type: ignore[call-overload]

get_token_info

get_token_info(
    network: str, address: str
) -> GetTokenInfoResponse

Call the Gecko's GET Token Info API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_token_info.

Source code in src/cyhole/gecko/client.py
85
86
87
88
89
90
def get_token_info(self, network: str, address: str) -> GetTokenInfoResponse:
    """
    Call the Gecko's GET **[Token Info](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_info`][cyhole.gecko.interaction.Gecko._get_token_info].
    """
    return self._interaction._get_token_info(True, network, address)

get_recently_updated_tokens

get_recently_updated_tokens(
    network: str | None = None, include: str | None = None
) -> GetRecentlyUpdatedTokensResponse

Call the Gecko's GET Recently Updated Tokens API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_recently_updated_tokens.

Source code in src/cyhole/gecko/client.py
92
93
94
95
96
97
def get_recently_updated_tokens(self, network: str | None = None, include: str | None = None) -> GetRecentlyUpdatedTokensResponse:
    """
    Call the Gecko's GET **[Recently Updated Tokens](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_recently_updated_tokens`][cyhole.gecko.interaction.Gecko._get_recently_updated_tokens].
    """
    return self._interaction._get_recently_updated_tokens(True, network, include)

get_token_ohlcv

get_token_ohlcv(
    network: str,
    token_address: str,
    timeframe: str,
    query: GetTokenOhlcvQuery | None = None,
) -> GetTokenOHLCVResponse

Call the Gecko's GET Token OHLCV API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_token_ohlcv.

Source code in src/cyhole/gecko/client.py
 99
100
101
102
103
104
def get_token_ohlcv(self, network: str, token_address: str, timeframe: str, query: GetTokenOhlcvQuery | None = None) -> GetTokenOHLCVResponse:
    """
    Call the Gecko's GET **[Token OHLCV](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_ohlcv`][cyhole.gecko.interaction.Gecko._get_token_ohlcv].
    """
    return self._interaction._get_token_ohlcv(True, network, token_address, timeframe, query)

get_token_trades

get_token_trades(
    network: str,
    token_address: str,
    trade_volume_in_usd_greater_than: float | None = None,
) -> GetTokenTradesResponse

Call the Gecko's GET Token Trades API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_token_trades.

Source code in src/cyhole/gecko/client.py
106
107
108
109
110
111
def get_token_trades(self, network: str, token_address: str, trade_volume_in_usd_greater_than: float | None = None) -> GetTokenTradesResponse:
    """
    Call the Gecko's GET **[Token Trades](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_trades`][cyhole.gecko.interaction.Gecko._get_token_trades].
    """
    return self._interaction._get_token_trades(True, network, token_address, trade_volume_in_usd_greater_than)

get_token_holders_chart

get_token_holders_chart(
    network: str,
    token_address: str,
    days: str | None = None,
) -> GetTokenHoldersChartResponse

Call the Gecko's GET Token Holders Chart API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_token_holders_chart.

Source code in src/cyhole/gecko/client.py
113
114
115
116
117
118
def get_token_holders_chart(self, network: str, token_address: str, days: str | None = None) -> GetTokenHoldersChartResponse:
    """
    Call the Gecko's GET **[Token Holders Chart](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_holders_chart`][cyhole.gecko.interaction.Gecko._get_token_holders_chart].
    """
    return self._interaction._get_token_holders_chart(True, network, token_address, days)

get_top_token_holders

get_top_token_holders(
    network: str,
    address: str,
    holders: str | None = None,
    include_pnl_details: bool | None = None,
) -> GetTopTokenHoldersResponse

Call the Gecko's GET Top Token Holders API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_top_token_holders.

Source code in src/cyhole/gecko/client.py
120
121
122
123
124
125
def get_top_token_holders(self, network: str, address: str, holders: str | None = None, include_pnl_details: bool | None = None) -> GetTopTokenHoldersResponse:
    """
    Call the Gecko's GET **[Top Token Holders](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_top_token_holders`][cyhole.gecko.interaction.Gecko._get_top_token_holders].
    """
    return self._interaction._get_top_token_holders(True, network, address, holders, include_pnl_details)

get_top_token_traders

get_top_token_traders(
    network: str,
    token_address: str,
    traders: str | None = None,
    sort: str | None = None,
    include_address_label: bool | None = None,
) -> GetTopTokenTradersResponse

Call the Gecko's GET Top Token Traders API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_top_token_traders.

Source code in src/cyhole/gecko/client.py
127
128
129
130
131
132
def get_top_token_traders(self, network: str, token_address: str, traders: str | None = None, sort: str | None = None, include_address_label: bool | None = None) -> GetTopTokenTradersResponse:
    """
    Call the Gecko's GET **[Top Token Traders](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_top_token_traders`][cyhole.gecko.interaction.Gecko._get_top_token_traders].
    """
    return self._interaction._get_top_token_traders(True, network, token_address, traders, sort, include_address_label)

get_simple_token_price

get_simple_token_price(
    network: str,
    address: str | list[str],
    query: GetSimpleTokenPriceQuery | None = None,
) -> GetSimpleTokenPriceResponse

Call the Gecko's GET Simple Token Price API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_simple_token_price.

Source code in src/cyhole/gecko/client.py
134
135
136
137
138
139
def get_simple_token_price(self, network: str, address: str | list[str], query: GetSimpleTokenPriceQuery | None = None) -> GetSimpleTokenPriceResponse:
    """
    Call the Gecko's GET **[Simple Token Price](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_simple_token_price`][cyhole.gecko.interaction.Gecko._get_simple_token_price].
    """
    return self._interaction._get_simple_token_price(True, network, address, query)

get_search_pools

get_search_pools(
    query: str,
    network: str | None = None,
    include: str | None = None,
    page: int | None = None,
) -> GetSearchPoolsResponse

Call the Gecko's GET Search Pools API endpoint for synchronous logic. All the API endpoint details are available on Gecko._get_search_pools.

Source code in src/cyhole/gecko/client.py
141
142
143
144
145
146
def get_search_pools(self, query: str, network: str | None = None, include: str | None = None, page: int | None = None) -> GetSearchPoolsResponse:
    """
    Call the Gecko's GET **[Search Pools](https://www.geckoterminal.com/dex-api)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`Gecko._get_search_pools`][cyhole.gecko.interaction.Gecko._get_search_pools].
    """
    return self._interaction._get_search_pools(True, query, network, include, page)

GeckoAsyncClient

GeckoAsyncClient(
    interaction: Gecko, headers: Any | None = None
)

Bases: AsyncAPIClient


              flowchart TD
              cyhole.gecko.client.GeckoAsyncClient[GeckoAsyncClient]
              cyhole.core.client.AsyncAPIClient[AsyncAPIClient]
              cyhole.core.client.APIClientInterface[APIClientInterface]

                              cyhole.core.client.AsyncAPIClient --> cyhole.gecko.client.GeckoAsyncClient
                                cyhole.core.client.APIClientInterface --> cyhole.core.client.AsyncAPIClient
                



              click cyhole.gecko.client.GeckoAsyncClient href "" "cyhole.gecko.client.GeckoAsyncClient"
              click cyhole.core.client.AsyncAPIClient href "" "cyhole.core.client.AsyncAPIClient"
              click cyhole.core.client.APIClientInterface href "" "cyhole.core.client.APIClientInterface"
            

Client for asynchronous API calls for Gecko interaction.

Source code in src/cyhole/gecko/client.py
152
153
154
def __init__(self, interaction: Gecko, headers: Any | None = None) -> None:
    super().__init__(interaction, headers)
    self._interaction: Gecko = self._interaction

get_networks async

get_networks(
    page: int | None = None,
) -> GetNetworksResponse

Call the Gecko's GET Networks API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_networks.

Source code in src/cyhole/gecko/client.py
156
157
158
159
160
161
async def get_networks(self, page: int | None = None) -> GetNetworksResponse:
    """
    Call the Gecko's GET **[Networks](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_networks`][cyhole.gecko.interaction.Gecko._get_networks].
    """
    return await self._interaction._get_networks(False, page)

get_dexes async

get_dexes(
    network: str, page: int | None = None
) -> GetDexesResponse

Call the Gecko's GET Dexes by Network API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_dexes.

Source code in src/cyhole/gecko/client.py
163
164
165
166
167
168
async def get_dexes(self, network: str, page: int | None = None) -> GetDexesResponse:
    """
    Call the Gecko's GET **[Dexes by Network](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_dexes`][cyhole.gecko.interaction.Gecko._get_dexes].
    """
    return await self._interaction._get_dexes(False, network, page)

get_pool_ohlcv async

get_pool_ohlcv(
    network: str,
    pool_address: str,
    timeframe: str,
    query: GetPoolOhlcvQuery | None = None,
) -> GetPoolOHLCVResponse

Call the Gecko's GET Pool OHLCV API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_pool_ohlcv.

Source code in src/cyhole/gecko/client.py
170
171
172
173
174
175
async def get_pool_ohlcv(self, network: str, pool_address: str, timeframe: str, query: GetPoolOhlcvQuery | None = None) -> GetPoolOHLCVResponse:
    """
    Call the Gecko's GET **[Pool OHLCV](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_pool_ohlcv`][cyhole.gecko.interaction.Gecko._get_pool_ohlcv].
    """
    return await self._interaction._get_pool_ohlcv(False, network, pool_address, timeframe, query)

get_pool_token_info async

get_pool_token_info(
    network: str, pool_address: str
) -> GetPoolTokenInfoResponse

Call the Gecko's GET Pool Tokens Info API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_pool_token_info.

Source code in src/cyhole/gecko/client.py
177
178
179
180
181
182
async def get_pool_token_info(self, network: str, pool_address: str) -> GetPoolTokenInfoResponse:
    """
    Call the Gecko's GET **[Pool Tokens Info](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_pool_token_info`][cyhole.gecko.interaction.Gecko._get_pool_token_info].
    """
    return await self._interaction._get_pool_token_info(False, network, pool_address)

get_pool_trades async

get_pool_trades(
    network: str,
    pool_address: str,
    trade_volume_in_usd_greater_than: float | None = None,
    token: str | None = None,
) -> GetPoolTradesResponse

Call the Gecko's GET Pool Trades API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_pool_trades.

Source code in src/cyhole/gecko/client.py
184
185
186
187
188
189
async def get_pool_trades(self, network: str, pool_address: str, trade_volume_in_usd_greater_than: float | None = None, token: str | None = None) -> GetPoolTradesResponse:
    """
    Call the Gecko's GET **[Pool Trades](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_pool_trades`][cyhole.gecko.interaction.Gecko._get_pool_trades].
    """
    return await self._interaction._get_pool_trades(False, network, pool_address, trade_volume_in_usd_greater_than, token)

get_token_data async

get_token_data(
    network: str,
    address: str,
    include: str | None = None,
    include_composition: bool | None = None,
    include_inactive_source: bool | None = None,
) -> GetTokenDataResponse
get_token_data(
    network: str,
    address: list[str],
    include: str | None = None,
    include_composition: bool | None = None,
    include_inactive_source: bool | None = None,
) -> GetTokenDataMultipleResponse
get_token_data(
    network: str,
    address: str | list[str],
    include: str | None = None,
    include_composition: bool | None = None,
    include_inactive_source: bool | None = None,
) -> GetTokenDataResponse | GetTokenDataMultipleResponse

Call the Gecko's GET Token Data API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_token_data.

Source code in src/cyhole/gecko/client.py
196
197
198
199
200
201
async def get_token_data(self, network: str, address: str | list[str], include: str | None = None, include_composition: bool | None = None, include_inactive_source: bool | None = None) -> GetTokenDataResponse | GetTokenDataMultipleResponse:
    """
    Call the Gecko's GET **[Token Data](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_data`][cyhole.gecko.interaction.Gecko._get_token_data].
    """
    return await self._interaction._get_token_data(False, network, address, include, include_composition, include_inactive_source)  # type: ignore[call-overload]

get_token_info async

get_token_info(
    network: str, address: str
) -> GetTokenInfoResponse

Call the Gecko's GET Token Info API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_token_info.

Source code in src/cyhole/gecko/client.py
203
204
205
206
207
208
async def get_token_info(self, network: str, address: str) -> GetTokenInfoResponse:
    """
    Call the Gecko's GET **[Token Info](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_info`][cyhole.gecko.interaction.Gecko._get_token_info].
    """
    return await self._interaction._get_token_info(False, network, address)

get_recently_updated_tokens async

get_recently_updated_tokens(
    network: str | None = None, include: str | None = None
) -> GetRecentlyUpdatedTokensResponse

Call the Gecko's GET Recently Updated Tokens API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_recently_updated_tokens.

Source code in src/cyhole/gecko/client.py
210
211
212
213
214
215
async def get_recently_updated_tokens(self, network: str | None = None, include: str | None = None) -> GetRecentlyUpdatedTokensResponse:
    """
    Call the Gecko's GET **[Recently Updated Tokens](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_recently_updated_tokens`][cyhole.gecko.interaction.Gecko._get_recently_updated_tokens].
    """
    return await self._interaction._get_recently_updated_tokens(False, network, include)

get_token_ohlcv async

get_token_ohlcv(
    network: str,
    token_address: str,
    timeframe: str,
    query: GetTokenOhlcvQuery | None = None,
) -> GetTokenOHLCVResponse

Call the Gecko's GET Token OHLCV API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_token_ohlcv.

Source code in src/cyhole/gecko/client.py
217
218
219
220
221
222
async def get_token_ohlcv(self, network: str, token_address: str, timeframe: str, query: GetTokenOhlcvQuery | None = None) -> GetTokenOHLCVResponse:
    """
    Call the Gecko's GET **[Token OHLCV](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_ohlcv`][cyhole.gecko.interaction.Gecko._get_token_ohlcv].
    """
    return await self._interaction._get_token_ohlcv(False, network, token_address, timeframe, query)

get_token_trades async

get_token_trades(
    network: str,
    token_address: str,
    trade_volume_in_usd_greater_than: float | None = None,
) -> GetTokenTradesResponse

Call the Gecko's GET Token Trades API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_token_trades.

Source code in src/cyhole/gecko/client.py
224
225
226
227
228
229
async def get_token_trades(self, network: str, token_address: str, trade_volume_in_usd_greater_than: float | None = None) -> GetTokenTradesResponse:
    """
    Call the Gecko's GET **[Token Trades](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_trades`][cyhole.gecko.interaction.Gecko._get_token_trades].
    """
    return await self._interaction._get_token_trades(False, network, token_address, trade_volume_in_usd_greater_than)

get_token_holders_chart async

get_token_holders_chart(
    network: str,
    token_address: str,
    days: str | None = None,
) -> GetTokenHoldersChartResponse

Call the Gecko's GET Token Holders Chart API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_token_holders_chart.

Source code in src/cyhole/gecko/client.py
231
232
233
234
235
236
async def get_token_holders_chart(self, network: str, token_address: str, days: str | None = None) -> GetTokenHoldersChartResponse:
    """
    Call the Gecko's GET **[Token Holders Chart](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_token_holders_chart`][cyhole.gecko.interaction.Gecko._get_token_holders_chart].
    """
    return await self._interaction._get_token_holders_chart(False, network, token_address, days)

get_top_token_holders async

get_top_token_holders(
    network: str,
    address: str,
    holders: str | None = None,
    include_pnl_details: bool | None = None,
) -> GetTopTokenHoldersResponse

Call the Gecko's GET Top Token Holders API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_top_token_holders.

Source code in src/cyhole/gecko/client.py
238
239
240
241
242
243
async def get_top_token_holders(self, network: str, address: str, holders: str | None = None, include_pnl_details: bool | None = None) -> GetTopTokenHoldersResponse:
    """
    Call the Gecko's GET **[Top Token Holders](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_top_token_holders`][cyhole.gecko.interaction.Gecko._get_top_token_holders].
    """
    return await self._interaction._get_top_token_holders(False, network, address, holders, include_pnl_details)

get_top_token_traders async

get_top_token_traders(
    network: str,
    token_address: str,
    traders: str | None = None,
    sort: str | None = None,
    include_address_label: bool | None = None,
) -> GetTopTokenTradersResponse

Call the Gecko's GET Top Token Traders API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_top_token_traders.

Source code in src/cyhole/gecko/client.py
245
246
247
248
249
250
async def get_top_token_traders(self, network: str, token_address: str, traders: str | None = None, sort: str | None = None, include_address_label: bool | None = None) -> GetTopTokenTradersResponse:
    """
    Call the Gecko's GET **[Top Token Traders](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_top_token_traders`][cyhole.gecko.interaction.Gecko._get_top_token_traders].
    """
    return await self._interaction._get_top_token_traders(False, network, token_address, traders, sort, include_address_label)

get_simple_token_price async

get_simple_token_price(
    network: str,
    address: str | list[str],
    query: GetSimpleTokenPriceQuery | None = None,
) -> GetSimpleTokenPriceResponse

Call the Gecko's GET Simple Token Price API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_simple_token_price.

Source code in src/cyhole/gecko/client.py
252
253
254
255
256
257
async def get_simple_token_price(self, network: str, address: str | list[str], query: GetSimpleTokenPriceQuery | None = None) -> GetSimpleTokenPriceResponse:
    """
    Call the Gecko's GET **[Simple Token Price](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_simple_token_price`][cyhole.gecko.interaction.Gecko._get_simple_token_price].
    """
    return await self._interaction._get_simple_token_price(False, network, address, query)

get_search_pools async

get_search_pools(
    query: str,
    network: str | None = None,
    include: str | None = None,
    page: int | None = None,
) -> GetSearchPoolsResponse

Call the Gecko's GET Search Pools API endpoint for asynchronous logic. All the API endpoint details are available on Gecko._get_search_pools.

Source code in src/cyhole/gecko/client.py
259
260
261
262
263
264
async def get_search_pools(self, query: str, network: str | None = None, include: str | None = None, page: int | None = None) -> GetSearchPoolsResponse:
    """
    Call the Gecko's GET **[Search Pools](https://www.geckoterminal.com/dex-api)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`Gecko._get_search_pools`][cyhole.gecko.interaction.Gecko._get_search_pools].
    """
    return await self._interaction._get_search_pools(False, query, network, include, page)