Expand description
§V5 Core Traits
§Architecture
CoreConnector<C> - universal methods (Identity + MarketData + Trading + Account + Positions)
│
└── BinanceConnector - core + all Binance-specific directly
└── KuCoinConnector - core + all KuCoin-specific directly§Principles
- Core traits are minimal — only what 100% of exchanges support
- No UnsupportedOperation in core — all core methods work everywhere
- Extensions in exchange connectors — directly as struct methods
§Core traits
| Trait | Methods | Description |
|---|---|---|
ExchangeIdentity | 5 | Basic identification |
MarketData | 5 | Public data (price, orderbook, klines, ticker, ping) |
Trading | 5 | Trading (place_order, cancel_order, get_order, get_open_orders, get_order_history) |
Account | 3 | Account (balance, account_info, fees) |
Positions | 3 | Futures (positions, funding_rate, modify_position) |
§Optional operation traits (part of CoreConnector)
CancelAll- native cancel-all endpointAmendOrder- native amend/modify orderBatchOrders- native batch placement/cancellationAccountTransfers- internal account transfersCustodialFunds- deposits and withdrawalsSubAccounts- sub-account managementFundingHistory- historical funding paymentsAccountLedger- full account ledgerAuthenticated- credential-aware connectors
Re-exports§
pub use crate::core::websocket::CapabilityProvider;
Modules§
- has_
capabilities_ stubs HasCapabilitiesimpls for non-crypto connectors (stocks, forex, data feeds, brokers).
Structs§
- Auth
Request - Request structure for signing.
- Credentials
- Simple API key + secret credentials.
Enums§
- Credential
Kind - Enum of all authentication scheme kinds across 24 exchanges.
- Signature
Location - Where the signature goes.
Traits§
- Account
- Core account — 24/24 exchanges.
- Account
Ledger - Full account ledger — chronological log of all balance changes.
- Account
Transfers - Internal transfers between account types (Spot ↔ Futures ↔ Margin).
- Amend
Order - Amend (modify) a live order in-place without cancel+replace.
- Authenticated
- Marks a connector as credential-aware and capable of authenticated requests.
- Batch
Orders - Native batch order placement and cancellation.
- Cancel
All - Cancel all open orders — optionally scoped to a symbol.
- Core
Connector - Full core connector
- Custodial
Funds - Deposit and withdrawal management for custodial exchanges.
- Exchange
Auth - Exchange auth trait — each exchange implements its own signing logic.
- Exchange
Identity - Базовая идентификация биржи
- Funding
History - Historical funding payment records for perpetual futures positions.
- HasCapabilities
- Declare the full capability surface of a connector.
- Market
Data - Минимальные публичные рыночные данные
- Market
Data Public - Extended public market data — derivatives analytics, liquidations, OI, funding history.
- Positions
- Positions — 22/24 exchanges.
- SubAccounts
- Sub-account management — create, list, transfer, get balances.
- Trading
- Core trading — 24/24 exchanges.
- WebSocket
Connector - Core WebSocket коннектор
- WebSocket
Ext - Удобные методы подписки