Official Python client for DataMaxi+ API
Project description
DataMaxi+ Python Client
This is the official implementation of Python client for DataMaxi+ API. The package can be used to fetch both historical and latest data using DataMaxi+ API. This package is compatible with Python v3.8+.
Installation
pip3 install datamaxi
Configuration
Access to DataMaxi+ is protected by API Key. If you are interested to try DataMaxi+, you can simply sign up for DataMaxi+ through this login/singup page and get free API key for two months.
| Option | Explanation |
|---|---|
api_key |
Your API key |
base_url |
If base_url is not provided, it defaults to api.datamaxiplus.com. |
timeout |
Number of seconds to wait for a server response. By default requests do not time out. |
proxies |
Proxy through which the request is queried |
show_limit_usage |
Return response as dictionary including "limit_usage" and "data" keys |
show_header |
Return response as dictionary including "header" and "data" keys |
Environment Variables
You may use environment variables to configure the DataMaxi+ client to avoid any inline boilerplate.
| Env | Description |
|---|---|
DATAMAXI_API_KEY |
Used instead of api_key if none is passed. |
Quickstart
DataMaxi+ Python package currently includes the following clients:
DatamaxiDefillamaNaverGoogle
All clients accept the same parameters that are described at Configuration section. First, import the clients,
# Main client to access crypto trading data
from datamaxi.datamaxi import Datamaxi
# DeFi
from datamaxi.defillama import Defillama
# Trend
from datamaxi.naver import Naver
from datamaxi.google import Google
and initialize them.
# Main client
maxi = Datamaxi(api_key=api_key)
# DeFi
defillama = Defillama(api_key=api_key)
# Trend
naver = Naver(api_key=api_key)
google = Google(api_key=api_key)
Local Development
Setup
If you wish to work on local development please clone/fork the git repo and use pip install -r requirements.txt to setup the project.
Testing
# In case packages are not installed yet
pip3 install -r requirements/requirements-test.txt
python3 -m pytest tests/
Links
Contributing
We welcome contributions! If you discover a bug in this project, please feel free to open an issue to discuss the changes you would like to propose.
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datamaxi-0.19.0.tar.gz.
File metadata
- Download URL: datamaxi-0.19.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f84c1fd441864be9fa8ba751bbeebb347aef003140e66545834e3cccc806c951
|
|
| MD5 |
348a5f9d55b744ca25e99e73ce12167a
|
|
| BLAKE2b-256 |
eb83bb367cce04949058396b7743b7923f6e4d2a87cd9c140ea640622138dabc
|
File details
Details for the file datamaxi-0.19.0-py3-none-any.whl.
File metadata
- Download URL: datamaxi-0.19.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
186ce9bbf3cfbae1bf2a2f5514ac1e9b2e47013b1a60e489899358b56162dc18
|
|
| MD5 |
f71b1d081ecf7e0edeb0d5a1d0b0f07a
|
|
| BLAKE2b-256 |
c59c7f7021884e9187f129d62856837c7ee97c248f555431e94702637ee3d876
|