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