Skip to main content

IMarketTradeClosePosition.sol

IMarketTradeClosePosition

Interface for closing and claiming positions in a market.

closePosition

function closePosition(uint256 positionId) external returns (struct ClosePositionInfo)

Closes a position in the market.

  • Parameters:

    NameTypeDescription
    positionIduint256The ID of the position to close.
  • Return Values:

    NameTypeDescription
    [0]struct ClosePositionInfoThe closed position.

claimPosition

function claimPosition(uint256 positionId, address recipient, bytes data) external

Claims a closed position in the market.

  • Parameters:

    NameTypeDescription
    positionIduint256The ID of the position to claim.
    recipientaddressThe address of the recipient of the claimed position.
    databytesAdditional data for the claim callback.