pub struct OrderHistory {
pub category: String,
pub list: Vec<Order>,
pub next_page_cursor: String,
}Expand description
Represents a collection of historical orders with pagination information.
This struct contains the list of orders and a cursor for fetching additional pages. In perpetual futures, bots use this to analyze trading history, calculate performance metrics, and adjust strategies based on past executions.
Fields§
§category: StringThe category of the orders (e.g., “spot”, “linear”).
Indicates the market of the orders (e.g., Spot or Linear for perpetual futures). Bots should verify this matches the query to ensure correct data processing.
list: Vec<Order>The list of historical orders.
Contains detailed information about each order. Bots should iterate over this to extract metrics like execution price, fees, and status for perpetual futures analysis.
next_page_cursor: StringThe cursor for fetching the next page of results.
Used for pagination when the query returns more orders than the limit. Bots
should include this in subsequent requests to retrieve additional orders in
perpetual futures trading.
Trait Implementations§
Source§impl Clone for OrderHistory
impl Clone for OrderHistory
Source§fn clone(&self) -> OrderHistory
fn clone(&self) -> OrderHistory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more