Skip to content

selinayiya/api-python-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

azpython

All Contributors

Official Python3 API connector for AZ.COM's HTTP APIs.

Table of Contents

About

Put simply, azpython (Python + AZ.COM) is the official lightweight one-stop-shop module for the AZ.COM HTTP APIs.

Installation

azpython requires Python 3.9.1 or higher. The module can be installed manually or via PyPI with pip:

pip install azpython

Usage

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())

Examples

You can find more examples in the project folder /examples/

Contact

You can reach out for support on the AZAPI Telegram group chat.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages