pub struct CapabilitySet {
pub order_book: Option<EndpointDescriptor>,
pub ticker: Option<EndpointDescriptor>,
pub trades: Option<EndpointDescriptor>,
pub ohlc: Option<EndpointDescriptor>,
pub assets: Option<EndpointDescriptor>,
}Expand description
Set of API capabilities a venue provides. Each capability is optional — omit if the venue doesn’t support it.
Fields§
§order_book: Option<EndpointDescriptor>Order book / depth endpoint.
ticker: Option<EndpointDescriptor>24h ticker endpoint.
trades: Option<EndpointDescriptor>Recent trades endpoint.
ohlc: Option<EndpointDescriptor>OHLC / klines / candlestick endpoint.
assets: Option<EndpointDescriptor>Coin list with each asset’s networks and token contracts, so a report can show which token a symbol is.
Trait Implementations§
Source§impl Clone for CapabilitySet
impl Clone for CapabilitySet
Source§impl Debug for CapabilitySet
impl Debug for CapabilitySet
Source§impl Default for CapabilitySet
impl Default for CapabilitySet
Source§impl<'de> Deserialize<'de> for CapabilitySet
impl<'de> Deserialize<'de> for CapabilitySet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CapabilitySet
impl Freeze for CapabilitySet
impl RefUnwindSafe for CapabilitySet
impl Send for CapabilitySet
impl Sync for CapabilitySet
impl Unpin for CapabilitySet
impl UnsafeUnpin for CapabilitySet
impl UnwindSafe for CapabilitySet
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