Python3 AZ.COM HTTP API Connector
Project description
azpython
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
Official Python3 API connector for AZ.COM's HTTP APIs.
## Table of Contents
- [About](#about)
- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)
- [Contact](#contact)
## 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](https://pypi.org/project/azpython/) with `pip`:
```
pip install azpython
```
## Usage
You can retrieve a specific spot market like so:
```python
from azpython.spot import Spot
```
Create an HTTP session and connect via WebSocket for Inverse on mainnet:
```python
az = Spot(host="https://s-api.myaztests.com", access_key='', secret_key='')
```
Information can be sent to, or retrieved from, the AZ.COM APIs:
```python
print(az.balance("usdt"))
```
You can retrieve a specific future market like so:
```python
from azpython.perp import Perp
```
Create an HTTP session and connect via WebSocket for Inverse on mainnet:
```python
az = Perp(host="https://f-api.myaztests.com", access_key='', secret_key='')
```
Information can be sent to, or retrieved from, the AZ.COM APIs:
```python
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](https://localhost) group chat.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
azpython-0.1.1.tar.gz
(18.0 kB
view details)
File details
Details for the file azpython-0.1.1.tar.gz.
File metadata
- Download URL: azpython-0.1.1.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ab0c9ac92cdab8bf2e16fb9d076facf140afb9a451ac2abf6d98451240ab082
|
|
| MD5 |
451253bf086a1a8555f046615061e5eb
|
|
| BLAKE2b-256 |
623ab76e3b653c88b0c6b4d06a1e674f15fd5ded4cdb5e6fd2e503a7a3433f74
|