import type * as Whop from "../index.mjs"; export interface TradingOrder { /** Client order ID, prefixed `trdcloid_`, or `null` when the order was placed without one. */ client_order_id: string | null; /** When the order was placed, as an ISO 8601 timestamp, or `null` when the provider omits it. */ created_at: string | null; /** Hyperliquid-specific order details. Present on Hyperliquid orders, otherwise `null`. */ hyperliquid: Whop.TradingHyperliquidOrder | null; /** Trading order ID, prefixed `trdord_`. */ id: string; /** Market symbol on the provider, such as `ETH`. */ market: string; object: TradingOrder.Object_; order_type: TradingOrder.OrderType; /** Size when the order was placed, as a decimal string, or `null` when the provider omits it. */ original_size: string | null; /** Limit price in USD. */ price: Whop.Money; /** The provider's own order ID, as a string. */ provider_order_id: string | null; side: TradingOrder.Side; /** Remaining order size as a decimal string. */ size: string; status: TradingOrder.Status; /** When the status last changed, as an ISO 8601 timestamp, or `null` when the provider omits it. */ status_updated_at: string | null; /** How long the order stays active. `null` when the provider omits it or reports a policy outside the supported values. */ time_in_force: TradingOrder.TimeInForce | null; } export declare namespace TradingOrder { const Object_: { readonly TradingOrder: "trading_order"; }; type Object_ = (typeof Object_)[keyof typeof Object_]; const OrderType: { readonly Limit: "limit"; readonly Market: "market"; readonly TakeProfit: "take_profit"; readonly StopLoss: "stop_loss"; }; type OrderType = (typeof OrderType)[keyof typeof OrderType]; const Side: { readonly Buy: "buy"; readonly Sell: "sell"; }; type Side = (typeof Side)[keyof typeof Side]; const Status: { readonly Open: "open"; readonly Filled: "filled"; readonly Canceled: "canceled"; readonly Triggered: "triggered"; readonly Rejected: "rejected"; }; type Status = (typeof Status)[keyof typeof Status]; /** How long the order stays active. `null` when the provider omits it or reports a policy outside the supported values. */ const TimeInForce: { readonly AddLiquidityOnly: "add_liquidity_only"; readonly GoodTilCanceled: "good_til_canceled"; readonly ImmediateOrCancel: "immediate_or_cancel"; }; type TimeInForce = (typeof TimeInForce)[keyof typeof TimeInForce]; }