Order
The Order type represents the details and status of a trading order.
interface Order {
base_ticker: string;
base_ticker_display: string;
id: string;
order_amount: string | null;
order_filled: string;
order_total: string | null;
order_type: OrderType;
price: string | null;
quote_ticker: string;
quote_ticker_display: string;
request_amount: string;
status: OrderStatus;
symbol: string;
time: number;
traded_base_amount: string;
traded_quote_amount: string;
tx_list: {
status: TransactionStatus;
time: number;
txhash: string;
}[];
}Properties
base_ticker: stringA ticker of the base token.
It is a combination of a base symbol, an underscore, and a chain symbol.
E.g.,
ETH_ETHSEPOLIA
base_ticker_display: stringA symbol of the base token.
id: stringAn order ID.
order_amount: string | nullThe amount of base token to trade.
nullif the order is a market total order.
order_filled: stringA percentage of how much the order is filled.
order_total: string | nullThe amount of quote token to fulfill the order.
nullif the order is a market amount order.
order_type: OrderTypeAn order type.
price: string | nullThe price at which the order is placed.
nullif the order is a market order.
quote_ticker: stringA ticker of the quote token.
It is a combination of a quote symbol, an underscore, and a chain symbol.
E.g.,
USDT_ETHSEPOLIA
quote_ticker_display: stringA symbol of the quote token.
request_amount: stringMatches
order_totalfor market total orders.Matches
order_amountfor all other order types.
status: OrderStatusAn order status.
symbol: stringA market symbol.
It is a combination of a base ticker, a colon, and a quote ticker.
E.g.,
ETH_ETHSEPOLIA:USDT_ETHSEPOLIA
time: numberThe timestamp of the order creation, expressed in seconds.
traded_base_amount: stringThe amount of the base token that has been traded.
traded_quote_amount: stringThe amount of the quote token that has been traded.
tx_liststatus: TransactionStatusA transaction status.
time: numberThe timestamp of the transaction creation, expressed in seconds.
txhash: stringA transaction hash.
Last updated