aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Type Alias ApiPerpetualsPreviewEditCollateralBody

    ApiPerpetualsPreviewEditCollateralBody: {
        collateralChange: Balance;
        marketId: PerpetualsMarketId;
    } & (
        | { accountCapId?: ObjectId; accountId: PerpetualsAccountId }
        | { vaultId: ObjectId }
    )

    Request body for previewing a collateral allocation/deallocation for a given position.

    Type Declaration

    • collateralChange: Balance

      Collateral amount to allocate, deallocate, or change.

    • marketId: PerpetualsMarketId

      Market ID associated with the request.