Skip to content

Client

cyhole.dex_screener.client

DexScreenerClient

DexScreenerClient(
    interaction: DexScreener, headers: Any | None = None
)

Bases: APIClient


              flowchart TD
              cyhole.dex_screener.client.DexScreenerClient[DexScreenerClient]
              cyhole.core.client.APIClient[APIClient]
              cyhole.core.client.APIClientInterface[APIClientInterface]

                              cyhole.core.client.APIClient --> cyhole.dex_screener.client.DexScreenerClient
                                cyhole.core.client.APIClientInterface --> cyhole.core.client.APIClient
                



              click cyhole.dex_screener.client.DexScreenerClient href "" "cyhole.dex_screener.client.DexScreenerClient"
              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 DexScreener interaction.

Source code in src/cyhole/dex_screener/client.py
25
26
27
def __init__(self, interaction: DexScreener, headers: Any | None = None) -> None:
    super().__init__(interaction, headers)
    self._interaction: DexScreener = self._interaction

get_token_profiles_latest

get_token_profiles_latest() -> (
    GetTokenProfilesLatestResponse
)

Call the DexScreener's GET Token Profiles Latest API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_token_profiles_latest.

Source code in src/cyhole/dex_screener/client.py
29
30
31
32
33
34
def get_token_profiles_latest(self) -> GetTokenProfilesLatestResponse:
    """
    Call the DexScreener's GET **[Token Profiles Latest](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_token_profiles_latest`][cyhole.dex_screener.interaction.DexScreener._get_token_profiles_latest].
    """
    return self._interaction._get_token_profiles_latest(True)

get_community_takeover

get_community_takeover() -> GetCommunityTakeoverResponse

Call the DexScreener's GET Community Takeovers Latest API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_community_takeover.

Source code in src/cyhole/dex_screener/client.py
36
37
38
39
40
41
def get_community_takeover(self) -> GetCommunityTakeoverResponse:
    """
    Call the DexScreener's GET **[Community Takeovers Latest](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_community_takeover`][cyhole.dex_screener.interaction.DexScreener._get_community_takeover].
    """
    return self._interaction._get_community_takeover(True)

get_ads_latest

get_ads_latest() -> GetAdsLatestResponse

Call the DexScreener's GET Ads Latest API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_ads_latest.

Source code in src/cyhole/dex_screener/client.py
43
44
45
46
47
48
def get_ads_latest(self) -> GetAdsLatestResponse:
    """
    Call the DexScreener's GET **[Ads Latest](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_ads_latest`][cyhole.dex_screener.interaction.DexScreener._get_ads_latest].
    """
    return self._interaction._get_ads_latest(True)

get_token_boosts_latest

get_token_boosts_latest() -> GetTokenBoostsLatestResponse

Call the DexScreener's GET Token Boosts Latest API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_token_boosts_latest.

Source code in src/cyhole/dex_screener/client.py
50
51
52
53
54
55
def get_token_boosts_latest(self) -> GetTokenBoostsLatestResponse:
    """
    Call the DexScreener's GET **[Token Boosts Latest](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_token_boosts_latest`][cyhole.dex_screener.interaction.DexScreener._get_token_boosts_latest].
    """
    return self._interaction._get_token_boosts_latest(True)

get_token_boosts_top

get_token_boosts_top() -> GetTokenBoostsTopResponse

Call the DexScreener's GET Token Boosts Top API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_token_boosts_top.

Source code in src/cyhole/dex_screener/client.py
57
58
59
60
61
62
def get_token_boosts_top(self) -> GetTokenBoostsTopResponse:
    """
    Call the DexScreener's GET **[Token Boosts Top](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_token_boosts_top`][cyhole.dex_screener.interaction.DexScreener._get_token_boosts_top].
    """
    return self._interaction._get_token_boosts_top(True)

get_orders

get_orders(
    chain_id: str, token_address: str
) -> GetOrdersResponse

Call the DexScreener's GET Orders API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_orders.

Source code in src/cyhole/dex_screener/client.py
64
65
66
67
68
69
def get_orders(self, chain_id: str, token_address: str) -> GetOrdersResponse:
    """
    Call the DexScreener's GET **[Orders](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_orders`][cyhole.dex_screener.interaction.DexScreener._get_orders].
    """
    return self._interaction._get_orders(True, chain_id, token_address)

get_pairs

get_pairs(chain_id: str, pair_id: str) -> GetPairsResponse

Call the DexScreener's GET Pairs API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_pairs.

