[−][src]Struct crypto_rest_client::BitmexRestClient
The REST client for BitMEX.
BitMEX has Swap and Future markets.
- REST API doc: https://www.bitmex.com/api/explorer/
- Trading at: https://www.bitmex.com/app/trade/
Implementations
impl BitmexRestClient
[src]
pub fn new(api_key: Option<String>, api_secret: Option<String>) -> Self
[src]
pub fn fetch_trades(
symbol: &str,
start_time: Option<String>
) -> Result<String, Error>
[src]
symbol: &str,
start_time: Option<String>
) -> Result<String, Error>
Get trades from a beginning time.
Equivalent to /trade
with count=1000
For example: https://www.bitmex.com/api/v1/trade?symbol=XBTUSD&count=1000&startTime=2018-09-28T12:34:25.706Z
pub fn fetch_l2_snapshot(symbol: &str) -> Result<String, Error>
[src]
Get a full Level2 snapshot of orderbook.
Equivalent to /orderBook/L2
with depth=0
For example: https://www.bitmex.com/api/v1/orderBook/L2?symbol=XBTUSD&depth=0
Auto Trait Implementations
impl RefUnwindSafe for BitmexRestClient
[src]
impl Send for BitmexRestClient
[src]
impl Sync for BitmexRestClient
[src]
impl Unpin for BitmexRestClient
[src]
impl UnwindSafe for BitmexRestClient
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,