Official Python3 API connector for AZ.COM's HTTP APIs.
Put simply, azpython
(Python + AZ.COM) is the official lightweight one-stop-shop module for the AZ.COM HTTP APIs.
azpython
requires Python 3.9.1 or higher. The module can be installed manually or via PyPI with pip
:
pip install azpython
You can retrieve a specific spot market like so:
from azpython.spot import Spot
Create an HTTP session and connect via WebSocket for Inverse on mainnet:
az = Spot(host="https://s-api.myaztests.com", access_key='', secret_key='')
Information can be sent to, or retrieved from, the AZ.COM APIs:
print(az.balance("usdt"))
You can retrieve a specific future market like so:
from azpython.perp import Perp
Create an HTTP session and connect via WebSocket for Inverse on mainnet:
az = Perp(host="https://f-api.myaztests.com", access_key='', secret_key='')
Information can be sent to, or retrieved from, the AZ.COM APIs:
print(az.get_account_capital())
You can find more examples in the project folder /examples/
You can reach out for support on the AZAPI Telegram group chat.