DefaultBinanceSymbols
Ancestors
enum.Enum
Class variables
-
BTCUSDT: Bitcoin to USDT trading pair. -
ETHUSDT: Ethereum to USDT trading pair.
Static methods
get_fields
| Type | Description |
|---|---|
list of str | List of symbol names in uppercase. |
from_name
| Name | Type | Default | Description |
|---|---|---|---|
name | str | -- | Symbol name in uppercase (e.g., ‘BTCUSDT’). |
| Type | Description |
|---|---|
int | Column index corresponding to the symbol name. |
is_valid
| Name | Type | Default | Description |
|---|---|---|---|
name | str | -- | Symbol name in uppercase (e.g., ‘BTCUSDT’). |
| Type | Description |
|---|---|
bool | True if the symbol name is valid, False otherwise. |
DefaultCoinbaseSymbols
Ancestors
enum.Enum
Class variables
-
BTC_USD: Bitcoin to USD trading pair. -
ETH_USD: Ethereum to USD trading pair.
Static methods
get_fields
| Type | Description |
|---|---|
list of str | List of symbol names formatted with slashes (e.g., ‘BTC/USD’). |
from_name
| Name | Type | Default | Description |
|---|---|---|---|
name | str | -- | Symbol name formatted with slashes (e.g., ‘BTC/USD’). |
| Type | Description |
|---|---|
int | Column index corresponding to the symbol name. |
is_valid
| Name | Type | Default | Description |
|---|---|---|---|
name | str | -- | Symbol name formatted with slashes (e.g., ‘BTC/USD’). |
| Type | Description |
|---|---|
bool | True if the symbol name is valid, False otherwise. |
get_symbol
| Name | Type | Default | Description |
|---|---|---|---|
index | int | -- | Column index of the symbol. |
| Type | Description |
|---|---|
ValueError | If the index is invalid. |
| Type | Description |
|---|---|
str | Symbol name formatted with slashes (e.g., ‘BTC/USD’). |

