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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file mcli-0.3.2.tar.gz.

File metadata

  • Download URL: mcli-0.3.2.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mcli-0.3.2.tar.gz
Algorithm Hash digest
SHA256 41a891b229268669c131c5488f13420d6d535dc95d3396c19a942aa006246525
MD5 b2db7ef509c4f7571c400f2113a3fd40
BLAKE2b-256 cf798c47ad126f22fd04d9ce7fe926247fb273c6f725b2465d730b85c6305787

See more details on using hashes here.

File details

Details for the file mcli-0.3.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mcli-0.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9b2c55aecc0a6492243dbdc5bf3e34cadbde8cdc0581a5bff2e928758e4aec5b
MD5 f8772fa76f6db30bff4be31330ab2aaa
BLAKE2b-256 212efe8a353b9167ec0c03b68f7375a3f1c014dba7cb068b7002407e5e179ea0

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