How to use the command line interface

Market Trade

Note: This page describes how to use the 'mtcli' command line executable. This binary is currently available for Linux only

To use mtcli from the command line, you must have a synced Microtick node and you need to set the MTROOT environment variable to the same directory your synced node is using, for example:

$ export MTROOT=$HOME/testnet


$ mtcli tx microtick trade-market <market_id> [duration] [call |put] [quantity]</market_id>


Creates a trade by matching the best quote premiums first in order to fill <quantity>. Quotes will be matched in different order based on whether call or put is specified due to the way quote premium is dynamically adjusted based on consensus price.</quantity>


5minute, 15minute, 1hour, 4hour or 12hour

Call | Put

Verbatim "call" or "put"


Quantitiy to fill. Example: "10quantity"