Interface TradeExecution

Trade execution record

interface TradeExecution {
    actualProfit?: null | number;
    expectedProfit?: number;
    id: string;
    metadata?: Record<string, any>;
    price?: number;
    side: "buy" | "sell";
    size: number;
    source: string;
    status:
        | "pending"
        | "filled"
        | "failed"
        | "cancelled";
    symbol: string;
    timestamp: string;
    type: string;
}

Properties

actualProfit?: null | number
expectedProfit?: number
id: string
metadata?: Record<string, any>
price?: number
side: "buy" | "sell"
size: number
source: string
status:
    | "pending"
    | "filled"
    | "failed"
    | "cancelled"
symbol: string
timestamp: string
type: string