crypto_rest_client/exchanges/bitz/
bitz_spot.rs1use super::super::utils::http_get;
2use crate::error::Result;
3use std::collections::BTreeMap;
4
5const BASE_URL: &str = "https://apiv2.bitz.com";
6
7pub struct BitzSpotRestClient {
14 _api_key: Option<String>,
15 _api_secret: Option<String>,
16}
17
18impl BitzSpotRestClient {
19 pub fn new(api_key: Option<String>, api_secret: Option<String>) -> Self {
20 BitzSpotRestClient { _api_key: api_key, _api_secret: api_secret }
21 }
22
23 pub fn fetch_l2_snapshot(symbol: &str) -> Result<String> {
27 gen_api!(format!("/V2/Market/depth?symbol={symbol}"))
28 }
29}