Re-exports§
pub use crate::ErrorCode;
Modules§
Structs§
- ApiError
- Body shape Binance Margin returns on errors:
{"code":-XXXX,"msg":"..."}.
Enums§
- Error
- IsIsolated
- Whether a margin operation targets the isolated or cross-margin account.
- Kline
Interval - Margin
Level Status - Order
Response Type - Order
Side - Order
Status - Order
Type - Path
- STPMode
- Self-trade prevention mode.
- Side
Effect Type - Margin order side-effect — controls auto-borrow/repay behaviour.
- Time
InForce
Constants§
- BASE_
URL_ API - BASE_
URL_ STREAM - Base URL for the margin user data WebSocket stream.
- BASE_
URL_ TESTNET_ API - BASE_
URL_ TESTNET_ STREAM - HEADER_
RETRY_ AFTER - HEADER_
X_ MBX_ APIKEY