dYdX Chain Client for Python
Python client for dYdX (v4 API).
Repository: v4-client-py
Installation
The v4-client-py package is available on PyPI. Install with pip
pip install v4-client-pyDevelopment Setup - VS Code
Install Microsoft Python extensions
Shift-Command-P: Create Python Environment
Select Venv
Select Python 3.9 as interpreter
Select requirements.txt as the dependencies to installInstall requirements
pip install -r requirements.txtVS Code will automatically switch to .venv environment when running example code. Or you can manually switch
source ~/<project_dir>/.venv/bin/activateSet PYTHONPATH
export PYTHONPATH=~/<project_dir>/.venv/lib/<Python version>/site-packagesTroubleshootimg
Cython and Brownie must be installed before cytoolz
If there is any issue with cytoolz, uninstall cytoolz, Brownie and Cython, reinstall Cython, Brownie and cytoolz sequentially.
VS Code may need to be restarted to have Cython functioning correctly
PreviousAdditional Javascript Client ExamplesNextExample #1: Placing, Replacing, and Canceling Orders
Last updated