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()
    nka = client.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 %

    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.2a0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

marblex.py-1.0.2a0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file marblex.py-1.0.2a0.tar.gz.

File metadata

  • Download URL: marblex.py-1.0.2a0.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

Hashes for marblex.py-1.0.2a0.tar.gz
Algorithm Hash digest
SHA256 d857cb38cbbb0fe58e98f702add64f605cf37df5f15aae8639b574cf5bc36f2c
MD5 60021b7a7cb37419929ca58cf424611b
BLAKE2b-256 8885eaeca1f8c1563bcfac96aa8f1e10f0a058a86efd1afc2fa9ad48337c8bb6

See more details on using hashes here.

File details

Details for the file marblex.py-1.0.2a0-py3-none-any.whl.

File metadata

File hashes

Hashes for marblex.py-1.0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 1975548d2354b0e6291321c9d46d8b0412b22c3c3cf06b67031f57ab6057fd6e
MD5 c70c1398613ad3aa8d1183f4668d23bb
BLAKE2b-256 53beaa22cadf4bc06b3456789e8cbbdbe80a5854cc3db8d4b2b2edc209672fb1

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