Subaccounts
Data feed of a subaccount. Data contains updates to the subaccount such as position, orders and fills updates.
Method Declaration
Python
# class `Subaccounts`
def subscribe(self, address: str, subaccount_number: int) -> Self
def unsubscribe(self, address: str, subaccount_number: int)
Unification Plan
Schema
The field id
is a string containing the subaccount ID (address and subaccount number). It is formattted as {address}/{subaccount-number}
.
The field contents
is serialized using the following schemas.
Messages
Initial | Update |
---|---|
SubaccountsInitialMessage | SubaccountsUpdateMessage * |