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", count=100, timeframe='1M')
with open("x.json", "w") as f:
    json.dump([obj.model_dump() for obj in kline_data], f, indent=4, default=str)

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.1.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

python_crypto_dot_com_sdk-1.1.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for python_crypto_dot_com_sdk-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f4aa2638ac6e57bd0a80d16e0241d252507ff2e1fa4463ee7ef0c7d796d9143b
MD5 87dcaf5880307b9e6078ebfc023249ec
BLAKE2b-256 d69364e19c6d9ffa868162198d82e53297dd67e8309a9ead8c062a24e5bf27a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_crypto_dot_com_sdk-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 083c519432341293740dcfbf7509ba51aa71bc77bdaa3e02f338ab811c511ad0
MD5 2daf69e5d22ef423069a9a726fe4d5c8
BLAKE2b-256 4106839e5dad7ae29997caa6bb4b42c7c8ceaff97fbd92264d51a2f848feb56b

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