Struct nash_protocol::protocol::list_trades::ListTradesRequest [−][src]
pub struct ListTradesRequest {
pub market: String,
pub limit: Option<i64>,
pub before: Option<String>,
}Expand description
Get trades associated with market, filtering on several optional fields.
Fields
market: Stringlimit: Option<i64>max trades to return
before: Option<String>page before if using pagination
Implementations
Trait Implementations
type Response = ListTradesResponse
Convert the protocol request to GraphQL from communication with Nash server
Convert JSON response to request to the protocol’s associated type
fn run_before<'life0, 'async_trait>(
&'life0 self,
state: Arc<RwLock<State>>
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<ProtocolHook>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
If you want to limit the amount of concurrency of a protocol return a Semaphore here
Any state changes that result from execution of the protocol request The default implementation does nothing to state Read more
Any errors that result from execution of the protocol request The default implementation does nothing to state Read more
type Error = OpenLimitsError
type Error = OpenLimitsError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ListTradesRequest
impl Send for ListTradesRequest
impl Sync for ListTradesRequest
impl Unpin for ListTradesRequest
impl UnwindSafe for ListTradesRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more