cancelOrders

cancelOrders

function cancelOrders(
        address[] memory base,
        address[] memory quote,
        bool[] memory isBid,
        uint32[] memory orderIds
    ) external returns (uint256[] memory refunded);
Cancels multiple orders in an orderbook by the given array of order IDs and order types.

Parameters

NameTypeDescription

base

address[] memory

Addresses of the base asset for the trading pair.

quote

address[] memory

Addresses of the quote asset for the trading pair.

isBid

bool[]

Boolean values to locate the order in bid and ask orders

orderId

uint256[] memory

The order ids to locate the order and cancel

Returns

  • uint256[] memory refunded : returned asset amounts. If isBid is true, returned asset is quote asset. If isBid is false, returned asset is base asset.

Last updated