AbstractAbstract ReadonlynameThe name of the exchange
Abstract ReadonlytestnetWhether the exchange is connected to testnet
AbstractinitializeInitialize the exchange with credentials
API credentials for the exchange
AbstractverifyVerify that the API credentials are valid
True if credentials are valid
AbstractgetGet account balances
Optionalasset: stringOptional specific asset to get balance for
Array of balances, or single balance if asset specified
AbstractgetGet current price for a trading pair
The trading pair symbol (e.g., "BTCUSDT")
Current price information
AbstractgetGet all available trading pairs
Array of trading pair symbols
AbstractmarketPlace a market buy order
Trading pair symbol (e.g., "ETHUSDT")
Amount to buy (in base asset or quote asset depending on quantityIsQuote)
OptionalquantityIsQuote: booleanIf true, quantity is in quote currency (e.g., USDT)
The created order
AbstractmarketPlace a market sell order
Trading pair symbol (e.g., "ETHUSDT")
Amount to sell (in base asset)
The created order
AbstractlimitPlace a limit buy order
Trading pair symbol (e.g., "ETHUSDT")
Amount to buy (in base asset)
Limit price
The created order
AbstractlimitPlace a limit sell order
Trading pair symbol (e.g., "ETHUSDT")
Amount to sell (in base asset)
Limit price
The created order
AbstractstopPlace a stop loss order
Trading pair symbol (e.g., "ETHUSDT")
Amount to sell (in base asset)
Price at which to trigger the stop loss
OptionallimitPrice: numberOptional limit price (if not provided, uses stopPrice)
The created order
AbstracttakePlace a take profit order
Trading pair symbol (e.g., "ETHUSDT")
Amount to sell (in base asset)
Price at which to take profit
OptionallimitPrice: numberOptional limit price (if not provided, uses price)
The created order
AbstractcancelCancel an existing order
The order ID to cancel
The trading pair symbol
True if cancellation was successful
AbstractgetGet order status
The order ID to check
The trading pair symbol
The order details
AbstractgetGet open orders
Optionalsymbol: stringOptional symbol to filter by
Array of open orders
Format an asset to a trading symbol
The base asset (e.g., "ETH")
The quote asset (default: "USDT")
Formatted symbol (e.g., "ETHUSDT")
Parse a symbol into base and quote assets
The trading pair symbol
Object with base and quote assets
Abstract base class for exchange implementations. All exchange connectors must extend this class.