futures.streams
Public methods exposed through client.futures.streams.
Constructors
new
Source code in pkg/src/mexc/futures/streams/__init__.py
Market
candles
Subscribe to futures candlestick updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Futures contract symbol, for example |
required |
interval
|
Interval
|
Candlestick interval. |
required |
validate
|
bool
|
Validate pushed candle payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/candles.py
deal
Subscribe to futures trade updates for one contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Futures contract symbol, for example |
required |
validate
|
bool
|
Validate pushed trade payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/deal.py
depth
Subscribe to incremental futures order-book updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Futures contract symbol, for example |
required |
compress
|
bool | None
|
Request merged depth updates when provided. |
None
|
validate
|
bool
|
Validate pushed depth payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/depth.py
depth_full
Subscribe to futures full-depth snapshots.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Futures contract symbol, for example |
required |
limit
|
DepthLimit
|
Number of price levels in each snapshot. |
20
|
validate
|
bool
|
Validate pushed depth payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/depth_full.py
fair_price
Subscribe to fair-price updates for one futures contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Futures contract symbol, for example |
required |
validate
|
bool
|
Validate pushed price payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/fair_price.py
funding_rate
Subscribe to funding-rate updates for one futures contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Futures contract symbol, for example |
required |
validate
|
bool
|
Validate pushed funding-rate payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/funding_rate.py
index_price
Subscribe to index-price updates for one futures contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Futures contract symbol, for example |
required |
validate
|
bool
|
Validate pushed price payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/index_price.py
ticker
Subscribe to ticker updates for one futures contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
str
|
Futures contract symbol, for example |
required |
validate
|
bool
|
Validate pushed ticker payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/ticker.py
all_tickers
Subscribe to ticker updates for all futures contracts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Validate pushed ticker payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/market/tickers.py
tickers
Subscribe to ticker updates for all futures contracts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Validate pushed ticker payloads. |
True
|
Source code in pkg/src/mexc/futures/streams/market/tickers.py
User
adl_level
Subscribe to futures ADL level updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Validate pushed ADL level payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/user/adl_level.py
asset
Subscribe to futures asset updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Validate pushed asset payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/user/asset.py
login
Authenticate the futures private WebSocket connection.
References
Source code in pkg/src/mexc/futures/streams/user/login.py
trades
Subscribe to your future trades.
validate: Whether to validate the response against the expected schema (default: True).
Source code in pkg/src/mexc/futures/streams/user/my_trades.py
order
Subscribe to futures order updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Validate pushed order payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/user/order.py
position
Subscribe to futures position updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Validate pushed position payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/user/position.py
position_mode
Subscribe to futures position-mode updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Validate pushed position-mode payloads. |
True
|
References
Source code in pkg/src/mexc/futures/streams/user/position_mode.py
risk_limit
Subscribe to futures risk-limit updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
bool
|
Validate pushed risk-limit payloads. |
True
|