Struct nash_protocol::protocol::orderbook::OrderbookRequest [−][src]
pub struct OrderbookRequest {
pub market: String,
}Expand description
Get order book data for the provided market
Fields
market: StringImplementations
pub async fn response_from_graphql(
&self,
response: ResponseOrError<ResponseData>,
_state: Arc<RwLock<State>>
) -> Result<ResponseOrError<OrderbookResponse>>
Trait Implementations
Performs the conversion.
type Response = OrderbookResponse
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
Auto Trait Implementations
impl RefUnwindSafe for OrderbookRequest
impl Send for OrderbookRequest
impl Sync for OrderbookRequest
impl Unpin for OrderbookRequest
impl UnwindSafe for OrderbookRequest
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