How to use the command line interface

Query Orderbook

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


$ mtm query microtick orderbook <market_id> [5minute, 15minute, 1hour, 4hour, 12hour]


Returns a summary of all the quotes currently active on a certain market for a given time duration.