How to use the command line interface

Trade

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

To use mtm from the command line, you must have a synced Microtick node and you should to set the MTM_HOME environment variable to the same directory your synced node is using if it's not using the default location, for example:

$ export MTM_HOME=$HOME/testnet

Usage

$ mtm tx microtick trade <market_id> [market] [duration] [buy | sell] [call |put] [quantity]

Description

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.

Duration

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

Buy or Sell

Whether buying premium or collecting premium (requires up to 10x backing deposit)

Call | Put

"call" or "put"

Quantity

Quantitiy to fill. Example: "10quantity"