Skip to main content

Official Python SDK 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
  • Naver

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

# Trend
from datamaxi.naver import Naver

and initialize them.

# Main client
maxi = Datamaxi(api_key=api_key)

# Trend
naver = Naver(api_key=api_key)

Local Development

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.

Tests

# 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.26.0.tar.gz (16.8 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.26.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datamaxi-0.26.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for datamaxi-0.26.0.tar.gz
Algorithm Hash digest
SHA256 fad9f4a790d42f561509f98cce8edda1d99a358a9b587bbfcd32b38c78c2db39
MD5 287ebb0effcce8b7b826dbbf6bad8c79
BLAKE2b-256 24f2df94c158cec7920bd8a3b07bcc5795dd16644dd4583c798d4f3dfab7a322

See more details on using hashes here.

Provenance

The following attestation bundles were made for datamaxi-0.26.0.tar.gz:

Publisher: release.yml on Bisonai/datamaxi-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: datamaxi-0.26.0-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for datamaxi-0.26.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6d3c75af83451fac3f8d51d0fda9ea7b9fff84bb30dae992ff62c55abf5e25a
MD5 c184dc428d6ef5dde3ce9cb3612b7877
BLAKE2b-256 d515b71f52b3c8ef5da56abd26e674350940b9931ce6d72789c5c8b3d4b5f25c

See more details on using hashes here.

Provenance

The following attestation bundles were made for datamaxi-0.26.0-py3-none-any.whl:

Publisher: release.yml on Bisonai/datamaxi-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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