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
sourceimpl 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,
Auto Trait Implementations
impl RefUnwindSafe for ZbgSpotRestClient
impl Send for ZbgSpotRestClient
impl Sync for ZbgSpotRestClient
impl Unpin for ZbgSpotRestClient
impl UnwindSafe for ZbgSpotRestClient
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