Skip to main content

Module margin

Module margin 

Source

Re-exports§

pub use crate::ErrorCode;

Modules§

http
ws

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.
KlineInterval
MarginLevelStatus
OrderResponseType
OrderSide
OrderStatus
OrderType
Path
STPMode
Self-trade prevention mode.
SideEffectType
Margin order side-effect — controls auto-borrow/repay behaviour.
TimeInForce

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