type Order: {
baseCurrency: string;
contractAddress: string;
orderHash: string;
orderId: string;
price: number;
quantity: number;
quantityFilled: number;
quoteCurrency: string;
side: OrderSide;
status: OrderStatus;
time: Date;
};
Represents an order with its properties.
Type declaration
Member | Type | Description |
---|---|---|
baseCurrency | string | The base currency symbol of the trading pair. |
contractAddress | string | The contract address of the traded asset. |
orderHash | string | The unique hash representing the order. |
orderId | string | The unique identifier for the order. |
price | number | The price per unit of the asset in the order. |
quantity | number | The total quantity of the asset in the order. |
quantityFilled | number | The quantity of the asset that has been filled. |
quoteCurrency | string | The quote currency symbol of the trading pair. |
side | OrderSide | The side of the order (buy or sell). |
status | OrderStatus | The status of the order (e.g., open, filled, canceled). |
time | Date | The timestamp when the order was placed. |