bybit-async 0.1.0

Rust Library for the Bybit API (Async)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Error;
use bybit_async::{rest, Bybit};
use fehler::throws;
use std::env::var;

#[throws(Error)]
#[tokio::test]
async fn get_current_position_mode() {
    env_logger::init();

    // let bybit = Bybit::with_key_and_secret(&var("BYBIT_KEY")?, &var("BYBIT_SECRET")?);
    // let resp = bybit
    //     .request(::GetCurrentPositionModeRequest {})
    //     .await?;
    // println!("{resp:?}");
}