rust-okx 0.6.0

Async Rust client for the OKX v5 REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Typed aliases for Trade WebSocket operation responses.

use crate::ws::model::{
    AmendOrderResult, CancelOrderResult, MassCancelOperationResult, PlaceOrderResult,
};

use super::OperationResponse;

/// Response returned by `order` and `batch-orders`.
pub type PlaceOrderResponse = OperationResponse<PlaceOrderResult>;
/// Response returned by `cancel-order` and `batch-cancel-orders`.
pub type CancelOrderResponse = OperationResponse<CancelOrderResult>;
/// Response returned by `amend-order` and `batch-amend-orders`.
pub type AmendOrderResponse = OperationResponse<AmendOrderResult>;
/// Response returned by `mass-cancel`.
pub type MassCancelOrdersResponse = OperationResponse<MassCancelOperationResult>;