Rust(Non-Async) client for dYdX (v3 API) built from official source code.

dYdX API Docs

Installation

Install dydx-v3-blocking from crates.io. Add the following line to your Cargo.toml file's dependencies section:

rust [dependencies] dydx-v3-blocking = { git = "https://github.com/Sharaddition/dydx-v3-blocking" } tokio = { version = "1.18.2", features = ["full"] }

Usage

Sample code to call Get Markets API

```rust use dydxv3blocking::{types::*, ClientOptions, DydxClient};

fn main() { let options: ClientOptions = ClientOptions { networkid: None, apitimeout: None, apikeycredentials: None, starkprivatekey: None, ethprivatekey: None, }; let client = DydxClient::new("https://api.dydx.exchange", options); let response = client .public .getmarkets(Some(DydxMarket::BTCUSD)) .unwrap(); dbg!(response); } ```

Run tests

sh cargo test

Disclaimer

Please use it at your own risk, do your own due-dilligence, I'm not responsible for anything that happens due to this library.