Skip to main content

MarketMaker CLI

Project description

mcli

https://img.shields.io/pypi/v/mcli.svg https://img.shields.io/travis/Monaize/mcli.svg Documentation Status Updates

MarketMaker CLI

Features

Usage

Check that the marketmaker is running (on localhost, or via ssh tunnel) before testing this

This tool require python 2.7 and pip at least to make things easier.

  1. Install it with

$ pip install mcli
  1. Test if the cli can connect to marketmaker, if you can see lot of commands, it works !

$ mcli --help
Usage: mcli [OPTIONS] COMMAND [ARGS]...

Options:
--help  Show this message and exit.

Commands:
autoprice
balance
bestfit
blacklistbalance
buy
deletemessages
disable
dividends
electrum
enable
getcoin
getcoins
getmessages
getpeers
getprices
getrawtransaction
goal
inventory
lastnonce
list
listunspent
myprice
notarizations
orderbook
parselog
passphrase
pause
portfolio
pricearray
recentswaps
resume
secretaddresses
sell
sendmessage
sendrawtransaction
setconfirms
setprice
settings
snapshot
statsdisp
status
statuslist
stop
swapstatus
trust
withdraw
  1. You can check the usage of every command like this :

$ mcli orderbook --help
Usage: mcli orderbook [OPTIONS]

Options:
--base TEXT
--rel TEXT
--duration TEXT
--help           Show this message and exit.
  1. And then call the method :

$ mcli orderbook --base KMD --rel MNZ
{
        "base": "KMD",
        "numbids": 1,
        "rel": "MNZ",
        "bids": [
                {
                "address": "RVz1cJSqAfgLQcC9KX96Ba6tqmVb6uNmim",
                "maxvolume": 3.59287268,
                "minvolume": 0.00147469,
                "coin": "MNZ",
                "price": 9.98495744,
                "numutxos": 416,
                "depth": 230.24036763,
                "pubkey": "d80a74847cd60899afdd673570f8b698e4089e5ad4d6e9e205b5e5891ec0c84f",
                "age": 29
                }
        ],
"asks": [],
"timestamp": 1515770670,
"numasks": 0
}

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2018-01-10)

  • First release on PyPI.

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

mcli-0.3.2.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

mcli-0.3.2-py2.py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 2 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