Skip to main content

Python package for interacting with MiraiEx' API

Project description

MiraiEx

Version Stars Issues Size Code style

Python package for interacting with MiraiEx' (refferal) API.

MiraiEx (not refferal)

THIS PACKAGE DOES NOT CURRENTLY SUPPORT PRIVATE ENDPOINTS.

Installation

Install and update using pip

pip install --upgrade miraiex

Usage

>>> from miraiex import MiraiEx, floatify, BITCOIN, XRP

>>> miraiex = MiraiEx()

>>> miraiex.get_market(BITCOIN) # or get_prices(BTC) or "BTCNOK". Predefined tickers can be found in markets.py
{'last': '480408.40', 'high': '533400.00', 'change': '-7.77', 'low': '460000.00', 'volume': '46.86'}

>>> miraiex.get_markets() # or get_tickers()
[{'id': 'BTCNOK', 'last': '473000.20', 'high': '533400.00', 'change': '-9.25', 'low': '460000.00', 'volume': '47.21'}, ...]

>>> floatify(miraiex.get_market(XRP))
{'last': 9.4, 'high': 10.95, 'change': -14.16, 'low': 7.44, 'volume': 1291258.8}

Documentation

MiraiEx' official documentation can be found here.

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

miraiex-0.0.5.tar.gz (2.9 kB view hashes)

Uploaded Source

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