binance_api/spot/
error.rs

1//! Spot-specific error codes
2//! <https://binance-docs.github.io/apidocs/spot/en/#error-codes>
3use crate::error::ResponseError;
4
5/// 10xx - General Server or Network issues
6impl ResponseError {
7    /// Server is busy, please wait and try again
8    pub const SPOT_SERVER_BUSY: i32 = -1004;
9
10    /// Spot server is currently overloaded with other requests. Please try again in a few minutes.
11    pub const SPOT_SERVER_BUSY_WITH_REQUESTS: i32 = -1008;
12
13    /// This replaces error code -1999.
14    pub const SPOT_NOT_FOUND_AUTHENTICATED_OR_AUTHORIZED: i32 = -1099;
15}
16
17/// 11xx - Request issues
18impl ResponseError {
19    /// recvWindow must be less than 60000.
20    pub const SPOT_BAD_RECV_WINDOW: i32 = -1131;
21
22    /// strategyType was less than 1000000.
23    pub const SPOT_BAD_STRATEGY_TYPE: i32 = -1134;
24}