Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

marblex.py-1.0.3a0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

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