addPair

addPair

function addPair(
    address base,
    address quote,
    uint256 listingPrice,
    uint256 listingTime
) external returns (address book)
Creates an orderbook for a new trading pair and returns its address.

Parameters

NameTypeDescription

base

address

Address of the base asset for the trading pair.

quote

address

Address of the quote asset for the trading pair.

listingPrice

uint256

The price to start trading at the market rate

listingTime

uint256

The timestamp to start trading

Returns

  • address book if the order was successfully executed, otherwise it throws error.

Last updated