Loading [Contrib]/a11y/accessibility-menu.js
Skip to content

IFuturesMarket¶

Description¶

Source: contracts/interfaces/IFuturesMarket.sol

Views¶

accessibleMargin¶

Source

Details

Signature

accessibleMargin(address account) view returns (uint256 marginAccessible, bool invalid)

Visibility

external

State Mutability

view

accruedFunding¶

Source

Details

Signature

accruedFunding(address account) view returns (int256 funding, bool invalid)

Visibility

external

State Mutability

view

assetPrice¶

Source

Details

Signature

assetPrice() view returns (uint256 price, bool invalid)

Visibility

external

State Mutability

view

baseAsset¶

Source

Details

Signature

baseAsset() view returns (bytes32 key)

Visibility

external

State Mutability

view

canLiquidate¶

Source

Details

Signature

canLiquidate(address account) view returns (bool)

Visibility

external

State Mutability

view

currentFundingRate¶

Source

Details

Signature

currentFundingRate() view returns (int256 fundingRate)

Visibility

external

State Mutability

view

fundingLastRecomputed¶

Source

Details

Signature

fundingLastRecomputed() view returns (uint32 timestamp)

Visibility

external

State Mutability

view

fundingSequence¶

Source

Details

Signature

fundingSequence(uint256 index) view returns (int128 netFunding)

Visibility

external

State Mutability

view

fundingSequenceLength¶

Source

Details

Signature

fundingSequenceLength() view returns (uint256 length)

Visibility

external

State Mutability

view

liquidationFee¶

Source

Details

Signature

liquidationFee(address account) view returns (uint256)

Visibility

external

State Mutability

view

liquidationPrice¶

Source

Details

Signature

liquidationPrice(address account) view returns (uint256 price, bool invalid)

Visibility

external

State Mutability

view

marketDebt¶

Source

Details

Signature

marketDebt() view returns (uint256 debt, bool isInvalid)

Visibility

external

State Mutability

view

marketKey¶

Source

Details

Signature

marketKey() view returns (bytes32 key)

Visibility

external

State Mutability

view

marketSize¶

Source

Details

Signature

marketSize() view returns (uint128 size)

Visibility

external

State Mutability

view

marketSizes¶

Source

Details

Signature

marketSizes() view returns (uint256 long, uint256 short)

Visibility

external

State Mutability

view

marketSkew¶

Source

Details

Signature

marketSkew() view returns (int128 skew)

Visibility

external

State Mutability

view

notionalValue¶

Source

Details

Signature

notionalValue(address account) view returns (int256 value, bool invalid)

Visibility

external

State Mutability

view

orderFee¶

Source

Details

Signature

orderFee(int256 sizeDelta) view returns (uint256 fee, bool invalid)

Visibility

external

State Mutability

view

positions¶

Source

Details

Signature

positions(address account) view returns (uint64 id, uint64 fundingIndex, uint128 margin, uint128 lastPrice, int128 size)

Visibility

external

State Mutability

view

postTradeDetails¶

Source

Details

Signature

postTradeDetails(int256 sizeDelta, address sender) view returns (uint256 margin, int256 size, uint256 price, uint256 liqPrice, uint256 fee, enum IFuturesMarketBaseTypes.Status status)

Visibility

external

State Mutability

view

profitLoss¶

Source

Details

Signature

profitLoss(address account) view returns (int256 pnl, bool invalid)

Visibility

external

State Mutability

view

remainingMargin¶

Source

Details

Signature

remainingMargin(address account) view returns (uint256 marginRemaining, bool invalid)

Visibility

external

State Mutability

view

unrecordedFunding¶

Source

Details

Signature

unrecordedFunding() view returns (int256 funding, bool invalid)

Visibility

external

State Mutability

view

External Functions¶

cancelNextPriceOrder¶

Source

Details

Signature

cancelNextPriceOrder(address account)

Visibility

external

State Mutability

``

closePosition¶

Source

Details

Signature

closePosition()

Visibility

external

State Mutability

``

closePositionWithTracking¶

Source

Details

Signature

closePositionWithTracking(bytes32 trackingCode)

Visibility

external

State Mutability

``

executeNextPriceOrder¶

Source

Details

Signature

executeNextPriceOrder(address account)

Visibility

external

State Mutability

``

liquidatePosition¶

Source

Details

Signature

liquidatePosition(address account)

Visibility

external

State Mutability

``

modifyPosition¶

Source

Details

Signature

modifyPosition(int256 sizeDelta)

Visibility

external

State Mutability

``

modifyPositionWithTracking¶

Source

Details

Signature

modifyPositionWithTracking(int256 sizeDelta, bytes32 trackingCode)

Visibility

external

State Mutability

``

recomputeFunding¶

Source

Details

Signature

recomputeFunding() returns (uint256 lastIndex)

Visibility

external

State Mutability

``

submitNextPriceOrder¶

Source

Details

Signature

submitNextPriceOrder(int256 sizeDelta)

Visibility

external

State Mutability

``

submitNextPriceOrderWithTracking¶

Source

Details

Signature

submitNextPriceOrderWithTracking(int256 sizeDelta, bytes32 trackingCode)

Visibility

external

State Mutability

``

transferMargin¶

Source

Details

Signature

transferMargin(int256 marginDelta)

Visibility

external

State Mutability

``

withdrawAllMargin¶

Source

Details

Signature

withdrawAllMargin()

Visibility

external

State Mutability

``