Struct crypto_rest_client::ZbgSpotRestClient
source · pub struct ZbgSpotRestClient { /* private fields */ }
Expand description
The RESTful client for ZBG spot market.
- RESTful API doc: https://zbgapi.github.io/docs/spot/v1/en/
- Trading at: https://www.zbg.com/trade/
Implementations§
source§impl ZbgSpotRestClient
impl ZbgSpotRestClient
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 200 bids and asks are returned.
For example: https://kline.zbg.com/api/data/v1/entrusts?marketName=btc_usdt&dataSize=200,