pub struct TradeSearchRequest {
pub start_date_time: String,
pub end_date_time: String,
pub side: Option<String>,
pub tickers: Option<Vec<String>>,
}Expand description
Body of BcsHttpClient::search_trades.
The period is text in ISO 8601 form (for example 2026-10-19T00:00:00.000Z, UTC). The broker also has
filters by trade number and class code that this struct does not send.
§Examples
use brokapi_bcs_protocol::http::models::TradeSearchRequest;
let req = TradeSearchRequest {
start_date_time: "2026-10-19T00:00:00.000Z".into(),
end_date_time: "2026-10-20T00:00:00.000Z".into(),
side: Some("1".into()),
tickers: None,
};
assert_eq!(serde_json::to_value(&req)?["side"], "1");Fields§
§start_date_time: StringStart of the period, ISO 8601 text (UTC).
end_date_time: StringEnd of the period, ISO 8601 text (UTC).
side: Option<String>1 buy, 2 sell. Both if None.
tickers: Option<Vec<String>>Only these tickers.
Trait Implementations§
Source§impl Clone for TradeSearchRequest
impl Clone for TradeSearchRequest
Source§fn clone(&self) -> TradeSearchRequest
fn clone(&self) -> TradeSearchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TradeSearchRequest
impl Debug for TradeSearchRequest
Auto Trait Implementations§
impl Freeze for TradeSearchRequest
impl RefUnwindSafe for TradeSearchRequest
impl Send for TradeSearchRequest
impl Sync for TradeSearchRequest
impl Unpin for TradeSearchRequest
impl UnsafeUnpin for TradeSearchRequest
impl UnwindSafe for TradeSearchRequest
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