Struct crypto_rest_client::BitgetSpotRestClient
source · pub struct BitgetSpotRestClient { /* private fields */ }
Expand description
The RESTful client for Bitget spot market.
- RESTful API doc: https://bitgetlimited.github.io/apidoc/en/spot/
- Trading at: https://www.bitget.com/spot/
Implementations§
source§impl BitgetSpotRestClient
impl BitgetSpotRestClient
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.
Top 150 bids and asks are returned.
For example: https://api.bitget.com/api/spot/v1/market/depth?symbol=BTCUSDT_SPBL&type=step0,