rust_okx/ws/response/trade.rs
1//! Typed aliases for Trade WebSocket operation responses.
2
3use crate::ws::model::{
4 AmendOrderResult, CancelOrderResult, MassCancelOperationResult, PlaceOrderResult,
5};
6
7use super::OperationResponse;
8
9/// Response returned by `order` and `batch-orders`.
10pub type PlaceOrderResponse = OperationResponse<PlaceOrderResult>;
11/// Response returned by `cancel-order` and `batch-cancel-orders`.
12pub type CancelOrderResponse = OperationResponse<CancelOrderResult>;
13/// Response returned by `amend-order` and `batch-amend-orders`.
14pub type AmendOrderResponse = OperationResponse<AmendOrderResult>;
15/// Response returned by `mass-cancel`.
16pub type MassCancelOrdersResponse = OperationResponse<MassCancelOperationResult>;