Skip to main content
Asynchronous client for the Forte perpetuals platform. class PerpetualsClient:
base_url session timeout_ms
object
required
Tuple of (orders_list, total_count)
object
required
The market identifier (string symbol or integer ID)
float
required
Price threshold for executable orders
object
Optional side filter (from Side enum: 0=LONG, 1=SHORT)
object
Optional limit on number of results
object
Optional timeout in milliseconds
object
required
Tuple of (orders_list, total_count)
object
required
The market identifier (string symbol or integer ID).
int
required
The position size.
int
required
The leverage used for the position.
bool
required
Whether the position is long (True) or short (False).
int
required
The entry price of the position.
object
Optional timeout in milliseconds.
float
required
The liquidation price as a float.
object
required
Tuple of (positions_list, total_count)
object
required
The market identifier (string symbol or integer ID)
object
Optional timeout in milliseconds
object
required
MarketSummary objects as they are received from the stream
object
Optional timeout in milliseconds
object
required
Lists of MarketSummary objects as they are received from the stream
str
required
The trader’s wallet address
object
Optional request timeout in milliseconds
Portfolio
required
Portfolio object containing all metrics, positions, and orders