How to use the command line interface

Query Market

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

Usage

$ mtcli query microtick market <market_id>

Market: ETHUSD
Consensus: 175.347520285087423841spot
Orderbooks: [
 5minute:
   Sum Backing: 100.000000000000000000fox
   Sum Weight: 78.500695070693867129quantity
   Inside Call: 0.150937412756288079premium
   Inside Put: 0.082162848243711921premium
 15minute:
   Sum Backing: 100.000000000000000000fox
   Sum Weight: 40.385739121755683147quantity
   Inside Call: 0.237785669156288079premium
   Inside Put: 0.169011104643711921premium
 1hour:
   Sum Backing: 100.000000000000000000fox
   Sum Weight: 21.019260465082791351quantity
   Inside Call: 0.402512472556288079premium
   Inside Put: 0.333737908043711921premium
 4hour:
   Sum Backing: 100.000000000000000000fox
   Sum Weight: 9.864092151377268733quantity
   Inside Call: 0.847975753056288079premium
   Inside Put: 0.779201188543711921premium
 12hour:
   Sum Backing: 100.000000000000000000fox
   Sum Weight: 5.695101767334425342quantity
   Inside Call: 1.429551408356288080premium
   Inside Put: 1.374772868943711921premium]
Sum Backing: 500.000000000000000000fox
Sum Weight: 155.464888576244035702quantity

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.

Output

Name

Description

Market

Market name that was queried

Consensus

Current consensus spot price

Sum Backing

Sum of all the token backing of all quotes currently active on the market, or the orderbook. Note that the sum of the backing of the orderbooks will add up to the total market backing.

Sum Weight

Sum of the weights (another name for quantity) of all quotes currently active on the market or the orderbook. Note that the sum of the weights of the orderbooks will add up to the total market weight. For an individual quote, weight (quantity) is equal to token backing / (10 * premium) where 10 is the hardcoded leverage factor.

Inside Call

Best call price for all of the quotes at the current market consensus spot for a given orderbook.

Inside Put

Best put price for all of the quotes at the current market consensus spot for a given orderbook.