2 releases

0.1.1 Dec 2, 2024
0.1.0 Oct 28, 2024

#24 in Finance

Download history 99/week @ 2024-10-23 44/week @ 2024-10-30 14/week @ 2024-11-06 69/week @ 2024-11-13 240/week @ 2024-11-20 304/week @ 2024-11-27 184/week @ 2024-12-04 107/week @ 2024-12-11

861 downloads per month

LicenseRef-dYdX-Custom

255KB
5.5K SLoC

Rust client for dYdX v4

The crate implements interaction with the dYdX API.

The following features are implemented:

  • NodeClient, IndexerClient + WebSockets, FaucetClient, NobleClient
  • Fully asynchronous implementation
  • Telemetry
  • Convenient builder for constructing requests
  • Automatic WS connection support

Install

To add the crate to your project, use the command:

cargo add dydx

Development

Workspace consists of a single crate:

  • client - to provide connection management with dYdX, common types and utils

Prerequisites

Examples

To run the example, you need to use the cargo command as follows:

cargo run --example bot_basic_adder

You can find the full set of examples in the examples folder.

Code quality assurance

Before publishing make sure to run (and fix all warnings and errors)

cargo fmt
cargo clippy
cargo deny check licenses advisories sources

Documentation

To generate the documentation, use the command

cargo doc -p dydx

Acknowledgements

Built by Nethermind: @v0-e, @therustmonk, @maksimryndin

For more details about the grant see link.

Dependencies

~27–43MB
~754K SLoC