Skip to content

Quick Start with Rust

This guide will walk you through the steps to set up and start using the dYdX API Rust library.

Install Rust and Cargo

Choose and install Rust and Cargo for your system.

Clone the dydx client repo

git clone https://github.com/dydxprotocol/v4-clients.git

Run an example

Go to the Rust client library.

cd v4-clients/v4-client-rs

Now, we can run an example file. Let's run accounts_endpoint example.

cargo run --example account_endpoint
Now, you can play around with all the available examples. Happy trading!