Type Alias UnindexedApiError

Source
pub type UnindexedApiError = ApiError<AssetNameExchange, InstrumentNameExchange>;
Expand description

Type alias for a ApiError that is keyed on AssetNameExchange and InstrumentNameExchange (yet to be indexed).

Aliased Type§

pub enum UnindexedApiError {
    AssetInvalid(AssetNameExchange, String),
    InstrumentInvalid(InstrumentNameExchange, String),
    RateLimit,
    BalanceInsufficient(AssetNameExchange, String),
    OrderRejected(String),
    OrderAlreadyCancelled,
    OrderAlreadyFullyFilled,
}

Variants§

§

AssetInvalid(AssetNameExchange, String)

Provided asset identifier is invalid or not supported.

For example:

§

InstrumentInvalid(InstrumentNameExchange, String)

Provided instrument identifier is invalid or not supported.

For example:

§

RateLimit

§

BalanceInsufficient(AssetNameExchange, String)

§

OrderRejected(String)

§

OrderAlreadyCancelled

§

OrderAlreadyFullyFilled