Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IPerpsTraderViews

Git Source

Compact trader-facing read surface for the simplified perps product API.

Functions

getTraderAccount

function getTraderAccount(
    bytes32 accountId
) external view returns (PerpsViewTypes.TraderAccountView memory viewData);

getPosition

function getPosition(
    bytes32 accountId
) external view returns (PerpsViewTypes.PositionView memory viewData);

getPendingOrders

function getPendingOrders(
    bytes32 accountId
) external view returns (PerpsViewTypes.PendingOrderView[] memory pending);

isLiquidatable

function isLiquidatable(
    bytes32 accountId
) external view returns (bool);