Skip to main content

FullExchange

Trait FullExchange 

Source
pub trait FullExchange:
    PublicExchange
    + MarketData
    + Trading
    + Account
    + Margin
    + Funding { }
Expand description

Combined trait for exchanges supporting all capabilities.

This trait is automatically implemented for any type that implements all of the component traits: PublicExchange, MarketData, Trading, Account, Margin, and Funding.

§Example

use ccxt_core::traits::FullExchange;

async fn use_full_exchange<E: FullExchange>(exchange: &E) {
    // Can use all exchange capabilities
    let markets = exchange.fetch_markets().await?;
    let balance = exchange.fetch_balance().await?;
    let positions = exchange.fetch_positions().await?;
}

Implementors§

Source§

impl<T> FullExchange for T

Blanket implementation of FullExchange for any type implementing all component traits.