Struct crypto_rest_client::BitmexRestClient [−][src]
pub struct BitmexRestClient { /* fields omitted */ }
Expand description
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/
- Rate Limits: https://www.bitmex.com/app/restAPI#Limits
- 60 requests per minute on all routes (reduced to 30 when unauthenticated)
- 10 requests per second on certain routes (see below)
Implementations
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
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
impl Send for BitmexRestClient
impl Sync for BitmexRestClient
impl Unpin for BitmexRestClient
impl UnwindSafe for BitmexRestClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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