Skip to main content

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.

Release files for mcli 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcli 0.3.2
File Size Uploaded
mcli-0.3.2.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcli 0.3.2
File Interpreter ABI Platform
mcli-0.3.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 20.7 kB

Release files / mcli-0.3.2.tar.gz

Download URL mcli-0.3.2.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41a891b229268669c131c5488f13420d6d535dc95d3396c19a942aa006246525
BLAKE2b-256 checksum
How to use checksums
cf798c47ad126f22fd04d9ce7fe926247fb273c6f725b2465d730b85c6305787
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mcli-0.3.2-py2.py3-none-any.whl

Download URL mcli-0.3.2-py2.py3-none-any.whl
Size 6.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9b2c55aecc0a6492243dbdc5bf3e34cadbde8cdc0581a5bff2e928758e4aec5b
BLAKE2b-256 checksum
How to use checksums
212efe8a353b9167ec0c03b68f7375a3f1c014dba7cb068b7002407e5e179ea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.2.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page