aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Interface PerpetualsAccountOrderHistoryData

    Individual order affecting an account.

    interface PerpetualsAccountOrderHistoryData {
        eventType: string;
        fees?: number;
        marketId: string;
        orderId?: string;
        pnl?: number;
        price: number;
        side: PerpetualsOrderSide;
        size: number;
        slTp?: {
            limitOrderId?: bigint;
            stopLossPrice?: number;
            takeProfitPrice?: number;
        };
        stopOrder?: { stopIndexPrice: number };
        timestamp: number;
        txDigest: string;
    }
    Index
    eventType: string

    Concrete event type.

    fees?: number

    Fees charged for this order event, if applicable.

    marketId: string

    Market in which this order occurred.

    orderId?: string

    Optional order ID.

    pnl?: number

    Realized PnL for this order event, if applicable.

    price: number

    Price for this order.

    Side of the order relative to the account (Bid/Ask).

    size: number

    Size in base units.

    slTp?: {
        limitOrderId?: bigint;
        stopLossPrice?: number;
        takeProfitPrice?: number;
    }

    Optional stop-loss / take-profit data.

    Type Declaration

    • OptionallimitOrderId?: bigint

      Unique order identifier for limit order sl/tp is tied to.

    • OptionalstopLossPrice?: number

      Optional stop-loss trigger price based on the index price.

    • OptionaltakeProfitPrice?: number

      Optional take-profit trigger price based on the index price.

    stopOrder?: { stopIndexPrice: number }

    Stop order data that is not a stop-loss / take-profit order (e.g. generic trigger orders).

    Type Declaration

    • stopIndexPrice: number

      Index price at which the stop order should trigger.

    timestamp: number

    Timestamp of the order.

    txDigest: string

    Sui transaction digest.