Interaction¶
Connector page for the birdeye.so API.
Each endpoint is mapped and callable via a dedicated method.
Be sure to call an endpoint in line with the permissions of your API.
cyhole.birdeye.Birdeye
¶
Birdeye(
api_key: str | None = None,
chain: str = BirdeyeChain.SOLANA.value,
)
Bases: Interaction
flowchart TD
cyhole.birdeye.Birdeye[Birdeye]
cyhole.core.interaction.Interaction[Interaction]
cyhole.core.interaction.Interaction --> cyhole.birdeye.Birdeye
click cyhole.birdeye.Birdeye href "" "cyhole.birdeye.Birdeye"
click cyhole.core.interaction.Interaction href "" "cyhole.core.interaction.Interaction"
Class used to connect https://birdeye.so API. To have access Birdeye API (public or private) is required to have a valid API key.
Check https://docs.birdeye.so for all the details on the available endpoints.
Info
If the API key is not provided during the object creation, then it is automatically retrieved from ENV variable BIRDEYE_API_KEY.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key
|
str | None
|
specify the API key to use for the connection. |
None
|
chain
|
str
|
identifier of the chain to use in all the requests.
The supported chains are available on |
BirdeyeChain.SOLANA.value
|
Example
import asyncio
from cyhole.birdeye import Birdeye
birdeye = Birdeye()
# Get current token list on Solana
# synchronous
response = birdeye.client.get_token_list()
print(f"Currently listed {len(response.data.tokens)} tokens on Solana")
# asynchronous
async def main() -> None:
async with birdeye.async_client as client:
response = await client.get_token_list()
print(f"Currently listed {len(response.data.tokens)} tokens on Solana")
asyncio.run(main())
Raises:
| Type | Description |
|---|---|
MissingAPIKeyError
|
if no API Key was available during the object creation. |
Source code in src/cyhole/birdeye/interaction.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
_get_token_list
¶
_get_token_list(
sync: Literal[True],
sort_by: str = BirdeyeSort.SORT_V24HUSD.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
min_liquidity: float | None = None,
max_liquidity: float | None = None,
ui_amount_mode: str | None = None,
) -> GetTokenListResponse
_get_token_list(
sync: Literal[False],
sort_by: str = BirdeyeSort.SORT_V24HUSD.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
min_liquidity: float | None = None,
max_liquidity: float | None = None,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, GetTokenListResponse]
_get_token_list(
sync: bool,
sort_by: str = BirdeyeSort.SORT_V24HUSD.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
min_liquidity: float | None = None,
max_liquidity: float | None = None,
ui_amount_mode: str | None = None,
) -> (
GetTokenListResponse
| Coroutine[None, None, GetTokenListResponse]
)
This function refers to the PUBLIC API endpoint Token - List (V1) and is used to retrieve a ranked list of tokens on the selected chain, scored by the chosen metric (USD volume, market cap, 24h change, or liquidity). It is the legacy V1 listing endpoint: results are returned in a flat page of at most 50 entries and each row carries the core identity, price/liquidity, market cap and 24h volume fields that power Birdeye's public token discovery views.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sort_by
|
str
|
define the metric used to rank the returned tokens (e.g. USD volume in the
last 24h, market cap, 24h change, or liquidity).
The supported values are available on |
BirdeyeSort.SORT_V24HUSD.value
|
order_by
|
str
|
define the order of the ranking (ascending or descending).
The supported values are available on |
BirdeyeOrder.DESCENDING.value
|
offset
|
int | None
|
zero-based offset to use for pagination. Combined with |
None
|
limit
|
int | None
|
number of records to return per page. The API caps this at |
None
|
min_liquidity
|
float | None
|
exclusive lower bound on the on-chain liquidity (USD) of returned tokens.
Birdeye applies a default of |
None
|
max_liquidity
|
float | None
|
exclusive upper bound on the on-chain liquidity (USD) of returned tokens. If not provided, the API does not apply any upper bound. |
None
|
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures on Solana.
The supported values are available on |
None
|
Returns:
| Type | Description |
|---|---|
GetTokenListResponse | Coroutine[None, None, GetTokenListResponse]
|
ranked list of tokens for the selected chain along with the snapshot timestamp. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | |
_get_v3_token_list
¶
_get_v3_token_list(
sync: Literal[True],
query: GetV3TokenListQuery | None = None,
) -> GetV3TokenListResponse
_get_v3_token_list(
sync: Literal[False],
query: GetV3TokenListQuery | None = None,
) -> Coroutine[None, None, GetV3TokenListResponse]
_get_v3_token_list(
sync: bool, query: GetV3TokenListQuery | None = None
) -> (
GetV3TokenListResponse
| Coroutine[None, None, GetV3TokenListResponse]
)
This function refers to the PRIVATE API endpoint Token - List (V3) and is used
to retrieve a paginated ranked list of tokens on the selected chain, with a much richer filter
surface than the legacy V1 listing endpoint: callers can rank by any of the 46 metrics exposed
on BirdeyeV3TokenListSortBy and restrict
results by liquidity, market cap, FDV, holder count, recent-listing time, last-trade time
and a wide range of per-window (1m..30d) volume, price-change and trade-count thresholds.
Each entry returned by the endpoint mirrors the cyhole V3TokenListItem
shape (identity, supply, liquidity, price, per-window aggregates).
Info
The endpoint is restricted by Birdeye to Solana, Base, BSC, Ethereum and Monad. Pagination
must satisfy offset + limit <= 10000; each page is capped at 100 entries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
GetV3TokenListQuery | None
|
optional |
None
|
Returns:
| Type | Description |
|---|---|
GetV3TokenListResponse | Coroutine[None, None, GetV3TokenListResponse]
|
paginated list of tokens decoded as |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | |
_get_v3_token_list_scroll
¶
_get_v3_token_list_scroll(
sync: Literal[True],
query: GetV3TokenListScrollQuery | None = None,
) -> GetV3TokenListScrollResponse
_get_v3_token_list_scroll(
sync: Literal[False],
query: GetV3TokenListScrollQuery | None = None,
) -> Coroutine[None, None, GetV3TokenListScrollResponse]
_get_v3_token_list_scroll(
sync: bool,
query: GetV3TokenListScrollQuery | None = None,
) -> (
GetV3TokenListScrollResponse
| Coroutine[None, None, GetV3TokenListScrollResponse]
)
This function refers to the PRIVATE API endpoint Token - List (V3) Scroll and is used
to iterate through the full v3 token list using a server-issued opaque cursor instead of
offset/limit pagination. Each call returns up to 5 000 token entries (vs the 100/page cap
of the offset-based v3 list) and an next_scroll_id cursor; pass that cursor back as
scroll_id on the next call to fetch the next batch of the same scroll session. Filters
(liquidity, market cap, FDV, holder, recent listing time, per-window thresholds, ...) are
honoured only on the first call (with scroll_id left to None) and ignored on
continuation calls. Items share the V3TokenListItem
shape used by the regular v3 list, with the additional creation_time field populated
on scroll results.
Info
Birdeye enforces a hard cap of one active scroll_id per account per 30 seconds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
GetV3TokenListScrollQuery | None
|
optional |
None
|
Returns:
| Type | Description |
|---|---|
GetV3TokenListScrollResponse | Coroutine[None, None, GetV3TokenListScrollResponse]
|
scroll batch decoded as |
GetV3TokenListScrollResponse | Coroutine[None, None, GetV3TokenListScrollResponse]
|
Inspect |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | |
_get_v2_tokens_new_listing
¶
_get_v2_tokens_new_listing(
sync: Literal[True],
time_to: int | None = None,
limit: int | None = None,
meme_platform_enabled: bool | None = None,
) -> GetV2TokensNewListingResponse
_get_v2_tokens_new_listing(
sync: Literal[False],
time_to: int | None = None,
limit: int | None = None,
meme_platform_enabled: bool | None = None,
) -> Coroutine[None, None, GetV2TokensNewListingResponse]
_get_v2_tokens_new_listing(
sync: bool,
time_to: int | None = None,
limit: int | None = None,
meme_platform_enabled: bool | None = None,
) -> (
GetV2TokensNewListingResponse
| Coroutine[None, None, GetV2TokensNewListingResponse]
)
This function refers to the PRIVATE API endpoint Token - New Listing and is used
to retrieve a feed of tokens that Birdeye has just detected listings for on the selected
chain, ordered most-recent first. It is the canonical way to discover freshly-launched
tokens before they show up in the ranked token list, and powers Birdeye's "new pairs"
UIs. The endpoint returns a single batch (no offset pagination); call it repeatedly with
an updated time_to to walk further back in time.
Info
Available on every Birdeye chain except Sui. The meme_platform_enabled toggle is
Solana-only.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time_to
|
int | None
|
optional unix-second cursor; when set Birdeye returns only listings observed at or before this timestamp. Default behaviour: most recent listings. |
None
|
limit
|
int | None
|
number of records to return (1..20). Default behaviour: |
None
|
meme_platform_enabled
|
bool | None
|
when |
None
|
Returns:
| Type | Description |
|---|---|
GetV2TokensNewListingResponse | Coroutine[None, None, GetV2TokensNewListingResponse]
|
feed of newly-listed tokens decoded as |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
Source code in src/cyhole/birdeye/interaction.py
378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 | |
_get_v2_markets
¶
_get_v2_markets(
sync: Literal[True],
address: str,
sort_by: str = BirdeyeV2MarketsSortBy.LIQUIDITY.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> GetV2MarketsResponse
_get_v2_markets(
sync: Literal[False],
address: str,
sort_by: str = BirdeyeV2MarketsSortBy.LIQUIDITY.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> Coroutine[None, None, GetV2MarketsResponse]
_get_v2_markets(
sync: bool,
address: str,
sort_by: str = BirdeyeV2MarketsSortBy.LIQUIDITY.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> (
GetV2MarketsResponse
| Coroutine[None, None, GetV2MarketsResponse]
)
This function refers to the PRIVATE API endpoint Token - All Market List and is used to retrieve the list of markets (trading pairs) Birdeye knows for a given token, ranked by liquidity or 24h USD volume. Each entry describes the market address, its source (DEX/aggregator), the base/quote token identities, current liquidity, price, and 24h trade/volume/unique-wallet aggregates plus the percent change vs the previous 24h window. Useful when a caller wants to drill down from a token to where it actually trades.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
contract address of the token whose markets must be listed. |
required |
sort_by
|
str
|
ranking metric. Pick one of the constants on
|
BirdeyeV2MarketsSortBy.LIQUIDITY.value
|
sort_type
|
str
|
ascending or descending order. Pick one of the constants on
|
BirdeyeOrder.DESCENDING.value
|
offset
|
int | None
|
zero-based pagination offset. Default behaviour: |
None
|
limit
|
int | None
|
number of records to return (1..20). Default behaviour: |
None
|
Returns:
| Type | Description |
|---|---|
GetV2MarketsResponse | Coroutine[None, None, GetV2MarketsResponse]
|
paginated list of markets decoded as |
GetV2MarketsResponse | Coroutine[None, None, GetV2MarketsResponse]
|
plus the total number of markets Birdeye tracks for the token in |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 | |
_get_v3_token_meta_data
¶
_get_v3_token_meta_data(
sync: Literal[True], address: str
) -> GetV3TokenMetaDataResponse
_get_v3_token_meta_data(
sync: Literal[True], address: list[str]
) -> GetV3TokenMetaDataMultipleResponse
_get_v3_token_meta_data(
sync: Literal[False], address: str
) -> Coroutine[None, None, GetV3TokenMetaDataResponse]
_get_v3_token_meta_data(
sync: Literal[False], address: list[str]
) -> Coroutine[
None, None, GetV3TokenMetaDataMultipleResponse
]
_get_v3_token_meta_data(
sync: bool, address: str | list[str]
) -> (
GetV3TokenMetaDataResponse
| GetV3TokenMetaDataMultipleResponse
| Coroutine[None, None, GetV3TokenMetaDataResponse]
| Coroutine[
None, None, GetV3TokenMetaDataMultipleResponse
]
)
This function refers to the v3 Birdeye token-metadata endpoints Token - Metadata (Single)
and Token - Metadata (Multiple).
They return the lightweight identity payload for one or more tokens on the selected chain
(address, symbol, name, decimals, logo URL and the free-form extensions bag of social
links / CoinGecko id). This is the right call when a caller just needs to resolve a token
address to a display name and icon without paying for the full Token - Overview payload.
The method is polymorphic: pass a single str address and the function routes to
/defi/v3/token/meta-data/single, returning a GetV3TokenMetaDataResponse;
pass a list[str] of addresses and it routes to /defi/v3/token/meta-data/multiple,
returning a GetV3TokenMetaDataMultipleResponse
whose data is a dict keyed by token address.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str | list[str]
|
a single token contract address (string) or a list of token contract addresses. The list flavour issues one HTTP call instead of N. |
required |
Returns:
| Type | Description |
|---|---|
GetV3TokenMetaDataResponse | GetV3TokenMetaDataMultipleResponse | Coroutine[None, None, GetV3TokenMetaDataResponse] | Coroutine[None, None, GetV3TokenMetaDataMultipleResponse]
|
metadata payload for the requested token(s); the concrete type depends on the input |
GetV3TokenMetaDataResponse | GetV3TokenMetaDataMultipleResponse | Coroutine[None, None, GetV3TokenMetaDataResponse] | Coroutine[None, None, GetV3TokenMetaDataMultipleResponse]
|
cardinality (see above). |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
Source code in src/cyhole/birdeye/interaction.py
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 | |
_get_v3_token_market_data
¶
_get_v3_token_market_data(
sync: Literal[True],
address: str,
ui_amount_mode: str | None = None,
) -> GetV3TokenMarketDataResponse
_get_v3_token_market_data(
sync: Literal[True],
address: list[str],
ui_amount_mode: str | None = None,
) -> GetV3TokenMarketDataMultipleResponse
_get_v3_token_market_data(
sync: Literal[False],
address: str,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, GetV3TokenMarketDataResponse]
_get_v3_token_market_data(
sync: Literal[False],
address: list[str],
ui_amount_mode: str | None = None,
) -> Coroutine[
None, None, GetV3TokenMarketDataMultipleResponse
]
_get_v3_token_market_data(
sync: bool,
address: str | list[str],
ui_amount_mode: str | None = None,
) -> (
GetV3TokenMarketDataResponse
| GetV3TokenMarketDataMultipleResponse
| Coroutine[None, None, GetV3TokenMarketDataResponse]
| Coroutine[
None, None, GetV3TokenMarketDataMultipleResponse
]
)
This function refers to the v3 Birdeye token market-data endpoints Token - Market Data (Single) and Token - Market Data (Multiple). They return a compact market snapshot per token: price, liquidity, total/circulating supply, FDV, market cap and holder count. It is a cheaper alternative to Token - Overview when a caller only needs the headline numbers without the per-window trade/volume breakdown.
The method is polymorphic: pass a single str address and the function routes to
/defi/v3/token/market-data, returning a GetV3TokenMarketDataResponse;
pass a list[str] of addresses and it routes to /defi/v3/token/market-data/multiple,
returning a GetV3TokenMarketDataMultipleResponse
whose data is a dict keyed by token address.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str | list[str]
|
a single token contract address (string) or a list of token contract addresses. |
required |
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures on Solana.
The supported values are available on |
None
|
Returns:
| Type | Description |
|---|---|
GetV3TokenMarketDataResponse | GetV3TokenMarketDataMultipleResponse | Coroutine[None, None, GetV3TokenMarketDataResponse] | Coroutine[None, None, GetV3TokenMarketDataMultipleResponse]
|
market snapshot payload for the requested token(s); the concrete type depends on the |
GetV3TokenMarketDataResponse | GetV3TokenMarketDataMultipleResponse | Coroutine[None, None, GetV3TokenMarketDataResponse] | Coroutine[None, None, GetV3TokenMarketDataMultipleResponse]
|
input cardinality (see above). |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 | |
_get_v3_token_trade_data
¶
_get_v3_token_trade_data(
sync: Literal[True],
address: str,
frames: str | None = None,
ui_amount_mode: str | None = None,
) -> GetV3TokenTradeDataResponse
_get_v3_token_trade_data(
sync: Literal[True],
address: list[str],
frames: str | None = None,
ui_amount_mode: str | None = None,
) -> GetV3TokenTradeDataMultipleResponse
_get_v3_token_trade_data(
sync: Literal[False],
address: str,
frames: str | None = None,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, GetV3TokenTradeDataResponse]
_get_v3_token_trade_data(
sync: Literal[False],
address: list[str],
frames: str | None = None,
ui_amount_mode: str | None = None,
) -> Coroutine[
None, None, GetV3TokenTradeDataMultipleResponse
]
_get_v3_token_trade_data(
sync: bool,
address: str | list[str],
frames: str | None = None,
ui_amount_mode: str | None = None,
) -> (
GetV3TokenTradeDataResponse
| GetV3TokenTradeDataMultipleResponse
| Coroutine[None, None, GetV3TokenTradeDataResponse]
| Coroutine[
None, None, GetV3TokenTradeDataMultipleResponse
]
)
This function refers to the v3 Birdeye token trade-data endpoints Token - Trade Data (Single) and Token - Trade Data (Multiple). They return the full trading-activity snapshot of a token: latest price, price history at the 1m/5m/30m/1h/2h/4h/6h/8h/12h/24h windows, per-window (1m..24h) unique-wallet counts and full sell/buy/volume breakdowns, all aligned with the equivalent metric over the previous window. This is the "give me everything about how this token is trading" call — heavier than Token - Market Data but lighter than Token - Overview as it skips the identity and supply sections.
The method is polymorphic: pass a single str address and the function routes to
/defi/v3/token/trade-data/single, returning a GetV3TokenTradeDataResponse;
pass a list[str] of addresses and it routes to /defi/v3/token/trade-data/multiple,
returning a GetV3TokenTradeDataMultipleResponse
whose data is a dict keyed by token address.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str | list[str]
|
a single token contract address (string) or a list of token contract addresses. |
required |
frames
|
str | None
|
optional comma-separated list of additional custom time intervals to include in
the response (up to 8 entries). Same grammar as on Token - Overview: minute intervals
|
None
|
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures on Solana.
The supported values are available on |
None
|
Returns:
| Type | Description |
|---|---|
GetV3TokenTradeDataResponse | GetV3TokenTradeDataMultipleResponse | Coroutine[None, None, GetV3TokenTradeDataResponse] | Coroutine[None, None, GetV3TokenTradeDataMultipleResponse]
|
trading-activity snapshot for the requested token(s); the concrete type depends on the |
GetV3TokenTradeDataResponse | GetV3TokenTradeDataMultipleResponse | Coroutine[None, None, GetV3TokenTradeDataResponse] | Coroutine[None, None, GetV3TokenTradeDataMultipleResponse]
|
input cardinality (see above). |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 | |
_get_v3_token_exit_liquidity
¶
_get_v3_token_exit_liquidity(
sync: Literal[True], address: str
) -> GetV3TokenExitLiquidityResponse
_get_v3_token_exit_liquidity(
sync: Literal[True], address: list[str]
) -> GetV3TokenExitLiquidityMultipleResponse
_get_v3_token_exit_liquidity(
sync: Literal[False], address: str
) -> Coroutine[None, None, GetV3TokenExitLiquidityResponse]
_get_v3_token_exit_liquidity(
sync: Literal[False], address: list[str]
) -> Coroutine[
None, None, GetV3TokenExitLiquidityMultipleResponse
]
_get_v3_token_exit_liquidity(
sync: bool, address: str | list[str]
) -> (
GetV3TokenExitLiquidityResponse
| GetV3TokenExitLiquidityMultipleResponse
| Coroutine[None, None, GetV3TokenExitLiquidityResponse]
| Coroutine[
None, None, GetV3TokenExitLiquidityMultipleResponse
]
)
This function refers to the v3 Birdeye token exit-liquidity endpoints Token - Liquidity (Single)
and Token - Liquidity (Multiple).
They return Birdeye's estimate of how much value the largest holders of a token could
realistically extract by selling without crashing the price, computed from the on-chain
liquidity profile of the token's biggest markets. The single variant returns the payload
directly under data; the multiple variant returns data.items as a list (one entry per
requested address).
Info
Birdeye restricts both endpoints to the Base chain at the time of writing.
The method is polymorphic: pass a single str address and the function routes to
/defi/v3/token/exit-liquidity, returning a GetV3TokenExitLiquidityResponse;
pass a list[str] of addresses and it routes to /defi/v3/token/exit-liquidity/multiple,
returning a GetV3TokenExitLiquidityMultipleResponse
whose data.items is a list of entries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str | list[str]
|
a single token contract address (string) or a list of token contract addresses. |
required |
Returns:
| Type | Description |
|---|---|
GetV3TokenExitLiquidityResponse | GetV3TokenExitLiquidityMultipleResponse | Coroutine[None, None, GetV3TokenExitLiquidityResponse] | Coroutine[None, None, GetV3TokenExitLiquidityMultipleResponse]
|
exit-liquidity payload for the requested token(s); the concrete type depends on the |
GetV3TokenExitLiquidityResponse | GetV3TokenExitLiquidityMultipleResponse | Coroutine[None, None, GetV3TokenExitLiquidityResponse] | Coroutine[None, None, GetV3TokenExitLiquidityMultipleResponse]
|
input cardinality (see above). |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
Source code in src/cyhole/birdeye/interaction.py
701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 | |
_get_v3_token_mint_burn_txs
¶
_get_v3_token_mint_burn_txs(
sync: Literal[True],
address: str,
type: str = BirdeyeMintBurnType.ALL.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
after_time: int | None = None,
before_time: int | None = None,
offset: int | None = None,
limit: int | None = None,
) -> GetV3TokenMintBurnTxsResponse
_get_v3_token_mint_burn_txs(
sync: Literal[False],
address: str,
type: str = BirdeyeMintBurnType.ALL.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
after_time: int | None = None,
before_time: int | None = None,
offset: int | None = None,
limit: int | None = None,
) -> Coroutine[None, None, GetV3TokenMintBurnTxsResponse]
_get_v3_token_mint_burn_txs(
sync: bool,
address: str,
type: str = BirdeyeMintBurnType.ALL.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
after_time: int | None = None,
before_time: int | None = None,
offset: int | None = None,
limit: int | None = None,
) -> (
GetV3TokenMintBurnTxsResponse
| Coroutine[None, None, GetV3TokenMintBurnTxsResponse]
)
This function refers to the PRIVATE API endpoint Token - Mint/Burn and is used to retrieve the on-chain mint and burn transactions of an SPL token: every transaction that either increases or decreases the token's total supply. Each entry exposes the on-chain signature, the affected mint, the program that emitted the instruction, raw and UI-formatted amounts, slot, and the block timestamp. Useful for auditing supply changes (rewards, redemptions, buybacks) outside of normal trades.
Info
Birdeye restricts this endpoint to the Solana chain at the time of writing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
contract address of the SPL token whose mint/burn history must be retrieved. |
required |
type
|
str
|
kind of supply change to return. Pick one of the constants on
|
BirdeyeMintBurnType.ALL.value
|
sort_type
|
str
|
ascending or descending order on |
BirdeyeOrder.DESCENDING.value
|
after_time
|
int | None
|
optional inclusive lower bound on the transaction block time, in unix
seconds; |
None
|
before_time
|
int | None
|
optional inclusive upper bound on the transaction block time, in unix
seconds; |
None
|
offset
|
int | None
|
zero-based pagination offset. Default behaviour: |
None
|
limit
|
int | None
|
number of records to return (1..100). Default behaviour: |
None
|
Returns:
| Type | Description |
|---|---|
GetV3TokenMintBurnTxsResponse | Coroutine[None, None, GetV3TokenMintBurnTxsResponse]
|
ranked list of mint/burn transactions decoded as |
GetV3TokenMintBurnTxsResponse | Coroutine[None, None, GetV3TokenMintBurnTxsResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 | |
_get_v2_tokens_top_traders
¶
_get_v2_tokens_top_traders(
sync: Literal[True],
address: str,
time_frame: str = BirdeyeV2TopTradersTimeFrame.H24.value,
sort_by: str = BirdeyeV2TopTradersSortBy.VOLUME.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> GetV2TopTradersResponse
_get_v2_tokens_top_traders(
sync: Literal[False],
address: str,
time_frame: str = BirdeyeV2TopTradersTimeFrame.H24.value,
sort_by: str = BirdeyeV2TopTradersSortBy.VOLUME.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, GetV2TopTradersResponse]
_get_v2_tokens_top_traders(
sync: bool,
address: str,
time_frame: str = BirdeyeV2TopTradersTimeFrame.H24.value,
sort_by: str = BirdeyeV2TopTradersSortBy.VOLUME.value,
sort_type: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> (
GetV2TopTradersResponse
| Coroutine[None, None, GetV2TopTradersResponse]
)
This function refers to the PRIVATE API endpoint Token - Top Traders and is used
to retrieve the wallets that traded the most of a given token over a configurable time
frame, ranked by raw volume, USD volume, trade count, or realised/unrealised PnL. Each
entry exposes the wallet address, optional Birdeye tags (whale, bot, ...), trade and
volume splits between buy and sell sides, and Solana-only profit-and-loss figures.
Useful when surfacing the dominant participants behind a token's recent activity.
Info
The PnL-based sort metrics (total_pnl, unrealized_pnl, realized_pnl,
volume_usd) and the longer time frames (2d..90d) are restricted by Birdeye to
Solana. On every other chain only volume / trade sort and time frames up to 24h
are honoured.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
contract address of the token whose top traders must be listed. |
required |
time_frame
|
str
|
trailing window for the metrics. Pick one of the constants on
|
BirdeyeV2TopTradersTimeFrame.H24.value
|
sort_by
|
str
|
ranking metric. Pick one of the constants on
|
BirdeyeV2TopTradersSortBy.VOLUME.value
|
sort_type
|
str
|
ascending or descending order. Pick one of the constants on
|
BirdeyeOrder.DESCENDING.value
|
offset
|
int | None
|
zero-based pagination offset. Default behaviour: |
None
|
limit
|
int | None
|
number of records to return. Default behaviour: |
None
|
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures on Solana. Pick a
|
None
|
Returns:
| Type | Description |
|---|---|
GetV2TopTradersResponse | Coroutine[None, None, GetV2TopTradersResponse]
|
ranked list of top trader entries decoded as |
GetV2TopTradersResponse | Coroutine[None, None, GetV2TopTradersResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 | |
_get_token_holder
¶
_get_token_holder(
sync: Literal[True],
token_address: str,
wallets: None = None,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> GetTokenHolderResponse
_get_token_holder(
sync: Literal[True],
token_address: str,
wallets: list[str],
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> PostTokenHolderBatchResponse
_get_token_holder(
sync: Literal[False],
token_address: str,
wallets: None = None,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, GetTokenHolderResponse]
_get_token_holder(
sync: Literal[False],
token_address: str,
wallets: list[str],
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, PostTokenHolderBatchResponse]
_get_token_holder(
sync: bool,
token_address: str,
wallets: list[str] | None = None,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> (
GetTokenHolderResponse
| PostTokenHolderBatchResponse
| Coroutine[None, None, GetTokenHolderResponse]
| Coroutine[None, None, PostTokenHolderBatchResponse]
)
This function consolidates the Birdeye top-holder and batch-balance endpoints Token - Holder and Token - Holder (Batch) under a single polymorphic call:
- leave
walletsto its defaultNoneto retrieve the ranked list of largest holders oftoken_address(GET /defi/v3/token/holder). The response is decoded asGetTokenHolderResponseand exposes themint,owner,token_account, raw and UI-formatted balance for each holder. - pass
walletsas a list of specific wallet addresses to look up their balance intoken_address(POST /token/v1/holder/batch). The response is decoded asPostTokenHolderBatchResponseand exposesmint,owner,balance(raw) andamount(UI) per requested wallet.
Info
Both endpoints are restricted by Birdeye to the Solana chain at the time of writing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_address
|
str
|
contract address of the SPL token to look up. |
required |
wallets
|
list[str] | None
|
list of wallet addresses whose balances must be fetched. When |
None
|
offset
|
int | None
|
zero-based pagination offset for the top-holder ranking. Ignored when
|
None
|
limit
|
int | None
|
number of records to return for the top-holder ranking. Ignored when
|
None
|
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures. Pick a
|
None
|
Returns:
| Type | Description |
|---|---|
GetTokenHolderResponse | PostTokenHolderBatchResponse | Coroutine[None, None, GetTokenHolderResponse] | Coroutine[None, None, PostTokenHolderBatchResponse]
|
top-holder ranking or per-wallet balance list; the concrete type depends on whether |
GetTokenHolderResponse | PostTokenHolderBatchResponse | Coroutine[None, None, GetTokenHolderResponse] | Coroutine[None, None, PostTokenHolderBatchResponse]
|
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 | |
_get_holder_distribution
¶
_get_holder_distribution(
sync: Literal[True],
token_address: str,
address_type: str = BirdeyeHolderDistributionAddressType.WALLET.value,
mode: str = BirdeyeHolderDistributionMode.TOP.value,
top_n: int | None = None,
min_percent: float | None = None,
max_percent: float | None = None,
include_list: bool | None = None,
offset: int | None = None,
limit: int | None = None,
) -> GetHolderDistributionResponse
_get_holder_distribution(
sync: Literal[False],
token_address: str,
address_type: str = BirdeyeHolderDistributionAddressType.WALLET.value,
mode: str = BirdeyeHolderDistributionMode.TOP.value,
top_n: int | None = None,
min_percent: float | None = None,
max_percent: float | None = None,
include_list: bool | None = None,
offset: int | None = None,
limit: int | None = None,
) -> Coroutine[None, None, GetHolderDistributionResponse]
_get_holder_distribution(
sync: bool,
token_address: str,
address_type: str = BirdeyeHolderDistributionAddressType.WALLET.value,
mode: str = BirdeyeHolderDistributionMode.TOP.value,
top_n: int | None = None,
min_percent: float | None = None,
max_percent: float | None = None,
include_list: bool | None = None,
offset: int | None = None,
limit: int | None = None,
) -> (
GetHolderDistributionResponse
| Coroutine[None, None, GetHolderDistributionResponse]
)
This function refers to the PRIVATE API endpoint Token - Holder Distribution and is used
to summarise how the supply of a token is spread across its holders. The endpoint can run
in two modes: in top mode it returns the top-N holders by holding amount, in percent
mode it returns the holders whose share of total supply falls inside a [min_percent, max_percent]
band. Each call also returns an aggregate summary (total holding, cumulative percent of
supply, wallet count) over the filtered set — very useful for "how much of the supply is
in whale hands" style answers.
Info
The endpoint is restricted by Birdeye to the Solana chain at the time of writing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_address
|
str
|
contract address of the SPL token whose distribution must be analysed. |
required |
address_type
|
str
|
whether to group holders by wallet owner or by SPL token account address.
Pick one of the constants on
|
BirdeyeHolderDistributionAddressType.WALLET.value
|
mode
|
str
|
filter mode (top-N vs supply-share range). Pick one of the constants on
|
BirdeyeHolderDistributionMode.TOP.value
|
top_n
|
int | None
|
number of top holders to return when |
None
|
min_percent
|
float | None
|
inclusive lower bound on the holder share when |
None
|
max_percent
|
float | None
|
inclusive upper bound on the holder share when |
None
|
include_list
|
bool | None
|
when |
None
|
offset
|
int | None
|
zero-based pagination offset. Default behaviour: |
None
|
limit
|
int | None
|
number of records to return. Default behaviour: |
None
|
Returns:
| Type | Description |
|---|---|
GetHolderDistributionResponse | Coroutine[None, None, GetHolderDistributionResponse]
|
holder-distribution payload decoded as |
GetHolderDistributionResponse | Coroutine[None, None, GetHolderDistributionResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 | |
_get_token_holder_profile
¶
_get_token_holder_profile(
sync: Literal[True],
token_address: str,
interval: str = "1h",
ui_amount_mode: str | None = None,
include_zero_balance: bool | None = None,
) -> GetHolderProfileResponse
_get_token_holder_profile(
sync: Literal[False],
token_address: str,
interval: str = "1h",
ui_amount_mode: str | None = None,
include_zero_balance: bool | None = None,
) -> Coroutine[None, None, GetHolderProfileResponse]
_get_token_holder_profile(
sync: bool,
token_address: str,
interval: str = "1h",
ui_amount_mode: str | None = None,
include_zero_balance: bool | None = None,
) -> (
GetHolderProfileResponse
| Coroutine[None, None, GetHolderProfileResponse]
)
This function refers to the PRIVATE API endpoint Token - Holder Profile and is used
to retrieve Birdeye's holder-profile summary of a token: headline holder counts, a 1h
market snapshot (liquidity, market cap, buy/sell volume breakdown, top-10 holder
concentration) and a per-tag aggregate breakdown across the five Birdeye holder tags
(bundler, sniper, insider, dev, smart_trader). Useful for surfacing "who is
actually holding this token" at a glance.
Info
The endpoint is restricted by Birdeye to the Solana chain at the time of writing. Bundler-tag data may exhibit a short delay versus the other tags per the API docs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_address
|
str
|
contract address of the SPL token whose holder profile must be retrieved. |
required |
interval
|
str
|
time interval for the volume figures. At the time of writing Birdeye only
supports |
'1h'
|
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures. Pick a
|
None
|
include_zero_balance
|
bool | None
|
when |
None
|
Returns:
| Type | Description |
|---|---|
GetHolderProfileResponse | Coroutine[None, None, GetHolderProfileResponse]
|
holder-profile payload decoded as |
GetHolderProfileResponse | Coroutine[None, None, GetHolderProfileResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 | |
_get_token_holder_positions
¶
_get_token_holder_positions(
sync: Literal[True],
token_address: str,
labels: str | None = None,
order_type: str = BirdeyeOrder.DESCENDING.value,
ui_amount_mode: str | None = None,
include_zero_balance: bool | None = None,
offset: int | None = None,
limit: int | None = None,
) -> GetTokenHolderPositionsResponse
_get_token_holder_positions(
sync: Literal[False],
token_address: str,
labels: str | None = None,
order_type: str = BirdeyeOrder.DESCENDING.value,
ui_amount_mode: str | None = None,
include_zero_balance: bool | None = None,
offset: int | None = None,
limit: int | None = None,
) -> Coroutine[None, None, GetTokenHolderPositionsResponse]
_get_token_holder_positions(
sync: bool,
token_address: str,
labels: str | None = None,
order_type: str = BirdeyeOrder.DESCENDING.value,
ui_amount_mode: str | None = None,
include_zero_balance: bool | None = None,
offset: int | None = None,
limit: int | None = None,
) -> (
GetTokenHolderPositionsResponse
| Coroutine[None, None, GetTokenHolderPositionsResponse]
)
This function refers to the PRIVATE API endpoint Token - Holder Positions and is used to retrieve a paginated list of wallet positions for a given token, optionally filtered by Birdeye holder tags. Each entry describes the wallet's current holding, percent of supply, average buy price, cumulative buy/sell counts and volumes (both in token UI units and USD), profit-and-loss in USD, and the timestamp of its first observed trade. Useful for drilling from a token down to its individual notable holders / traders.
Info
The endpoint is restricted by Birdeye to the Solana chain at the time of writing. Bundler-tag data may exhibit a short delay versus the other tags per the API docs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_address
|
str
|
contract address of the SPL token whose holder positions must be listed. |
required |
labels
|
str | None
|
comma-separated list of holder tags ( |
None
|
order_type
|
str
|
ascending or descending order on the underlying |
BirdeyeOrder.DESCENDING.value
|
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures. Pick a
|
None
|
include_zero_balance
|
bool | None
|
when |
None
|
offset
|
int | None
|
zero-based pagination offset. Default behaviour: |
None
|
limit
|
int | None
|
number of records to return. Default behaviour: |
None
|
Returns:
| Type | Description |
|---|---|
GetTokenHolderPositionsResponse | Coroutine[None, None, GetTokenHolderPositionsResponse]
|
paginated list of per-wallet positions decoded as |
GetTokenHolderPositionsResponse | Coroutine[None, None, GetTokenHolderPositionsResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 | |
_get_token_holder_chart
¶
_get_token_holder_chart(
sync: Literal[True],
token_address: str,
chart_type: str = BirdeyeHolderChartType.H1.value,
time_from: int | None = None,
time_to: int | None = None,
mode: str = BirdeyeHolderChartMode.PADDING.value,
percent_mode: str = BirdeyeHolderChartPercentMode.BEGINNING.value,
count: int | None = None,
) -> GetTokenHolderChartResponse
_get_token_holder_chart(
sync: Literal[False],
token_address: str,
chart_type: str = BirdeyeHolderChartType.H1.value,
time_from: int | None = None,
time_to: int | None = None,
mode: str = BirdeyeHolderChartMode.PADDING.value,
percent_mode: str = BirdeyeHolderChartPercentMode.BEGINNING.value,
count: int | None = None,
) -> Coroutine[None, None, GetTokenHolderChartResponse]
_get_token_holder_chart(
sync: bool,
token_address: str,
chart_type: str = BirdeyeHolderChartType.H1.value,
time_from: int | None = None,
time_to: int | None = None,
mode: str = BirdeyeHolderChartMode.PADDING.value,
percent_mode: str = BirdeyeHolderChartPercentMode.BEGINNING.value,
count: int | None = None,
) -> (
GetTokenHolderChartResponse
| Coroutine[None, None, GetTokenHolderChartResponse]
)
This function refers to the PRIVATE API endpoint Token - Holder Chart and is used
to retrieve a time-series of holder-count snapshots for a given token, suitable for
plotting "holders over time" charts. Each data point exposes the absolute holder count
and both an absolute (net_change) and relative (percent_change) delta versus the
chosen reference (window beginning or previous point).
Info
The endpoint is restricted by Birdeye to the Solana chain at the time of writing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_address
|
str
|
contract address of the SPL token whose holder chart must be retrieved. |
required |
chart_type
|
str
|
resolution of the chart points. Pick one of the constants on
|
BirdeyeHolderChartType.H1.value
|
time_from
|
int | None
|
optional inclusive lower bound on the data-point timestamp, in unix seconds.
|
None
|
time_to
|
int | None
|
optional inclusive upper bound on the data-point timestamp, in unix seconds.
|
None
|
mode
|
str
|
how Birdeye handles missing data points. Pick one of the constants on
|
BirdeyeHolderChartMode.PADDING.value
|
percent_mode
|
str
|
reference point for |
BirdeyeHolderChartPercentMode.BEGINNING.value
|
count
|
int | None
|
maximum number of data points to return. Default behaviour: |
None
|
Returns:
| Type | Description |
|---|---|
GetTokenHolderChartResponse | Coroutine[None, None, GetTokenHolderChartResponse]
|
time-series of holder-count points decoded as |
GetTokenHolderChartResponse | Coroutine[None, None, GetTokenHolderChartResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 | |
_post_token_transfer
¶
_post_token_transfer(
sync: Literal[True], body: PostTokenTransferBody
) -> PostTokenTransferResponse
_post_token_transfer(
sync: Literal[False], body: PostTokenTransferBody
) -> Coroutine[None, None, PostTokenTransferResponse]
_post_token_transfer(
sync: bool, body: PostTokenTransferBody
) -> (
PostTokenTransferResponse
| Coroutine[None, None, PostTokenTransferResponse]
)
This function refers to the PRIVATE API endpoint Token - Transfer List and is used
to retrieve the list of on-chain transfer transactions of a given SPL token, optionally
filtered by time window, transferred amount, USD value, and either side wallet address.
Each entry exposes the sender / receiver wallet and SPL token account, raw and
UI-formatted amount, per-token price, total USD value, slot/block and timestamp.
Pagination is cursor-based: pass the cursor returned by Birdeye on the previous call
via body.cursor to fetch the next page.
Info
The endpoint is restricted by Birdeye to the Solana chain at the time of writing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
PostTokenTransferBody
|
filled-in |
required |
Returns:
| Type | Description |
|---|---|
PostTokenTransferResponse | Coroutine[None, None, PostTokenTransferResponse]
|
paginated list of transfer entries decoded as |
PostTokenTransferResponse | Coroutine[None, None, PostTokenTransferResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
Source code in src/cyhole/birdeye/interaction.py
1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 | |
_post_token_transfer_total
¶
_post_token_transfer_total(
sync: Literal[True], body: PostTokenTransferTotalBody
) -> PostTokenTransferTotalResponse
_post_token_transfer_total(
sync: Literal[False], body: PostTokenTransferTotalBody
) -> Coroutine[None, None, PostTokenTransferTotalResponse]
_post_token_transfer_total(
sync: bool, body: PostTokenTransferTotalBody
) -> (
PostTokenTransferTotalResponse
| Coroutine[None, None, PostTokenTransferTotalResponse]
)
This function refers to the PRIVATE API endpoint Token - Transfer Total and is used
to return the count of SPL token transfer transactions of a given token matching the
same filter set as the Transfer List endpoint (time window, transferred amount, USD
value, sender / receiver wallet). It is the cheap counterpart of
_post_token_transfer when
only the aggregate count is needed (no individual entries, no pagination).
Info
The endpoint is restricted by Birdeye to the Solana chain at the time of writing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
body
|
PostTokenTransferTotalBody
|
filled-in |
required |
Returns:
| Type | Description |
|---|---|
PostTokenTransferTotalResponse | Coroutine[None, None, PostTokenTransferTotalResponse]
|
aggregate count payload decoded as |
PostTokenTransferTotalResponse | Coroutine[None, None, PostTokenTransferTotalResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
Source code in src/cyhole/birdeye/interaction.py
1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 | |
_get_token_trending
¶
_get_token_trending(
sync: Literal[True],
sort_by: str = BirdeyeTokenTrendingSortBy.RANK.value,
sort_type: str = BirdeyeOrder.ASCENDING.value,
interval: str = BirdeyeTokenTrendingInterval.H24.value,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> GetTokenTrendingResponse
_get_token_trending(
sync: Literal[False],
sort_by: str = BirdeyeTokenTrendingSortBy.RANK.value,
sort_type: str = BirdeyeOrder.ASCENDING.value,
interval: str = BirdeyeTokenTrendingInterval.H24.value,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, GetTokenTrendingResponse]
_get_token_trending(
sync: bool,
sort_by: str = BirdeyeTokenTrendingSortBy.RANK.value,
sort_type: str = BirdeyeOrder.ASCENDING.value,
interval: str = BirdeyeTokenTrendingInterval.H24.value,
offset: int | None = None,
limit: int | None = None,
ui_amount_mode: str | None = None,
) -> (
GetTokenTrendingResponse
| Coroutine[None, None, GetTokenTrendingResponse]
)
This function refers to the PRIVATE API endpoint Token - Trending List and is used to retrieve Birdeye's up-to-date ranking of trending tokens on the selected chain. Each entry exposes the trending rank, identity, current price, liquidity, market cap, FDV and the 24h USD volume / price change figures. Useful when surfacing "what is hot right now" on a token discovery UI.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sort_by
|
str
|
ranking metric. Pick one of the constants on
|
BirdeyeTokenTrendingSortBy.RANK.value
|
sort_type
|
str
|
ascending or descending order. Pick one of the constants on
|
BirdeyeOrder.ASCENDING.value
|
interval
|
str
|
trailing window used for the trending computation. Pick one of the
constants on |
BirdeyeTokenTrendingInterval.H24.value
|
offset
|
int | None
|
zero-based pagination offset. Default behaviour: |
None
|
limit
|
int | None
|
number of records to return per page. Default behaviour: |
None
|
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures on Solana. Pick a
|
None
|
Returns:
| Type | Description |
|---|---|
GetTokenTrendingResponse | Coroutine[None, None, GetTokenTrendingResponse]
|
trending-list payload decoded as |
GetTokenTrendingResponse | Coroutine[None, None, GetTokenTrendingResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 | |
_get_token_creation_info
¶
_get_token_creation_info(
sync: Literal[True], address: str
) -> GetTokenCreationInfoResponse
_get_token_creation_info(
sync: Literal[False], address: str
) -> Coroutine[None, None, GetTokenCreationInfoResponse]
_get_token_creation_info(
sync: bool, address: str
) -> (
GetTokenCreationInfoResponse
| Coroutine[None, None, GetTokenCreationInfoResponse]
)
This function refers to the PRIVATE API endpoint Token - Creation Token Info and is used to retrieve the on-chain transaction that originally minted a given token together with its slot, block timestamp (both unix and human-readable), creator/owner address and decimals. It is the canonical way to answer "when and by whom was this token created?" on Birdeye-supported chains and is typically used as part of a token vetting flow (age check, deployer profiling).
Info
Currently the endpoint is restricted by Birdeye to the Solana, BSC, Base, Ethereum and Monad chains.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
contract address of the token whose creation information must be retrieved. |
required |
Returns:
| Type | Description |
|---|---|
GetTokenCreationInfoResponse | Coroutine[None, None, GetTokenCreationInfoResponse]
|
creation transaction hash, slot, block timestamps, creator/owner address and decimals. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 | |
_get_token_security
¶
_get_token_security(
sync: Literal[True], address: str
) -> GetTokenSecurityResponse
_get_token_security(
sync: Literal[False], address: str
) -> Coroutine[None, None, GetTokenSecurityResponse]
_get_token_security(
sync: bool, address: str
) -> (
GetTokenSecurityResponse
| Coroutine[None, None, GetTokenSecurityResponse]
)
This function refers to the PRIVATE API endpoint Token - Security and is used to retrieve Birdeye's risk profile of a token: ownership and authority addresses, creator/owner balances, top-holder concentration, freeze/mint/Token-2022 flags, lock information and metadata mutability. It is the canonical endpoint behind Birdeye's "is this token safe?" checks and is typically consumed when surfacing scam/rug warnings before showing a swap UI.
Info
The endpoint is available on every Birdeye chain except Sui. The response payload differs between Solana (typed schema below) and EVM chains (free-form dictionary).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
contract address of the token to analyse on the currently selected chain. |
required |
Returns:
| Type | Description |
|---|---|
GetTokenSecurityResponse | Coroutine[None, None, GetTokenSecurityResponse]
|
security profile of the token.
Observe that the content of |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 | |
_get_token_overview
¶
_get_token_overview(
sync: Literal[True],
address: str,
frames: str | None = None,
ui_amount_mode: str | None = None,
) -> GetTokenOverviewResponse
_get_token_overview(
sync: Literal[False],
address: str,
frames: str | None = None,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, GetTokenOverviewResponse]
_get_token_overview(
sync: bool,
address: str,
frames: str | None = None,
ui_amount_mode: str | None = None,
) -> (
GetTokenOverviewResponse
| Coroutine[None, None, GetTokenOverviewResponse]
)
This function refers to the PRIVATE API endpoint Token - Overview and is used to retrieve Birdeye's full analytics snapshot of a single token: identity (address, symbol, name, social links), pricing (current price and per-window history at 1m/5m/30m/1h/2h/4h/6h/8h/12h/24h), liquidity, supply (total, circulating, holders count), unique-wallet counts and per-side trade activity (sell, buy, volume in both token-UI units and USD) for the trailing 1m/5m/30m/1h/2h/4h/8h/24h windows together with the equivalent metric over the previous window and a precomputed percent change. It is the canonical endpoint behind Birdeye's token detail page and is normally used as the "give me everything you know about this token" call.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
contract address of the token whose analytics snapshot must be retrieved. |
required |
frames
|
str | None
|
comma-separated list of additional custom time intervals to include in the
response (up to 8 entries). Birdeye accepts minute intervals from |
None
|
ui_amount_mode
|
str | None
|
how to format scaled-UI-amount token figures on Solana.
The supported values are available on |
None
|
Returns:
| Type | Description |
|---|---|
GetTokenOverviewResponse | Coroutine[None, None, GetTokenOverviewResponse]
|
token analytics snapshot decoded as |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 | |
_get_price
¶
_get_price(
sync: Literal[True],
address: str,
include_liquidity: bool | None = None,
) -> GetPriceResponse
_get_price(
sync: Literal[False],
address: str,
include_liquidity: bool | None = None,
) -> Coroutine[None, None, GetPriceResponse]
_get_price(
sync: bool,
address: str,
include_liquidity: bool | None = None,
) -> (
GetPriceResponse
| Coroutine[None, None, GetPriceResponse]
)
This function refers to the PUBLIC API endpoint Price and is used to get the current price of a token according on a specific chain on Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
CA of the token to search on the chain. |
required |
include_liquidity
|
bool | None
|
include the current liquidity of the token.
Default Value: |
None
|
Returns:
| Type | Description |
|---|---|
GetPriceResponse | Coroutine[None, None, GetPriceResponse]
|
token's price returned by birdeye.so. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 | |
_get_price_multiple
¶
_get_price_multiple(
sync: Literal[True],
list_address: list[str],
include_liquidity: bool | None = None,
) -> GetPriceMultipleResponse
_get_price_multiple(
sync: Literal[False],
list_address: list[str],
include_liquidity: bool | None = None,
) -> Coroutine[None, None, GetPriceMultipleResponse]
_get_price_multiple(
sync: bool,
list_address: list[str],
include_liquidity: bool | None = None,
) -> (
GetPriceMultipleResponse
| Coroutine[None, None, GetPriceMultipleResponse]
)
This function refers to the PRIVATE API endpoint Price - Multiple and is used to get the current price of multeple tokens on a specific chain on Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
list_address
|
list[str]
|
CA of the tokens to search on the chain. |
required |
include_liquidity
|
bool | None
|
include the current liquidity of the token.
Default Value: |
None
|
Returns:
| Type | Description |
|---|---|
GetPriceMultipleResponse | Coroutine[None, None, GetPriceMultipleResponse]
|
list of tokens returned by birdeye.so. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 | |
_get_price_historical
¶
_get_price_historical(
sync: Literal[True],
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> GetPriceHistoricalResponse
_get_price_historical(
sync: Literal[False],
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> Coroutine[None, None, GetPriceHistoricalResponse]
_get_price_historical(
sync: bool,
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
) -> (
GetPriceHistoricalResponse
| Coroutine[None, None, GetPriceHistoricalResponse]
)
This function refers to the PUBLIC API endpoint Price - Historical and is used to get the history of prices of a token according on a specific chain on Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
CA of the token to search on the chain. |
required |
address_type
|
str
|
the type of address involved in the extraction.
The supported chains are available on |
required |
timeframe
|
str
|
the type of timeframe involved in the extraction.
The timeframe is used to define intervall between a measure and the next one.
The supported chains are available on |
required |
dt_from
|
datetime
|
beginning time to take take price data. |
required |
dt_to
|
datetime | None
|
end time to take take price data.
It should be |
None
|
Returns:
| Type | Description |
|---|---|
GetPriceHistoricalResponse | Coroutine[None, None, GetPriceHistoricalResponse]
|
list of prices returned by birdeye.so. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 | |
_get_price_volume_single
¶
_get_price_volume_single(
sync: Literal[True],
address: str,
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> GetPriceVolumeSingleResponse
_get_price_volume_single(
sync: Literal[False],
address: str,
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> Coroutine[None, None, GetPriceVolumeSingleResponse]
_get_price_volume_single(
sync: bool,
address: str,
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> (
GetPriceVolumeSingleResponse
| Coroutine[None, None, GetPriceVolumeSingleResponse]
)
This function refers to the PRIVATE API endpoint Price Volume - Single Token and is used to get the current price and volume data for a specified token over a given time period on Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
CA of the token to search on the chain. |
required |
timeframe
|
str
|
the type of timeframe involved in the extraction.
The timeframe is used to define intervall between a measure and the next one.
The supported timeframes are available on |
BirdeyeHourTimeFrame.H24.value
|
Returns:
| Type | Description |
|---|---|
GetPriceVolumeSingleResponse | Coroutine[None, None, GetPriceVolumeSingleResponse]
|
current price and volume data for a specified token over a given time period. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is not aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 | |
_post_price_volume_multi
¶
_post_price_volume_multi(
sync: Literal[True],
list_address: list[str],
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> PostPriceVolumeMultiResponse
_post_price_volume_multi(
sync: Literal[False],
list_address: list[str],
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> Coroutine[None, None, PostPriceVolumeMultiResponse]
_post_price_volume_multi(
sync: bool,
list_address: list[str],
timeframe: str = BirdeyeHourTimeFrame.H24.value,
) -> (
PostPriceVolumeMultiResponse
| Coroutine[None, None, PostPriceVolumeMultiResponse]
)
This function refers to the PRIVATE API endpoint Price Volume - Multiple Token and is used to get the current price and volume data for multiple tokens over a given time period on Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
list_address
|
list[str]
|
list of CA of the tokens to search on the chain. |
required |
timeframe
|
str
|
the type of timeframe involved in the extraction.
The timeframe is used to define intervall between a measure and the next one.
The supported timeframes are available on |
BirdeyeHourTimeFrame.H24.value
|
Returns:
| Type | Description |
|---|---|
PostPriceVolumeMultiResponse | Coroutine[None, None, PostPriceVolumeMultiResponse]
|
current price and volume data for multiple tokens over a given time period. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is not aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 | |
_get_trades_token
¶
_get_trades_token(
sync: Literal[True],
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
offset: int | None = None,
limit: int | None = None,
) -> GetTradesTokenResponse
_get_trades_token(
sync: Literal[False],
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
offset: int | None = None,
limit: int | None = None,
) -> Coroutine[None, None, GetTradesTokenResponse]
_get_trades_token(
sync: bool,
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
offset: int | None = None,
limit: int | None = None,
) -> (
GetTradesTokenResponse
| Coroutine[None, None, GetTradesTokenResponse]
)
This function refers to the PRIVATE API endpoint Trades - Token and is used to get the associated trades of a token according on a specific chain on Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
CA of the token to search on the chain. |
required |
trade_type
|
str
|
the type of transactions to extract.
The supported chains are available on |
BirdeyeTradeType.SWAP.value
|
offset
|
int | None
|
offset to apply in the extraction. |
None
|
limit
|
int | None
|
limit the number of returned records in the extraction. |
None
|
Returns:
| Type | Description |
|---|---|
GetTradesTokenResponse | Coroutine[None, None, GetTradesTokenResponse]
|
list of prices returned by birdeye.so. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 | |
_get_trades_pair
¶
_get_trades_pair(
sync: Literal[True],
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> GetTradesPairResponse
_get_trades_pair(
sync: Literal[False],
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> Coroutine[None, None, GetTradesPairResponse]
_get_trades_pair(
sync: bool,
address: str,
trade_type: str = BirdeyeTradeType.SWAP.value,
order_by: str = BirdeyeOrder.DESCENDING.value,
offset: int | None = None,
limit: int | None = None,
) -> (
GetTradesPairResponse
| Coroutine[None, None, GetTradesPairResponse]
)
This function refers to the PRIVATE API endpoint Trades - Pair and is used to get the associated trades of a tokens pair according on a specific chain on Birdeye. Use the 'Trades - Token' endpoint to retrieve the trades associated to a specific token.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
CA of the token to search on the chain. |
required |
trade_type
|
str
|
the type of transactions to extract.
The supported chains are available on |
BirdeyeTradeType.SWAP.value
|
order_by
|
str
|
define the type of ordering to apply in the
extraction; e.g. ascending or descending.
The sorting types are available on |
BirdeyeOrder.DESCENDING.value
|
offset
|
int | None
|
offset to apply in the extraction. |
None
|
limit
|
int | None
|
limit the number of returned records in the extraction. |
None
|
Returns:
| Type | Description |
|---|---|
GetTradesPairResponse | Coroutine[None, None, GetTradesPairResponse]
|
list of prices returned by birdeye.so. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 | |
_get_ohlcv
¶
_get_ohlcv(
sync: Literal[True],
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
chain: str = BirdeyeChain.SOLANA.value,
) -> GetOHLCVTokenPairResponse
_get_ohlcv(
sync: Literal[False],
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
chain: str = BirdeyeChain.SOLANA.value,
) -> Coroutine[None, None, GetOHLCVTokenPairResponse]
_get_ohlcv(
sync: bool,
address: str,
address_type: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
chain: str = BirdeyeChain.SOLANA.value,
) -> (
GetOHLCVTokenPairResponse
| Coroutine[None, None, GetOHLCVTokenPairResponse]
)
This function refers to the PRIVATE API endpoint OHLCV - Token/Pair and is used to get the Open, High, Low, Close, and Volume (OHLCV) data for a specific token/pair on a chain on Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
CA of the token to search on the chain. |
required |
address_type
|
str
|
the type of address involved in the extraction (token/pair).
The supported chains are available on |
required |
timeframe
|
str
|
the type of timeframe involved in the extraction.
The timeframe is used to define intervall between a measure and the next one.
The supported chains are available on |
required |
dt_from
|
datetime
|
beginning time to take take price data. |
required |
dt_to
|
datetime | None
|
end time to take take price data.
It should be |
None
|
Returns:
| Type | Description |
|---|---|
GetOHLCVTokenPairResponse | Coroutine[None, None, GetOHLCVTokenPairResponse]
|
list of prices returned by birdeye.so. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 | |
_get_ohlcv_base_quote
¶
_get_ohlcv_base_quote(
sync: Literal[True],
base_address: str,
quote_address: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
chain: str = BirdeyeChain.SOLANA.value,
) -> GetOHLCVBaseQuoteResponse
_get_ohlcv_base_quote(
sync: Literal[False],
base_address: str,
quote_address: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
chain: str = BirdeyeChain.SOLANA.value,
) -> Coroutine[None, None, GetOHLCVBaseQuoteResponse]
_get_ohlcv_base_quote(
sync: bool,
base_address: str,
quote_address: str,
timeframe: str,
dt_from: datetime,
dt_to: datetime | None = None,
chain: str = BirdeyeChain.SOLANA.value,
) -> (
GetOHLCVBaseQuoteResponse
| Coroutine[None, None, GetOHLCVBaseQuoteResponse]
)
This function refers to the PRIVATE API endpoint OHLCV - Base/Quote and is used to get the Open, High, Low, Close, and Volume (OHLCV) data for a specific base/quote combination on a chain on Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_address
|
str
|
CA of the token to search on the chain. |
required |
quote_address
|
str
|
CA of the token to search on the chain. |
required |
timeframe
|
str
|
the type of timeframe involved in the extraction.
The timeframe is used to define intervall between a measure and the next one.
The supported chains are available on |
required |
dt_from
|
datetime
|
beginning time to take take price data. |
required |
dt_to
|
datetime | None
|
end time to take take price data.
It should be |
None
|
Returns: list of prices returned by birdeye.so.
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameter belonging to the value list is aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 | |
_get_wallet_supported_networks
¶
_get_wallet_supported_networks(
sync: Literal[True],
) -> GetWalletSupportedNetworksResponse
_get_wallet_supported_networks(
sync: Literal[False],
) -> Coroutine[
None, None, GetWalletSupportedNetworksResponse
]
_get_wallet_supported_networks(
sync: bool,
) -> (
GetWalletSupportedNetworksResponse
| Coroutine[
None, None, GetWalletSupportedNetworksResponse
]
)
This function refers to the PRIVATE API endpoint Wallet - Supported Networks and it is used to get the list of supported chains on Birdeye.
Returns:
| Type | Description |
|---|---|
GetWalletSupportedNetworksResponse | Coroutine[None, None, GetWalletSupportedNetworksResponse]
|
list of chains returned by birdeye.so. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
Source code in src/cyhole/birdeye/interaction.py
2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 | |
_get_v3_search
¶
_get_v3_search(
sync: Literal[True],
query: GetV3SearchQuery | None = None,
) -> GetV3SearchResponse
_get_v3_search(
sync: Literal[False],
query: GetV3SearchQuery | None = None,
) -> Coroutine[None, None, GetV3SearchResponse]
_get_v3_search(
sync: bool, query: GetV3SearchQuery | None = None
) -> (
GetV3SearchResponse
| Coroutine[None, None, GetV3SearchResponse]
)
This function refers to the PRIVATE API endpoint Search and is used
to search for tokens and/or markets across one or all of Birdeye's supported chains.
Callers can narrow results by keyword, entity type, matching mode, chain, and a range of
sort metrics; the response groups matches into type buckets ("token" and "market")
each containing a ranked list of matching items. Useful for token-discovery UIs, autocomplete
search boxes, and cross-chain asset lookups.
Info
The verify_token filter is Solana-only. The markets filter restricts results to
specific DEX sources (e.g. Raydium, Orca). Page size is capped at 20 items per call.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
query
|
GetV3SearchQuery | None
|
optional |
None
|
Returns:
| Type | Description |
|---|---|
GetV3SearchResponse | Coroutine[None, None, GetV3SearchResponse]
|
search results grouped by entity type, decoded as |
GetV3SearchResponse | Coroutine[None, None, GetV3SearchResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
ParamUnknownError
|
if one of the input parameters belonging to the value list is not aligned to it. |
Source code in src/cyhole/birdeye/interaction.py
2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 | |
_get_utils_v1_credits
¶
_get_utils_v1_credits(
sync: Literal[True],
time_from: int | None = None,
time_to: int | None = None,
) -> GetUtilsV1CreditsResponse
_get_utils_v1_credits(
sync: Literal[False],
time_from: int | None = None,
time_to: int | None = None,
) -> Coroutine[None, None, GetUtilsV1CreditsResponse]
_get_utils_v1_credits(
sync: bool,
time_from: int | None = None,
time_to: int | None = None,
) -> (
GetUtilsV1CreditsResponse
| Coroutine[None, None, GetUtilsV1CreditsResponse]
)
This function refers to the PRIVATE API endpoint Utils - Credits and is used to retrieve the API credit usage for the current account over a given time range. Useful for monitoring consumption and detecting when the account is approaching its credit limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
time_from
|
int | None
|
start of the time range as a unix timestamp in seconds; |
None
|
time_to
|
int | None
|
end of the time range as a unix timestamp in seconds; |
None
|
Returns:
| Type | Description |
|---|---|
GetUtilsV1CreditsResponse | Coroutine[None, None, GetUtilsV1CreditsResponse]
|
credit usage statistics decoded as |
GetUtilsV1CreditsResponse | Coroutine[None, None, GetUtilsV1CreditsResponse]
|
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to related endpoint. |
Source code in src/cyhole/birdeye/interaction.py
2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 | |
_get_v3_all_time_trades
¶
_get_v3_all_time_trades(
sync: Literal[True],
address: str | list[str],
time_frame: str,
ui_amount_mode: str | None = None,
) -> GetV3AllTimeTradesResponse
_get_v3_all_time_trades(
sync: Literal[False],
address: str | list[str],
time_frame: str,
ui_amount_mode: str | None = None,
) -> Coroutine[None, None, GetV3AllTimeTradesResponse]
_get_v3_all_time_trades(
sync: bool,
address: str | list[str],
time_frame: str,
ui_amount_mode: str | None = None,
) -> (
GetV3AllTimeTradesResponse
| Coroutine[None, None, GetV3AllTimeTradesResponse]
)
This function consolidates the Birdeye v3 all-time trade statistics endpoints All-Time Trades (Single) and All-Time Trades (Multiple) under a single polymorphic call.
Both variants return the same envelope: a list of
GetV3AllTimeTradesItem objects containing
cumulative trade counts and volumes (buy, sell, total in token UI units and USD) aggregated
over the selected time_frame. This is useful for computing historical trading activity
without having to stitch together per-window snapshots.
The method is polymorphic on the address argument:
- pass a single
straddress → issues aGET /defi/v3/all-time/trades/single. - pass a
list[str]of up to 20 addresses → issues aPOST /defi/v3/all-time/trades/multiple.
Both return a GetV3AllTimeTradesResponse
whose data list contains one item per requested token.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str | list[str]
|
a single token contract address ( |
required |
time_frame
|
str
|
the aggregation window. Must be one of the values from
|
required |
ui_amount_mode
|
str | None
|
controls how token amounts are expressed for scaled-UI-amount SPL
tokens on Solana. Accepted values are available on
|
None
|
Returns:
| Type | Description |
|---|---|
GetV3AllTimeTradesResponse | Coroutine[None, None, GetV3AllTimeTradesResponse]
|
|
GetV3AllTimeTradesResponse | Coroutine[None, None, GetV3AllTimeTradesResponse]
|
with one trade-statistics item per requested token address. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to the endpoint. |
ParamUnknownError
|
if |
Source code in src/cyhole/birdeye/interaction.py
2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 | |
_get_v3_token_meme_detail_single
¶
_get_v3_token_meme_detail_single(
sync: Literal[True], address: str
) -> GetV3TokenMemeDetailSingleResponse
_get_v3_token_meme_detail_single(
sync: Literal[False], address: str
) -> Coroutine[
None, None, GetV3TokenMemeDetailSingleResponse
]
_get_v3_token_meme_detail_single(
sync: bool, address: str
) -> (
GetV3TokenMemeDetailSingleResponse
| Coroutine[
None, None, GetV3TokenMemeDetailSingleResponse
]
)
This function refers to the PRIVATE API endpoint Meme Token Detail - Single and returns the full detail record for a single meme token.
The response bundles standard token identity fields (address, name, symbol,
decimals, price, liquidity, supply, FDV, market cap, logo, extensions) with a
meme_info block that exposes launchpad-specific data: the origin platform,
creator wallet, bonding-curve pool state (reserves, supply), graduation status
and progress toward the funding target. This endpoint is the right call when a
caller needs both token fundamentals and meme-launchpad context in one request.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
contract address of the meme token to look up. |
required |
Returns:
| Type | Description |
|---|---|
GetV3TokenMemeDetailSingleResponse | Coroutine[None, None, GetV3TokenMemeDetailSingleResponse]
|
|
GetV3TokenMemeDetailSingleResponse | Coroutine[None, None, GetV3TokenMemeDetailSingleResponse]
|
containing the full token and meme-info payload. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to the endpoint. |
Source code in src/cyhole/birdeye/interaction.py
2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 | |
_get_v3_token_meme_list
¶
_get_v3_token_meme_list(
sync: Literal[True],
query: GetV3TokenMemeListQuery | None,
) -> GetV3TokenMemeListResponse
_get_v3_token_meme_list(
sync: Literal[False],
query: GetV3TokenMemeListQuery | None,
) -> Coroutine[None, None, GetV3TokenMemeListResponse]
_get_v3_token_meme_list(
sync: bool, query: GetV3TokenMemeListQuery | None
) -> (
GetV3TokenMemeListResponse
| Coroutine[None, None, GetV3TokenMemeListResponse]
)
This function refers to the PUBLIC API endpoint Meme Token - List and returns a paginated list of meme tokens from one or more launchpad platforms.
Each item in the response bundles token identity (address, name, symbol, logo),
market metrics (price, liquidity, market cap, FDV, volume and trade counts across
ten time windows), and a meme_info block covering the token's launchpad origin,
bonding-curve pool state, progress toward the funding target, creator, and graduation
status. Use this endpoint to screen meme tokens by momentum, liquidity, holder count,
or graduation progress in one call.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sync
|
bool
|
if |
required |
query
|
GetV3TokenMemeListQuery | None
|
optional query parameters controlling sorting, filtering, and pagination;
pass |
required |
Returns:
| Type | Description |
|---|---|
GetV3TokenMemeListResponse | Coroutine[None, None, GetV3TokenMemeListResponse]
|
|
GetV3TokenMemeListResponse | Coroutine[None, None, GetV3TokenMemeListResponse]
|
containing a paginated list of meme token records together with a |
GetV3TokenMemeListResponse | Coroutine[None, None, GetV3TokenMemeListResponse]
|
flag indicating whether additional pages are available. |
Raises:
| Type | Description |
|---|---|
BirdeyeAuthorisationError
|
if the API key provided does not give access to the endpoint. |
Source code in src/cyhole/birdeye/interaction.py
2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 | |