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 query microtick orderbook <market_id> [5minute, 15minute, 1hour, 4hour, 12hour]
Sum Backing: 100.000000000000000000dai
SumWeight: 131.348460330172166685quantity
Calls: [4093 4082]
Puts: [4093 4082]
Returns a summary of all the quotes currently active on a certain market and time duration.
Name
Description
Sum Backing
Sum of all the token backing of all quotes currently active on the orderbook.
Sum Weight
Sum of the weights (another name for quantity) of all quotes currently active on the orderbook. For an individual quote, weight (quantity) is equal to token backing / (10 * premium) where 10 is the hardcoded leverage factor.
Calls
List of active calls on the orderbook, from least expensive (as a call) to most expensive.
Puts
List of active puts on the orderbook, from least expensive (as a put) to most expensive.