Module models

Module models 

Source

Structsยง

OKXAccount
Represents an account balance snapshot from GET /api/v5/account/balance.
OKXBalanceDetail
Represents a balance detail for a single currency in an OKX account.
OKXCandlestick
Represents a candlestick from the GET /api/v5/market/history-candles endpoint. The tuple contains [timestamp(ms), open, high, low, close, volume, turnover, base_volume, count].
OKXIndexTicker
Represents an index price from the GET /api/v5/public/index-tickers endpoint.
OKXMarkPrice
Represents a mark price from the GET /api/v5/public/mark-price endpoint.
OKXOrderHistory
Represents a single historical order record from GET /api/v5/trade/orders-history.
OKXPlaceOrderResponse
Represents the response from POST /api/v5/trade/order (place order). This model is designed to be flexible and handle the minimal fields that the API returns.
OKXPosition
Represents a single open position from GET /api/v5/account/positions.
OKXPositionHistory
Represents a single historical position record from GET /api/v5/account/positions-history.
OKXPositionTier
Represents a position tier from the GET /api/v5/public/position-tiers endpoint.
OKXTrade
Represents a trade tick from the GET /api/v5/market/trades endpoint.
OKXTransactionDetail
Represents a transaction detail (fill) from GET /api/v5/trade/fills.