use crate::client::KuCoinClient;
use crate::error::Result;
use crate::ws::types::WsToken;
use tracing::info;
impl KuCoinClient {
pub async fn get_ws_token_private(&self) -> Result<WsToken> {
info!("Fetching private WebSocket token");
self.post("/api/v1/bullet-private", &serde_json::json!({}))
.await
}
pub async fn get_ws_token_public(&self) -> Result<WsToken> {
info!("Fetching public WebSocket token");
self.post("/api/v1/bullet-public", &serde_json::json!({}))
.await
}
}