IVX DIEM =>structTradeInfo{uint256 optionID;uint256 amountContracts;//number of contracts to open}functionopenTrades(TradeInfo[]calldatatraded)external
The above function is called to open trades, it only requires that the user has an IVX Portfolio contract, and that it is not eligible for liquidation.
amount of contracts is a 1e18 number where 1e18 represents 1 contract to open, this allows for a huge fractional amount of contracts to be open.
optionID is given by the IVX Diem Token contract, that option attributes can be queried from