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:
Name Type Description positionId uint256 The ID of the position to close. Return Values:
Name Type Description [0] struct ClosePositionInfo The closed position.
claimPosition
function claimPosition(uint256 positionId, address recipient, bytes data) external
Claims a closed position in the market.
Parameters:
Name Type Description positionId uint256 The ID of the position to claim. recipient address The address of the recipient of the claimed position. data bytes Additional data for the claim callback.