Struct crypto_rest_client::OkexRestClient [−][src]
pub struct OkexRestClient { /* fields omitted */ }Expand description
The REST client for OKEx.
OKEx has Spot, Future, Swap and Option markets.
- WebSocket API doc: https://www.okex.com/docs/en/
- Trading at:
Implementations
Get most recent trades.
100 trades are returned.
For example: https://www.okex.com/api/spot/v3/instruments/BTC-USDT/trades
Get the latest Level2 snapshot of orderbook.
Top 200 bids and asks are returned.
For example:
- https://www.okex.com/api/spot/v3/instruments/BTC-USDT/book?size=200,
- https://www.okex.com/api/swap/v3/instruments/BTC-USDT-SWAP/depth?size=200
Rate limit: 20 requests per 2 seconds
Auto Trait Implementations
impl RefUnwindSafe for OkexRestClient
impl Send for OkexRestClient
impl Sync for OkexRestClient
impl Unpin for OkexRestClient
impl UnwindSafe for OkexRestClient
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