Crates.io | okx-rs |
lib.rs | okx-rs |
version | 0.1.1 |
source | src |
created_at | 2023-01-04 08:22:23.395522 |
updated_at | 2024-05-03 10:04:38.504457 |
description | Unofficial Rust Library for the OKX V5 API |
homepage | |
repository | https://github.com/roytang121/okx-rs/ |
max_upload_size | |
id | 750730 |
size | 283,295 |
Unofficial Rust Library for the OKX V5 API.
[dependencies]
okx-rs = { git = "https://github.com/roytang121/okx-rs" }
Get the balance of the funding account.
use okx_rs::api::v5::funding_account::GetFundingBalances;
use okx_rs::api::v5::testkit::with_env_private_client;
/// Rest API - get funding balances
#[tokio::main]
async fn main() {
with_env_private_client(|client| async move {
let response = client
.request(GetFundingBalances {
..Default::default()
})
.await
.unwrap();
println!("{}", serde_json::to_string_pretty(&response).unwrap());
})
.await;
}
The following is a list of all the features that are currently supported by the library. The list is updated as the library is updated. If you find any problems, please submit an issue or pull request.