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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |