get https://api.cvex.trade/v1/portfolio/history/orders
This endpoint provides a list of events associated with account's orders.
Types of events:
- order_accepted: indicates that the order has been accepted by protocol to be executed.
- order_rejected: indicates that the order was not accepted, typically due to an issue such as insufficient funds or pricing errors, with a specific reason provided.
- order_posted: marks the posting of an order to the order book, waiting for potential execution.
- order_filled: denotes that the order has been executed, either partially or in full, detailing the quantity filled and whether the order acted as a taker or maker.
- order_reduced: reflects a reduction in the order's size by user, detailing how much of the order's original quantity has been decreased.
- order_canceled: reflects a cancelation of the order by user.
- order_terminated: signals the complete cancellation of an order by protocol, typically to prevent potential liquidation or due to market closure.
Undocumented
Rejection and termination reason are not documented yet.
Each set of 100 returned events costs 1 API credit, with costs rounding up. The maximum number of events that can be returned in a single request is 1'000.