Skip to content

TradeOperations

TradeOperations

Info

Access via client.trade property.

High-level order management operations.

Initialize order operations.

Parameters:

Name Type Description Default
subaccount Subaccount

Subaccount instance providing access to auth, config, and APIs

required

Functions

list_private

list_private(
    from_timestamp: int = 0,
    instrument_name: str | None = None,
    order_id: str | None = None,
    page: int = 1,
    page_size: int = 100,
    quote_id: str | None = None,
    to_timestamp: int = INT64_MAX,
) -> list[TradeResponseSchema]

Get trade history for a subaccount, with filter parameters.

list_public

list_public(
    currency: str | None = None,
    from_timestamp: int = 0,
    instrument_name: str | None = None,
    instrument_type: AssetType | None = None,
    page: int = 1,
    page_size: int = 100,
    subaccount_id: int | None = None,
    to_timestamp: int = INT64_MAX,
    trade_id: str | None = None,
    tx_hash: str | None = None,
    tx_status: TxStatus4 = TxStatus4("settled"),
) -> list[TradeSettledPublicResponseSchema]

Get trade history for a subaccount, with filter parameters.