A library to get various cryptocurrency prices from the marblex API
Project description
marblex.py
A library to get various cryptocurrency prices from the marblex API.
Installation
pip install marblex.py
Example
- basic usage:
import marblex
nkt = marblex.get_nkt()
nka = marblex.get_nka()
print(f"NKT : {nkt.USD}$, Percent: {nkt.percent}")
print(f"NKA : {nka.USD}$, Percent: {nka.percent}")
# NKT : 1.47$, Percent: -4.22 %
# NKA : 3.56$, Percent: +1.61 %
- with client:
import marblex
import time
client = marblex.Client()
while True:
nkt = client.get_NKT()
print(f"NKT : {nkt.USD}$, Percent: {nkt.percent}")
# NKT : 1.47$, Percent: -4.22 %
time.sleep(5)
License
MIT
inspired by
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
marblex.py-1.0.3a0.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file marblex.py-1.0.3a0.tar.gz
.
File metadata
- Download URL: marblex.py-1.0.3a0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74a0539fa81efad8f77fd0cd3f34e094b61e325945cd5437f8ce572830676abc |
|
MD5 | 5d064189cc01e8da0b7c8e4a86edad61 |
|
BLAKE2b-256 | becc855ea46f58f072818866f6628ae2f6773ed96cb669bef07393ef95da3e04 |
File details
Details for the file marblex.py-1.0.3a0-py3-none-any.whl
.
File metadata
- Download URL: marblex.py-1.0.3a0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67d1f1562e694147206b890dbca277111e118658ca3fb19de5ca5461f80353a0 |
|
MD5 | 3c5603098b4ec5522fc8fea33e529dd7 |
|
BLAKE2b-256 | 564ff65d029af3a917ecf7ee3009609a567b404039e1b3c34acc4b50b918c1bd |