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

    Interface PerpetualsWsUpdatesUserSubscriptionType

    Websocket subscription payload for subscribing to user/account updates, optionally including special-order (stop and TWAP order) data (via signature).

    interface PerpetualsWsUpdatesUserSubscriptionType {
        user: {
            accountId: bigint;
            withStopOrders:
                | { bytes: string; signature: string; walletAddress: string }
                | undefined;
        };
    }
    Index
    user: {
        accountId: bigint;
        withStopOrders:
            | { bytes: string; signature: string; walletAddress: string }
            | undefined;
    }

    User subscription discriminator and payload.

    Type Declaration

    • accountId: bigint

      Perpetuals account ID to subscribe to.

    • withStopOrders: { bytes: string; signature: string; walletAddress: string } | undefined

      Optional signed request for stop and TWAP order data.