use super::BaseClient;
use crate::model::{ExchangeInformation, ServerTime};
use serde_json::Value;
use super::shared::Result;
impl BaseClient {
pub async fn ping(&self) -> Result<String> {
self.transport
.get::<_, ()>("/api/v1/ping", None)
.await
.map(|_: Value| "pong".into())
}
pub async fn get_server_time(&self) -> Result<ServerTime> {
self.transport.get::<_, ()>("/api/v1/time", None).await
}
pub async fn get_exchange_info(&self) -> Result<ExchangeInformation> {
self.transport
.get::<_, ()>("/api/v1/exchangeInfo", None)
.await
}
}