pub enum Error {
ConfigWrongLeverage,
ConfigWrongStartingBalance,
ParseError,
UserOrderIdNotFound,
OrderIdNotFound,
}
Expand description
Describes possible Errors that may occur when calling methods in this crate
Variants
ConfigWrongLeverage
Config::new was provided an invalid leverage value
ConfigWrongStartingBalance
Config::new was provided an invalid starting balance
ParseError
When data could not be parsed
UserOrderIdNotFound
when cancelling an order but no matching user order id is found
OrderIdNotFound
When the internal order id is not found while cancelling order