Source code in src/cyhole/dex_screener/client.py
71
72
73
74
75
76
def get_pairs(self, chain_id: str, pair_id: str) -> GetPairsResponse:
    """
    Call the DexScreener's GET **[Pairs](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_pairs`][cyhole.dex_screener.interaction.DexScreener._get_pairs].
    """
    return self._interaction._get_pairs(True, chain_id, pair_id)

get_tokens

get_tokens(
    chain_id: str, token_addresses: str
) -> GetTokensResponse

Call the DexScreener's GET Tokens API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_tokens.

Source code in src/cyhole/dex_screener/client.py
78
79
80
81
82
83
def get_tokens(self, chain_id: str, token_addresses: str) -> GetTokensResponse:
    """
    Call the DexScreener's GET **[Tokens](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_tokens`][cyhole.dex_screener.interaction.DexScreener._get_tokens].
    """
    return self._interaction._get_tokens(True, chain_id, token_addresses)

get_token_pairs

get_token_pairs(
    chain_id: str, token_address: str
) -> GetTokenPairsResponse

Call the DexScreener's GET Token Pairs API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_token_pairs.

Source code in src/cyhole/dex_screener/client.py
85
86
87
88
89
90
def get_token_pairs(self, chain_id: str, token_address: str) -> GetTokenPairsResponse:
    """
    Call the DexScreener's GET **[Token Pairs](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_token_pairs`][cyhole.dex_screener.interaction.DexScreener._get_token_pairs].
    """
    return self._interaction._get_token_pairs(True, chain_id, token_address)
get_search(query: str) -> GetSearchResponse

Call the DexScreener's GET Search API endpoint for synchronous logic. All the API endpoint details are available on DexScreener._get_search.

Source code in src/cyhole/dex_screener/client.py
92
93
94
95
96
97
def get_search(self, query: str) -> GetSearchResponse:
    """
    Call the DexScreener's GET **[Search](https://docs.dexscreener.com/api/reference)** API endpoint for synchronous logic.
    All the API endpoint details are available on [`DexScreener._get_search`][cyhole.dex_screener.interaction.DexScreener._get_search].
    """
    return self._interaction._get_search(True, query)

DexScreenerAsyncClient

DexScreenerAsyncClient(
    interaction: DexScreener, headers: Any | None = None
)

Bases: AsyncAPIClient


              flowchart TD
              cyhole.dex_screener.client.DexScreenerAsyncClient[DexScreenerAsyncClient]
              cyhole.core.client.AsyncAPIClient[AsyncAPIClient]
              cyhole.core.client.APIClientInterface[APIClientInterface]

                              cyhole.core.client.AsyncAPIClient --> cyhole.dex_screener.client.DexScreenerAsyncClient
                                cyhole.core.client.APIClientInterface --> cyhole.core.client.AsyncAPIClient
                



              click cyhole.dex_screener.client.DexScreenerAsyncClient href "" "cyhole.dex_screener.client.DexScreenerAsyncClient"
              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 DexScreener interaction.

Source code in src/cyhole/dex_screener/client.py
103
104
105
def __init__(self, interaction: DexScreener, headers: Any | None = None) -> None:
    super().__init__(interaction, headers)
    self._interaction: DexScreener = self._interaction

get_token_profiles_latest async

get_token_profiles_latest() -> (
    GetTokenProfilesLatestResponse
)

Call the DexScreener's GET Token Profiles Latest API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_token_profiles_latest.

Source code in src/cyhole/dex_screener/client.py
107
108
109
110
111
112
async def get_token_profiles_latest(self) -> GetTokenProfilesLatestResponse:
    """
    Call the DexScreener's GET **[Token Profiles Latest](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_token_profiles_latest`][cyhole.dex_screener.interaction.DexScreener._get_token_profiles_latest].
    """
    return await self._interaction._get_token_profiles_latest(False)

get_community_takeover async

get_community_takeover() -> GetCommunityTakeoverResponse

Call the DexScreener's GET Community Takeovers Latest API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_community_takeover.

Source code in src/cyhole/dex_screener/client.py
114
115
116
117
118
119
async def get_community_takeover(self) -> GetCommunityTakeoverResponse:
    """
    Call the DexScreener's GET **[Community Takeovers Latest](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_community_takeover`][cyhole.dex_screener.interaction.DexScreener._get_community_takeover].
    """
    return await self._interaction._get_community_takeover(False)

get_ads_latest async

get_ads_latest() -> GetAdsLatestResponse

