Quick Start with Python
This guide will walk you through the steps to set up and start using the dYdX API Python library.
Install Python3 and Poetry
Choose and install Python 3.9+ and Poetry for your system.
Clone the dydx client repo
git clone https://github.com/dydxprotocol/v4-clients.gitInstall all dependencies
Go to the Python client library.
cd v4-clients/v4-client-py-v2Install the project dependencies using the following command:
poetry installRun an example
Now, we can run an example file. Let's run example/accounts_endpoint.py file.
poetry run python -m examples.account_endpoints