pub struct TradesRequest {
pub currency: Currency,
pub kind: Option<InstrumentKind>,
pub start_id: Option<String>,
pub end_id: Option<String>,
pub count: Option<u32>,
pub start_timestamp: Option<u64>,
pub end_timestamp: Option<u64>,
pub sorting: Option<SortDirection>,
pub historical: Option<bool>,
pub subaccount_id: Option<u32>,
}Expand description
Parameters for requesting user trades
Fields§
§currency: CurrencyThe currency symbol (required)
kind: Option<InstrumentKind>Instrument kind filter (optional)
start_id: Option<String>The ID of the first trade to be returned (optional)
end_id: Option<String>The ID of the last trade to be returned (optional)
count: Option<u32>Number of requested items, default - 10, maximum - 1000 (optional)
start_timestamp: Option<u64>The earliest timestamp to return result from (milliseconds since UNIX epoch) (optional)
end_timestamp: Option<u64>The most recent timestamp to return result from (milliseconds since UNIX epoch) (optional)
sorting: Option<SortDirection>Direction of results sorting (optional)
historical: Option<bool>Determines whether historical trade records should be retrieved (optional)
subaccount_id: Option<u32>The user id for the subaccount (optional)
Trait Implementations§
Source§impl Clone for TradesRequest
impl Clone for TradesRequest
Source§fn clone(&self) -> TradesRequest
fn clone(&self) -> TradesRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradesRequest
impl Debug for TradesRequest
Source§impl<'de> Deserialize<'de> for TradesRequest
impl<'de> Deserialize<'de> for TradesRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TradesRequest
impl RefUnwindSafe for TradesRequest
impl Send for TradesRequest
impl Sync for TradesRequest
impl Unpin for TradesRequest
impl UnwindSafe for TradesRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more