Skip to main content

Official Python client for DataMaxi+ API

Project description

DataMaxi+ Python SDK

PyPI version Python version Documentation Code Style License: MIT

This is the official implementation of Python SDK 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

Private API endpoints are protected by an API key. You can get the API key upon registering at https://datamaxiplus.com/auth.

Option Explanation
api_key Your API key
base_url If base_url is not provided, it defaults to https://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 SDK 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:

  • Datamaxi
  • Defillama
  • Naver
  • Google

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

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datamaxi-0.22.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datamaxi-0.22.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file datamaxi-0.22.0.tar.gz.

File metadata

  • Download URL: datamaxi-0.22.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for datamaxi-0.22.0.tar.gz
Algorithm Hash digest
SHA256 7ea0f82060b6ff78b94a66ce479aa80dba28442a4aaa4d2b0c15a13ed93d3ac8
MD5 60734ab7ed2e92dbf73ddd1d66857c36
BLAKE2b-256 6c213d0a3348ac2189390dd59dc2e265f91b26a2cbfc22af8845a6722e0cf149

See more details on using hashes here.

File details

Details for the file datamaxi-0.22.0-py3-none-any.whl.

File metadata

  • Download URL: datamaxi-0.22.0-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for datamaxi-0.22.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a06ee8e180e93bbc545a62b60ca7c0cb08c2f46e16dac0cd135baa01e899686
MD5 93981868ad3fc758eac61cb7c54ee9c8
BLAKE2b-256 3e886f0a0f86d281b924e2a819e6befffe7809d932146db7c1cc932bfab67d2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page