Struct BinanceAggregateTradesRequest
pub struct BinanceAggregateTradesRequest {
pub market: Market,
pub from_id: Option<u64>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub limit: Option<u32>,
}Expand description
A request for Binance USD-M compressed aggregate trades.
from_id selects an inclusive aggregate-trade cursor. start_time and
end_time select inclusive millisecond time bounds; Binance permits a
window shorter than one hour and only keeps the last 48 hours. The two
selection modes cannot be combined because Binance warns that doing so can
time out. The endpoint returns one page; use the last aggregate ID plus one
as the next from_id when walking by ID.
Fields§
§market: MarketThe USD-M perpetual market to query.
from_id: Option<u64>Inclusive Binance aggregate-trade ID to start at.
start_time: Option<Timestamp>Inclusive lower time bound.
end_time: Option<Timestamp>Inclusive upper time bound.
limit: Option<u32>Number of aggregate trades, from 1 through 1,000. None uses Binance’s
documented default of 500.
Implementations§
§impl BinanceAggregateTradesRequest
impl BinanceAggregateTradesRequest
pub fn with_from_id(self, from_id: u64) -> Self
pub fn with_from_id(self, from_id: u64) -> Self
Starts at an inclusive Binance aggregate-trade ID.
pub fn start_time(self, start_time: Timestamp) -> Self
pub fn start_time(self, start_time: Timestamp) -> Self
Sets the inclusive lower time bound.
Trait Implementations§
§impl Clone for BinanceAggregateTradesRequest
impl Clone for BinanceAggregateTradesRequest
§fn clone(&self) -> BinanceAggregateTradesRequest
fn clone(&self) -> BinanceAggregateTradesRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for BinanceAggregateTradesRequest
impl Debug for BinanceAggregateTradesRequest
impl Eq for BinanceAggregateTradesRequest
§impl PartialEq for BinanceAggregateTradesRequest
impl PartialEq for BinanceAggregateTradesRequest
impl StructuralPartialEq for BinanceAggregateTradesRequest
Auto Trait Implementations§
impl Freeze for BinanceAggregateTradesRequest
impl RefUnwindSafe for BinanceAggregateTradesRequest
impl Send for BinanceAggregateTradesRequest
impl Sync for BinanceAggregateTradesRequest
impl Unpin for BinanceAggregateTradesRequest
impl UnsafeUnpin for BinanceAggregateTradesRequest
impl UnwindSafe for BinanceAggregateTradesRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.