Struct crypto_rest_client::DeribitRestClient [−][src]
pub struct DeribitRestClient { /* fields omitted */ }
Expand description
The RESTful client for Deribit.
Deribit has InverseFuture, InverseSwap and Option markets.
- WebSocket API doc: https://docs.deribit.com/?shell#market-data
- Trading at:
- Rate Limits: https://www.deribit.com/pages/information/rate-limits
- Each sub-account has a rate limit of 20 requests per second
Implementations
Get most recent trades.
100 trades are returned.
For example: https://www.deribit.com/api/v2/public/get_last_trades_by_instrument?count=100&instrument_name=BTC-PERPETUAL
Get the latest Level2 snapshot of orderbook.
Top 2000 bids and asks are returned.
For example: https://www.deribit.com/api/v2/public/get_order_book?depth=2000&instrument_name=BTC-PERPETUAL,
Auto Trait Implementations
impl RefUnwindSafe for DeribitRestClient
impl Send for DeribitRestClient
impl Sync for DeribitRestClient
impl Unpin for DeribitRestClient
impl UnwindSafe for DeribitRestClient
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