IPerpsV2MarketViews¶
Description¶
Source: contracts/interfaces/IPerpsV2MarketViews.sol
Views¶
accessibleMargin
¶
Details
Signature
accessibleMargin(address account) view returns (uint256 marginAccessible, bool invalid)
Visibility
external
State Mutability
view
accruedFunding
¶
Details
Signature
accruedFunding(address account) view returns (int256 funding, bool invalid)
Visibility
external
State Mutability
view
assetPrice
¶
Details
Signature
assetPrice() view returns (uint256 price, bool invalid)
Visibility
external
State Mutability
view
baseAsset
¶
Details
Signature
baseAsset() view returns (bytes32 key)
Visibility
external
State Mutability
view
canLiquidate
¶
Details
Signature
canLiquidate(address account) view returns (bool)
Visibility
external
State Mutability
view
currentFundingRate
¶
Details
Signature
currentFundingRate() view returns (int256 fundingRate)
Visibility
external
State Mutability
view
currentFundingVelocity
¶
Details
Signature
currentFundingVelocity() view returns (int256 fundingVelocity)
Visibility
external
State Mutability
view
delayedOrders
¶
Details
Signature
delayedOrders(address account) view returns (struct IPerpsV2MarketBaseTypes.DelayedOrder)
Visibility
external
State Mutability
view
fillPrice
¶
Details
Signature
fillPrice(int256 sizeDelta) view returns (uint256 price, bool invalid)
Visibility
external
State Mutability
view
fundingLastRecomputed
¶
Details
Signature
fundingLastRecomputed() view returns (uint32 timestamp)
Visibility
external
State Mutability
view
fundingRateLastRecomputed
¶
Details
Signature
fundingRateLastRecomputed() view returns (int128 fundingRate)
Visibility
external
State Mutability
view
fundingSequence
¶
Details
Signature
fundingSequence(uint256 index) view returns (int128 netFunding)
Visibility
external
State Mutability
view
fundingSequenceLength
¶
Details
Signature
fundingSequenceLength() view returns (uint256 length)
Visibility
external
State Mutability
view
isFlagged
¶
Details
Signature
isFlagged(address account) view returns (bool)
Visibility
external
State Mutability
view
liquidationFee
¶
Details
Signature
liquidationFee(address account) view returns (uint256)
Visibility
external
State Mutability
view
liquidationPrice
¶
Details
Signature
liquidationPrice(address account) view returns (uint256 price, bool invalid)
Visibility
external
State Mutability
view
marketDebt
¶
Details
Signature
marketDebt() view returns (uint256 debt, bool isInvalid)
Visibility
external
State Mutability
view
marketKey
¶
Details
Signature
marketKey() view returns (bytes32 key)
Visibility
external
State Mutability
view
marketSize
¶
Details
Signature
marketSize() view returns (uint128 size)
Visibility
external
State Mutability
view
marketSizes
¶
Details
Signature
marketSizes() view returns (uint256 long, uint256 short)
Visibility
external
State Mutability
view
marketSkew
¶
Details
Signature
marketSkew() view returns (int128 skew)
Visibility
external
State Mutability
view
notionalValue
¶
Details
Signature
notionalValue(address account) view returns (int256 value, bool invalid)
Visibility
external
State Mutability
view
orderFee
¶
Details
Signature
orderFee(int256 sizeDelta, enum IPerpsV2MarketBaseTypes.OrderType orderType) view returns (uint256 fee, bool invalid)
Visibility
external
State Mutability
view
positions
¶
Details
Signature
positions(address account) view returns (struct IPerpsV2MarketBaseTypes.Position)
Visibility
external
State Mutability
view
postTradeDetails
¶
Details
Signature
postTradeDetails(int256 sizeDelta, uint256 tradePrice, enum IPerpsV2MarketBaseTypes.OrderType orderType, address sender) view returns (uint256 margin, int256 size, uint256 price, uint256 liqPrice, uint256 fee, enum IPerpsV2MarketBaseTypes.Status status)
Visibility
external
State Mutability
view
profitLoss
¶
Details
Signature
profitLoss(address account) view returns (int256 pnl, bool invalid)
Visibility
external
State Mutability
view
remainingMargin
¶
Details
Signature
remainingMargin(address account) view returns (uint256 marginRemaining, bool invalid)
Visibility
external
State Mutability
view
unrecordedFunding
¶
Details
Signature
unrecordedFunding() view returns (int256 funding, bool invalid)
Visibility
external
State Mutability
view