Skip to main content

trading_params

Function trading_params 

Source
pub fn trading_params(info: &InstrumentInfo, category: &str) -> TradingParams
Expand description

The trading rules.

The quantity is in units of the base coin (0.001 BTC). lot_size is the quantity step and min_qty the smallest order, so a quantity is valid when it is a whole number of steps and not below the minimum. The value of one price step is the step itself: the contract is linear (one unit of the base coin pays one unit of the settle coin per unit of price), so a step of 0.10 moves one unit by 0.10 USDT.