Struct crypto_rest_client::BitzSwapRestClient
source · [−]pub struct BitzSwapRestClient { /* private fields */ }
Expand description
The RESTful client for BitZ swap markets.
- RESTful API doc: https://apidocv2.bitz.plus/en/
- Trading at: https://swap.bitz.plus/en/
- Rate Limits: https://apidocv2.bitz.plus/en/#limit
- no more than 30 times within 1 sec
Implementations
sourceimpl BitzSwapRestClient
impl BitzSwapRestClient
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 100 bids and asks are returned.
For example: https://apiv2.bitz.com/V2/Market/getContractOrderBook?contractId=101&depth=100,
sourcepub fn fetch_open_interest(symbol: Option<&str>) -> Result<String, Error>
pub fn fetch_open_interest(symbol: Option<&str>) -> Result<String, Error>
Get open interest.
For example: https://apiv2.bitz.com/V2/Market/getContractTickers
Auto Trait Implementations
impl RefUnwindSafe for BitzSwapRestClient
impl Send for BitzSwapRestClient
impl Sync for BitzSwapRestClient
impl Unpin for BitzSwapRestClient
impl UnwindSafe for BitzSwapRestClient
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