Client¶
cyhole.birdeye.client
¶
BirdeyeClient
¶
BirdeyeClient(
interaction: Birdeye, headers: Any | None = None
)
Bases: APIClient
Client used for synchronous API calls for Birdeye interaction.
Source code in src/cyhole/birdeye/client.py
40 41 42 | |
get_token_list
¶
get_token_list(
sort_by: str = BirdeyeSort.SORT_V24HUSD.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> GetTokenListResponse
Call the Birdeye's PUBLIC API endpoint Token - List for synchronous logic.
All the API endopint details are available on Birdeye._get_token_list.
Source code in src/cyhole/birdeye/client.py
51 52 53 54 55 56 | |
get_token_creation_info
¶
get_token_creation_info(
address: str,
) -> GetTokenCreationInfoResponse
Call the Birdeye's PRIVATE API endpoint Token - Creation Token Info for synchronous logic.
All the API endopint details are available on Birdeye._get_token_creation_info.
Source code in src/cyhole/birdeye/client.py
58 59 60 61 62 63 | |
get_token_security
¶
get_token_security(
address: str,
) -> GetTokenSecurityResponse
Call the Birdeye's PRIVATE API endpoint Token - Security for synchronous logic.
All the API endopint details are available on Birdeye._get_token_security.
Source code in src/cyhole/birdeye/client.py
65 66 67 68 69 70 | |
get_token_overview
¶
get_token_overview(
address: str,
) -> GetTokenOverviewResponse
Call the Birdeye's PRIVATE API endpoint Token - Overview for synchronous logic.
All the API endopint details are available on Birdeye._get_token_overview.
Source code in src/cyhole/birdeye/client.py
72 73 74 75 76 77 | |
get_price
¶
get_price(
address: str, include_liquidity: bool | None = None
) -> GetPriceResponse
Call the Birdeye's PUBLIC API endpoint Price for synchronous logic.
All the API endopint details are available on Birdeye._get_price.
Source code in src/cyhole/birdeye/client.py
79 80 81 82 83 84 | |
get_price_multiple
¶
get_price_multiple(
list_address: list[str],
include_liquidity: bool | None = None,
) -> GetPriceMultipleResponse
Call the Birdeye's PUBLIC API endpoint Price - Multiple for synchronous logic.
All the API endopint details are available on Birdeye._get_price_multiple.
Source code in src/cyhole/birdeye/client.py
86 87 88 89 90 91 | |
get_price_historical
¶
get_price_historical(
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> GetPriceHistoricalResponse
Call the Birdeye's PUBLIC API endpoint Price - Historical for synchronous logic.
All the API endopint details are available on Birdeye._get_price_historical.
Source code in src/cyhole/birdeye/client.py
93 94 95 96 97 98 | |
get_price_volume_single
¶
get_price_volume_single(
address: str,
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> GetPriceVolumeSingleResponse
Call the Birdeye's PRIVATE API endpoint Price Volume - Single Token for synchronous logic.
All the API endopint details are available on Birdeye._get_price_volume_single.
Source code in src/cyhole/birdeye/client.py
100 101 102 103 104 105 | |
post_price_volume_multi
¶
post_price_volume_multi(
list_address: list[str],
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> PostPriceVolumeMultiResponse
Call the Birdeye's PRIVATE API endpoint Price Volume - Multiple Token for synchronous logic.
All the API endopint details are available on Birdeye._post_price_volume_multi.
Source code in src/cyhole/birdeye/client.py
107 108 109 110 111 112 | |
get_trades_token
¶
get_trades_token(
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
offset: int | None = None,
limit: int | None = None,
) -> GetTradesTokenResponse
Call the Birdeye's PRIVATE API endpoint Trades - Token for synchronous logic.
All the API endopint details are available on Birdeye._get_trades_token.
Source code in src/cyhole/birdeye/client.py
114 115 116 117 118 119 | |
get_trades_pair
¶
get_trades_pair(
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> GetTradesPairResponse
Call the Birdeye's PRIVATE API endpoint Trades - Pair for synchronous logic.
All the API endopint details are available on Birdeye._get_trades_pair.
Source code in src/cyhole/birdeye/client.py
121 122 123 124 125 126 | |
get_ohlcv
¶
get_ohlcv(
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> GetOHLCVTokenPairResponse
Call the Birdeye's PRIVATE API endpoint OHLCV - Token/Pair for synchronous logic.
All the API endopint details are available on Birdeye._get_ohlcv.
Source code in src/cyhole/birdeye/client.py
128 129 130 131 132 133 | |
get_ohlcv_base_quote
¶
get_ohlcv_base_quote(
base_address: str,
quote_address: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> GetOHLCVBaseQuoteResponse
Call the Birdeye's PRIVATE API endpoint OHLCV - Base/Quote for synchronous logic.
All the API endopint details are available on Birdeye._get_ohlcv_base_quote.
Source code in src/cyhole/birdeye/client.py
135 136 137 138 139 140 | |
get_wallet_supported_networks
¶
get_wallet_supported_networks() -> (
GetWalletSupportedNetworksResponse
)
Call the Birdeye's PRIVATE API endpoint Wallet - Supported Networks for synchronous logic.
All the API endopint details are available on Birdeye._get_wallet_supported_networks.
Source code in src/cyhole/birdeye/client.py
142 143 144 145 146 147 | |
BirdeyeAsyncClient
¶
BirdeyeAsyncClient(
interaction: Birdeye, headers: Any | None = None
)
Bases: AsyncAPIClient
Client used for asynchronous API calls for Birdeye interaction.
Source code in src/cyhole/birdeye/client.py
154 155 156 | |
get_token_list
async
¶
get_token_list(
sort_by: str = BirdeyeSort.SORT_V24HUSD.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> GetTokenListResponse
Call the Birdeye's PUBLIC API endpoint Token - List for asynchronous logic.
All the API endopint details are available on Birdeye._get_token_list.
Source code in src/cyhole/birdeye/client.py
165 166 167 168 169 170 | |
get_token_creation_info
async
¶
get_token_creation_info(
address: str,
) -> GetTokenCreationInfoResponse
Call the Birdeye's PRIVATE API endpoint Token - Creation Token Info for asynchronous logic.
All the API endopint details are available on Birdeye._get_token_creation_info.
Source code in src/cyhole/birdeye/client.py
172 173 174 175 176 177 | |
get_token_security
async
¶
get_token_security(
address: str,
) -> GetTokenSecurityResponse
Call the Birdeye's PRIVATE API endpoint Token - Security for asynchronous logic.
All the API endopint details are available on Birdeye._get_token_security.
Source code in src/cyhole/birdeye/client.py
179 180 181 182 183 184 | |
get_token_overview
async
¶
get_token_overview(
address: str,
) -> GetTokenOverviewResponse
Call the Birdeye's PRIVATE API endpoint Token - Overview for asynchronous logic.
All the API endopint details are available on Birdeye._get_token_overview.
Source code in src/cyhole/birdeye/client.py
186 187 188 189 190 191 | |
get_price
async
¶
get_price(
address: str, include_liquidity: bool | None = None
) -> GetPriceResponse
Call the Birdeye's PUBLIC API endpoint Price for asynchronous logic.
All the API endopint details are available on Birdeye._get_price.
Source code in src/cyhole/birdeye/client.py
193 194 195 196 197 198 | |
get_price_multiple
async
¶
get_price_multiple(
list_address: list[str],
include_liquidity: bool | None = None,
) -> GetPriceMultipleResponse
Call the Birdeye's PUBLIC API endpoint Price - Multiple for asynchronous logic.
All the API endopint details are available on Birdeye._get_price_multiple.
Source code in src/cyhole/birdeye/client.py
200 201 202 203 204 205 | |
get_price_historical
async
¶
get_price_historical(
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> GetPriceHistoricalResponse
Call the Birdeye's PUBLIC API endpoint Price - Historical for asynchronous logic.
All the API endopint details are available on Birdeye._get_price_historical.
Source code in src/cyhole/birdeye/client.py
207 208 209 210 211 212 | |
get_price_volume_single
async
¶
get_price_volume_single(
address: str,
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> GetPriceVolumeSingleResponse
Call the Birdeye's PRIVATE API endpoint Price Volume - Single Token for asynchronous logic.
All the API endopint details are available on Birdeye._get_price_volume_single.
Source code in src/cyhole/birdeye/client.py
214 215 216 217 218 219 | |
post_price_volume_multi
async
¶
post_price_volume_multi(
list_address: list[str],
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> PostPriceVolumeMultiResponse
Call the Birdeye's PRIVATE API endpoint Price Volume - Multiple Token for asynchronous logic.
All the API endopint details are available on Birdeye._post_price_volume_multi.
Source code in src/cyhole/birdeye/client.py
221 222 223 224 225 226 | |
get_trades_token
async
¶
get_trades_token(
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
offset: int | None = None,
limit: int | None = None,
) -> GetTradesTokenResponse
Call the Birdeye's PRIVATE API endpoint Trades - Token for asynchronous logic.
All the API endopint details are available on Birdeye._get_trades_token.
Source code in src/cyhole/birdeye/client.py
228 229 230 231 232 233 | |
get_trades_pair
async
¶
get_trades_pair(
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> GetTradesPairResponse
Call the Birdeye's PRIVATE API endpoint Trades - Pair for asynchronous logic.
All the API endopint details are available on Birdeye._get_trades_pair.
Source code in src/cyhole/birdeye/client.py
235 236 237 238 239 240 | |
get_ohlcv
async
¶
get_ohlcv(
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> GetOHLCVTokenPairResponse
Call the Birdeye's PRIVATE API endpoint OHLCV - Token/Pair for asynchronous logic.
All the API endopint details are available on Birdeye._get_ohlcv.
Source code in src/cyhole/birdeye/client.py
242 243 244 245 246 247 | |
get_ohlcv_base_quote
async
¶
get_ohlcv_base_quote(
base_address: str,
quote_address: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> GetOHLCVBaseQuoteResponse
Call the Birdeye's PRIVATE API endpoint OHLCV - Base/Quote for asynchronous logic.
All the API endopint details are available on Birdeye._get_ohlcv_base_quote.
Source code in src/cyhole/birdeye/client.py
249 250 251 252 253 254 | |
get_wallet_supported_networks
async
¶
get_wallet_supported_networks() -> (
GetWalletSupportedNetworksResponse
)
Call the Birdeye's PRIVATE API endpoint Wallet - Supported Networks for asynchronous logic.
All the API endopint details are available on Birdeye._get_wallet_supported_networks.
Source code in src/cyhole/birdeye/client.py
256 257 258 259 260 261 | |