Skip to main content

ExchangeLibrary

TotalOpenInterestOutOfRange

error TotalOpenInterestOutOfRange()

TotalProductWeightOutOfRange

error TotalProductWeightOutOfRange()

getProductTotalLongUnchecked

function getProductTotalLongUnchecked(
struct ExchangeSchema schema,
ProductId id
) internal pure returns (
struct PositionPtr
)

getProductTotalShortUnchecked

function getProductTotalShortUnchecked(
struct ExchangeSchema schema,
ProductId id
) internal pure returns (
struct PositionPtr
)

totalOpenInterest

function totalOpenInterest(struct ExchangeSchema schema) internal view returns (FPUnsigned)

updateTotalOpenInterestIncrease

function updateTotalOpenInterestIncrease(struct ExchangeSchema schema, FPUnsigned value) internal

updateTotalOpenInterestDecrease

function updateTotalOpenInterestDecrease(struct ExchangeSchema schema, FPUnsigned value) internal

_setTotalOpenInterest

function _setTotalOpenInterest(struct ExchangeSchema schema, FPUnsigned value) internal

totalProductWeight

total exposure weights of all products

function totalProductWeight(struct ExchangeSchema schema) internal view returns (FPUnsigned)

updateTotalProductWeightIncrease

function updateTotalProductWeightIncrease(struct ExchangeSchema schema, FPUnsigned value) internal

updateTotalProductWeightDecrease

function updateTotalProductWeightDecrease(struct ExchangeSchema schema, FPUnsigned value) internal