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
Built Distribution
File details
Details for the file python_crypto_dot_com_sdk-1.1.1.tar.gz
.
File metadata
- Download URL: python_crypto_dot_com_sdk-1.1.1.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4aa2638ac6e57bd0a80d16e0241d252507ff2e1fa4463ee7ef0c7d796d9143b |
|
MD5 | 87dcaf5880307b9e6078ebfc023249ec |
|
BLAKE2b-256 | d69364e19c6d9ffa868162198d82e53297dd67e8309a9ead8c062a24e5bf27a4 |
File details
Details for the file python_crypto_dot_com_sdk-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: python_crypto_dot_com_sdk-1.1.1-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 083c519432341293740dcfbf7509ba51aa71bc77bdaa3e02f338ab811c511ad0 |
|
MD5 | 2daf69e5d22ef423069a9a726fe4d5c8 |
|
BLAKE2b-256 | 4106839e5dad7ae29997caa6bb4b42c7c8ceaff97fbd92264d51a2f848feb56b |