How to use the command line interface

Query Market

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 query microtick market <market_id>

Description

Returns a snapshot of the current state of a microtick market, including consensus price, backing and weights for the entire market and a breakdown of backing and weights for each standardized orderbook.