marketBuyETH
marketBuyETH
marketBuyETH
Parameters
Name
Type
Description
base
address
Address of the base asset for the trading pair.
isMaker
bool
Boolean indicating if an order should be made at the market price in the orderbook.
n
uint32
The maximum number of orders to match in the orderbook.
recipient
address
Address of recipient to receive funds from trading and ownership of placed order.
Value
This function requires ETH deposit as quote amount from msg.value
.
Returns
uint256 makePrice
: Price which was placed after matchinguint256 placed
: Remainder mount which is placed in order after matchinguint32 id
: Placed orderId after matching orders. The id is then used for canceling order.
Last updated