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§
source§impl 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