Struct crypto_rest_client::BitgetSwapRestClient
source · [−]pub struct BitgetSwapRestClient { /* private fields */ }
Expand description
The RESTful client for Bitget swap markets.
- RESTful API doc: https://bitgetlimited.github.io/apidoc/en/mix/#restapi
- Trading at: https://www.bitget.com/mix/
Implementations
sourceimpl BitgetSwapRestClient
impl BitgetSwapRestClient
pub fn new(api_key: Option<String>, api_secret: Option<String>) -> Self
sourcepub fn fetch_l2_snapshot(symbol: &str) -> Result<String, Error>
pub fn fetch_l2_snapshot(symbol: &str) -> Result<String, Error>
Get the latest Level2 snapshot of orderbook.
For example: https://api.bitget.com/api/mix/v1/market/depth?symbol=BTCUSDT_UMCBL&limit=100
Rate Limit:20 requests per 2 seconds
Auto Trait Implementations
impl RefUnwindSafe for BitgetSwapRestClient
impl Send for BitgetSwapRestClient
impl Sync for BitgetSwapRestClient
impl Unpin for BitgetSwapRestClient
impl UnwindSafe for BitgetSwapRestClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more