How to use the command line interface

Withdraw Quote

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 tx microtick withdraw <quote id> [backing amount]

Description

Withdraws backing from a quote and adjusts the corresponding quantity and consensus weighted average. Only the quote provider can withdraw  backing from the quote.

Quote Invariants

There are restrictions involved when depositing or withdrawing backing for a quote. These are called the "2x Invariants" and are as follows:

  • Spot 2x limitation.  A quote cannot be updated such that it will become a free call or put on the resulting order book. This protects the party placing the quote as well as limits the spot to be within 2x of the quoted premium of the resultant consensus.