Skip to main content

A simple python wrapper for crypto.com API

Project description

Python Crypto API SDK

Installation

pip install python_crypto_dot_com_sdk

Market

Get Candlestick Data

import json
from crypto_dot_com.client import CryptoAPI


client = CryptoAPI(
    api_key=API_KEY,
    api_secret=SECRET_KEY,
    log_json_response_to_file=True,
)

kline_data = client.get_candlesticks("MTD_USD")
with open("x.json", "w") as f:
    json.dump([obj.model_dump() for obj in kline_data], f, indent=4)

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

python_crypto_dot_com_sdk-1.0.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

python_crypto_dot_com_sdk-1.0.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file python_crypto_dot_com_sdk-1.0.1.tar.gz.

File metadata

File hashes

Hashes for python_crypto_dot_com_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ed530a42b26c6b5244be8b994dfce7947a1a788103ca4d12b00e76f21ac9e9fa
MD5 998b0ab40c74961c73a29dee9c29daaf
BLAKE2b-256 4c25d6cb77f4c8286a5ad0fb6ed7b9ccd0731ef59d4dc5140dc74d2cc74123e0

See more details on using hashes here.

File details

Details for the file python_crypto_dot_com_sdk-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_crypto_dot_com_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c97d44cb063419529c84517f4fab641e2d6b142fcbea0216432848c8b4b3ed3b
MD5 40a7bc7efc643ed2401b299de85821d5
BLAKE2b-256 1824ef61f2702e68aa56e656b18db0c59def2d6d125c1792f6f2d1591146d370

See more details on using hashes here.

Supported by

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