Struct nash_protocol::protocol::list_candles::ListCandlesRequest [−][src]
pub struct ListCandlesRequest {
pub market: String,
pub before: Option<String>,
pub chronological: Option<bool>,
pub interval: Option<CandleInterval>,
pub limit: Option<i64>,
pub range: Option<DateTimeRange>,
}Expand description
Get candles associated with market, filtering on several optional fields.
Fields
market: Stringbefore: Option<String>page before if using pagination
chronological: Option<bool>interval: Option<CandleInterval>what kind of candle interval do we want?
limit: Option<i64>max trades to return
range: Option<DateTimeRange>range of time to get candles
Implementations
Trait Implementations
type Response = ListCandlesResponse
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 ListCandlesRequest
impl Send for ListCandlesRequest
impl Sync for ListCandlesRequest
impl Unpin for ListCandlesRequest
impl UnwindSafe for ListCandlesRequest
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