dydx

Crates.iodydx
lib.rsdydx
version0.1.0
sourcesrc
created_at2024-10-28 13:34:33.461159
updated_at2024-10-28 13:34:33.461159
descriptiondYdX v4 asynchronous client.
homepage
repositoryhttps://github.com/dydxprotocol/v4-clients/v4-client-rs
max_upload_size
id1425623
size464,469
Denis Kolodin (therustmonk)

documentation

README

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.

Commit count: 0

cargo fmt