How to use the command line interface

Query Quote

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 quote <quote_id>

$ mtcli query microtick quote 4093
Quote Id: 4093
Provider: cosmos1a5ylxkr2gu7dz0aj6dpe7ly0c3t70rm73md5p3
Market: ETHUSD
Duration: 5minute
Backing: 50.000000000000000000fox
Spot: 173.902746020000000000spot
Premium: 0.067706824000000000premium
Quantity: 73.847800038589906388quantity
PremiumAsCall: 0.040435442512983294premium
PremiumAsPut: 0.094978205487016706premium
Modified: 2019-10-03 18:35:37.617900083 +0000 UTC
CanModify: 2019-10-03 18:36:07.617900083 +0000 UTC

Description

Returns the static and dynamic quote parameters for a particular quote ID. This command does not return historical quote updates or old quote IDs -those must be queried using Tendermint search.

Output

Name

Description

Quote ID

Unique quote ID being queried.

Provider

Account address of the quote provider (the market participant who created and is responsible for updating the quote.

Market

The market identifier of the market the quote was placed on.

Duration

The order book duration the quote was placed on.

Backing

The backing token amount the quote is backed by.

Spot

The quoted spot price. This parameter may be updated from time to time by the quote creator but does not change without an external transaction.

Premium

The quoted volatility premium. This parameter may be updated from time to time by the quote creator but does not change without an external transaction.

Quantity

Quantity is calculated from backing and premium by the following formula: Quantity = Backing / (Leverage * Premium) where Leverage is a constant, in this case 10 for all markets.

Premium as Call

Dynamic quantity calculated by discounting (or increasing) the quoted premium according to 1/2 the difference between the consensus price of the market and the quoted spot. This value changes with every change to the quoted spot, quoted premium, or dynamically as the market consensus price changes block-by-block.

Premium as Put

Dynamic quantity calculated by discounting (or increasing) the quoted premium according to 1/2 the difference between the quoted spot and the consensus price of the market. This value changes with every change to the quoted spot, quoted premium, or dynamically as the market consensus price changes block-by-block.

Modified

Timestamp of the last modification time of the quote.

Can Modify

Timestamp after which the quote may be modified again. The time period where a quote is frozen is set in the genesis block.