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
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
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | |
_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,
) -> 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,
) -> 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,
) -> (
GetTokenListResponse
| Coroutine[None, None, GetTokenListResponse]
)
This function refers to the PUBLIC API endpoint Token - List and is used to get the list of Birdeye tokens according on a specific chain.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sort_by
|
str
|
define the type of sorting to apply in the
extraction; e.g. USD volume in the last 24h.
The sorting types are available on |
BirdeyeSort.SORT_V24HUSD.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 |
|---|---|
GetTokenListResponse | Coroutine[None, None, GetTokenListResponse]
|
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
122 123 124 125 126 127 128 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 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
_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 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 |
Returns:
| Type | Description |
|---|---|
GetTokenCreationInfoResponse | Coroutine[None, None, GetTokenCreationInfoResponse]
|
token's creation information. |
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
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 | |
_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 get the useful information related to the security of a token on a specific chain calculated by Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
CA of the token to search on the chain. |
required |
Returns:
| Type | Description |
|---|---|
GetTokenSecurityResponse | Coroutine[None, None, GetTokenSecurityResponse]
|
token's security information.
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
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | |
_get_token_overview
¶
_get_token_overview(
sync: Literal[True], address: str
) -> GetTokenOverviewResponse
_get_token_overview(
sync: Literal[False], address: str
) -> Coroutine[None, None, GetTokenOverviewResponse]
_get_token_overview(
sync: bool, address: str
) -> (
GetTokenOverviewResponse
| Coroutine[None, None, GetTokenOverviewResponse]
)
This function refers to the PRIVATE API endpoint Token - Overview and is used to get all kind of information (token/mint/creator adresses, high level statistics, ...) of a token on a specific chain calculated by Birdeye.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
address
|
str
|
CA of the token to search on the chain. |
required |
Returns:
| Type | Description |
|---|---|
GetTokenOverviewResponse | Coroutine[None, None, GetTokenOverviewResponse]
|
token's information.
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
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 | |
_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
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 | |
_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
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 | |
_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
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 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 | |
_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
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 | |
_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
595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 | |
_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
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 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 | |
_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
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 | |
_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
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 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 | |
_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
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 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 | |
_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
974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 | |