Call the DexScreener's GET Ads Latest API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_ads_latest.

Source code in src/cyhole/dex_screener/client.py
121
122
123
124
125
126
async def get_ads_latest(self) -> GetAdsLatestResponse:
    """
    Call the DexScreener's GET **[Ads Latest](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_ads_latest`][cyhole.dex_screener.interaction.DexScreener._get_ads_latest].
    """
    return await self._interaction._get_ads_latest(False)

get_token_boosts_latest async

get_token_boosts_latest() -> GetTokenBoostsLatestResponse

Call the DexScreener's GET Token Boosts Latest API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_token_boosts_latest.

Source code in src/cyhole/dex_screener/client.py
128
129
130
131
132
133
async def get_token_boosts_latest(self) -> GetTokenBoostsLatestResponse:
    """
    Call the DexScreener's GET **[Token Boosts Latest](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_token_boosts_latest`][cyhole.dex_screener.interaction.DexScreener._get_token_boosts_latest].
    """
    return await self._interaction._get_token_boosts_latest(False)

get_token_boosts_top async

get_token_boosts_top() -> GetTokenBoostsTopResponse

Call the DexScreener's GET Token Boosts Top API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_token_boosts_top.

Source code in src/cyhole/dex_screener/client.py
135
136
137
138
139
140
async def get_token_boosts_top(self) -> GetTokenBoostsTopResponse:
    """
    Call the DexScreener's GET **[Token Boosts Top](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_token_boosts_top`][cyhole.dex_screener.interaction.DexScreener._get_token_boosts_top].
    """
    return await self._interaction._get_token_boosts_top(False)

get_orders async

get_orders(
    chain_id: str, token_address: str
) -> GetOrdersResponse

Call the DexScreener's GET Orders API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_orders.

Source code in src/cyhole/dex_screener/client.py
142
143
144
145
146
147
async def get_orders(self, chain_id: str, token_address: str) -> GetOrdersResponse:
    """
    Call the DexScreener's GET **[Orders](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_orders`][cyhole.dex_screener.interaction.DexScreener._get_orders].
    """
    return await self._interaction._get_orders(False, chain_id, token_address)

get_pairs async

get_pairs(chain_id: str, pair_id: str) -> GetPairsResponse

Call the DexScreener's GET Pairs API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_pairs.

Source code in src/cyhole/dex_screener/client.py
149
150
151
152
153
154
async def get_pairs(self, chain_id: str, pair_id: str) -> GetPairsResponse:
    """
    Call the DexScreener's GET **[Pairs](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_pairs`][cyhole.dex_screener.interaction.DexScreener._get_pairs].
    """
    return await self._interaction._get_pairs(False, chain_id, pair_id)

get_tokens async

get_tokens(
    chain_id: str, token_addresses: str
) -> GetTokensResponse

Call the DexScreener's GET Tokens API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_tokens.

Source code in src/cyhole/dex_screener/client.py
156
157
158
159
160
161
async def get_tokens(self, chain_id: str, token_addresses: str) -> GetTokensResponse:
    """
    Call the DexScreener's GET **[Tokens](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_tokens`][cyhole.dex_screener.interaction.DexScreener._get_tokens].
    """
    return await self._interaction._get_tokens(False, chain_id, token_addresses)

get_token_pairs async

get_token_pairs(
    chain_id: str, token_address: str
) -> GetTokenPairsResponse

Call the DexScreener's GET Token Pairs API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_token_pairs.

Source code in src/cyhole/dex_screener/client.py
163
164
165
166
167
168
async def get_token_pairs(self, chain_id: str, token_address: str) -> GetTokenPairsResponse:
    """
    Call the DexScreener's GET **[Token Pairs](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_token_pairs`][cyhole.dex_screener.interaction.DexScreener._get_token_pairs].
    """
    return await self._interaction._get_token_pairs(False, chain_id, token_address)
get_search(query: str) -> GetSearchResponse

Call the DexScreener's GET Search API endpoint for asynchronous logic. All the API endpoint details are available on DexScreener._get_search.

Source code in src/cyhole/dex_screener/client.py
170
171
172
173
174
175
async def get_search(self, query: str) -> GetSearchResponse:
    """
    Call the DexScreener's GET **[Search](https://docs.dexscreener.com/api/reference)** API endpoint for asynchronous logic.
    All the API endpoint details are available on [`DexScreener._get_search`][cyhole.dex_screener.interaction.DexScreener._get_search].
    """
    return await self._interaction._get_search(False, query)