ExecuteMsg: {
    update_config: {
        fee_pool?: string | null;
        initial_margin_ratio?: Uint128 | null;
        insurance_fund?: string | null;
        liquidation_fee?: Uint128 | null;
        maintenance_margin_ratio?: Uint128 | null;
        owner?: string | null;
        partial_liquidation_ratio?: Uint128 | null;
        tp_sl_spread?: Uint128 | null;
    };
} | {
    update_pauser: {
        pauser: string;
    };
} | {
    add_whitelist: {
        address: string;
    };
} | {
    remove_whitelist: {
        address: string;
    };
} | {
    open_position: {
        base_asset_limit: Uint128;
        leverage: Uint128;
        margin_amount: Uint128;
        side: Side;
        stop_loss?: Uint128 | null;
        take_profit: Uint128;
        vamm: string;
    };
} | {
    update_tp_sl: {
        position_id: number;
        stop_loss?: Uint128 | null;
        take_profit?: Uint128 | null;
        vamm: string;
    };
} | {
    close_position: {
        position_id: number;
        quote_asset_limit: Uint128;
        vamm: string;
    };
} | {
    trigger_tp_sl: {
        position_id: number;
        quote_asset_limit: Uint128;
        vamm: string;
    };
} | {
    liquidate: {
        position_id: number;
        quote_asset_limit: Uint128;
        vamm: string;
    };
} | {
    pay_funding: {
        vamm: string;
    };
} | {
    deposit_margin: {
        amount: Uint128;
        position_id: number;
        vamm: string;
    };
} | {
    withdraw_margin: {
        amount: Uint128;
        position_id: number;
        vamm: string;
    };
} | {
    set_pause: {
        pause: boolean;
    };
}

©2020 - 2023 Oraichain Foundation