okx-client 0.1.2

Async Rust client for the OKX exchange API v5
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::error::OkxResult;
use crate::rest::RestClient;

impl RestClient {

    /// Get system status.
    /// GET /api/v5/system/status
    pub async fn get_system_status(&self) -> OkxResult<Vec<serde_json::Value>> {
        self.get::<serde_json::Value, ()>("/api/v5/system/status", None)
            .await
    }
}