rust-okx 0.5.0

Async Rust client for the OKX v5 REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::test_util::MockTransport;
use crate::{Credentials, OkxClient};

mod eth_staking;
mod flexible_loan;
mod savings;
mod sol_staking;
mod staking_defi;

fn signed_client(mock: MockTransport) -> OkxClient<MockTransport> {
    OkxClient::with_transport(mock)
        .credentials(Credentials::new("key", "secret", "pass"))
        .build()
}