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
Built Distribution
File details
Details for the file python_crypto_dot_com_sdk-1.0.1.tar.gz
.
File metadata
- Download URL: python_crypto_dot_com_sdk-1.0.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed530a42b26c6b5244be8b994dfce7947a1a788103ca4d12b00e76f21ac9e9fa |
|
MD5 | 998b0ab40c74961c73a29dee9c29daaf |
|
BLAKE2b-256 | 4c25d6cb77f4c8286a5ad0fb6ed7b9ccd0731ef59d4dc5140dc74d2cc74123e0 |
File details
Details for the file python_crypto_dot_com_sdk-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: python_crypto_dot_com_sdk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c97d44cb063419529c84517f4fab641e2d6b142fcbea0216432848c8b4b3ed3b |
|
MD5 | 40a7bc7efc643ed2401b299de85821d5 |
|
BLAKE2b-256 | 1824ef61f2702e68aa56e656b18db0c59def2d6d125c1792f6f2d1591146d370 |