API Reference

get position of a trader

struct Position { 
    int256 size;
    uint256 margin;
    uint256 openNotional;
    int256 lastPremiumFraction;
    uint256 blockNumber;
}

function getPosition(address amm, address trader) external view returns(Position memory);

params

  • amm amm address
  • trader trader address