function joinCompetition(
uint256 _competitionId, // ID of the competition to join
uint256 _expiration, // Signature expiration timestamp
bytes memory _signature // Backend signature for validation
) external
function openPosition(
uint256 collateralAmountUsdc, // Collateral to use (USDC, 6 decimals)
uint256 _acceptablePrice, // Max/min acceptable price (30 decimals)
uint256 _size, // Position size in USD (30 decimals)
uint256 _collateral, // Collateral for the position
bool _isLong, // true = long, false = short
uint256 _triggerPrice // Trigger price for limit orders (0 for market)
) external payable
function closePosition(
uint256 _acceptablePrice, // Acceptable execution price (30 decimals)
uint256 _sizeDelta, // Size to close (30 decimals, use position size for full close)
bool _isLong, // Position direction
uint256 _triggerPrice // 0 for market order
) external payable
function cancelOrder(
bytes32 _orderKey // The order key to cancel
) external payable