MarketMaker CLI
Project description
mcli
MarketMaker CLI
Free software: MIT license
Documentation: https://mcli.readthedocs.io.
Features
Send commands to MarketMaker RPC API (http://127.0.0.1:7783) with a simplified cli fashion.
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.
Install it with
$ pip install mcli
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
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a891b229268669c131c5488f13420d6d535dc95d3396c19a942aa006246525 |
|
MD5 | b2db7ef509c4f7571c400f2113a3fd40 |
|
BLAKE2b-256 | cf798c47ad126f22fd04d9ce7fe926247fb273c6f725b2465d730b85c6305787 |
File details
Details for the file mcli-0.3.2-py2.py3-none-any.whl
.
File metadata
- Download URL: mcli-0.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2c55aecc0a6492243dbdc5bf3e34cadbde8cdc0581a5bff2e928758e4aec5b |
|
MD5 | f8772fa76f6db30bff4be31330ab2aaa |
|
BLAKE2b-256 | 212efe8a353b9167ec0c03b68f7375a3f1c014dba7cb068b7002407e5e179ea0 |