Python client for dYdX (v4 API).
The library is currently tested against Python versions 3.9, and 3.11.
The dydx-v4-python
package is available on PyPI. Install with pip
:
pip install v4-client-py
Sample code is located in examples folder
Select the file to be debugged Select the debug button on the left Select "Python: Current File"
Integration tests uses testnet environment for testing. We use pytest.
To install pytest
pip install pytest
For read-only integration tests, run:
pytest -v
For integration tests with transactions, a subaccount must exist for the specified address. This subaccount may be reset when testnet environment is reset. To create the subaccount, run
examples/faucet_endpoint.py
Wait for a few seconds for the faucet transaction to commit, then run
pytest -v -c pytest_integration.ini
This is not an official dYdX product. This repository is not affiliated or associated with dYdX in any way. The dYdX name, the dYdX logo, and related names, marks, emblems and images are trademarks of their respective owners.