Function mango_v4::mango_v4::perp_create_market
source · pub fn perp_create_market(
ctx: Context<'_, '_, '_, '_, PerpCreateMarket<'_>>,
perp_market_index: PerpMarketIndex,
name: String,
oracle_config: OracleConfigParams,
base_decimals: u8,
quote_lot_size: i64,
base_lot_size: i64,
maint_base_asset_weight: f32,
init_base_asset_weight: f32,
maint_base_liab_weight: f32,
init_base_liab_weight: f32,
maint_overall_asset_weight: f32,
init_overall_asset_weight: f32,
base_liquidation_fee: f32,
maker_fee: f32,
taker_fee: f32,
min_funding: f32,
max_funding: f32,
impact_quantity: i64,
group_insurance_fund: bool,
fee_penalty: f32,
settle_fee_flat: f32,
settle_fee_amount_threshold: f32,
settle_fee_fraction_low_health: f32,
settle_token_index: TokenIndex,
settle_pnl_limit_factor: f32,
settle_pnl_limit_window_size_ts: u64,
positive_pnl_liquidation_fee: f32,
platform_liquidation_fee: f32
) -> Result<()>
Expand description
Perps