市场营销员
mcli的Python项目详细描述
MCLI
MarketMaker客户端
- 自由软件:麻省理工学院许可证
- 文档:https://mcli.readthedocs.io。
功能
- 使用简化的cli方式向marketmaker rpc api(http://127.0.0.1:7783)发送命令。
使用量
在测试之前,请检查marketmaker是否正在运行(在本地主机上或通过ssh隧道)
这个工具至少需要Python2.7和PIP来简化工作。$ pip install mcli
$ 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
$ mcli orderbook --help
Usage: mcli orderbook [OPTIONS]
Options:
--base TEXT
--rel TEXT
--duration TEXT
--help Show this message and exit.
$ 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}
学分
这个包是用Cookiecutter和audreyr/cookiecutter-pypackage项目模板创建的。
历史记录
0.1.0(2018-01-10)
- pypi上的第一个版本。