interface AccountFeed { features ?: TradingFeatureSource ; getAccountPositions ( accountId : string , signal : AbortSignal , ) : Promise < readonly Position [] > ; getAccountSnapshot ( accountId : string , signal : AbortSignal , ) : Promise < AccountSnapshot > ; getExecutions ( query : AccountHistoryQuery , signal : AbortSignal , ) : Promise < readonly Execution [] > ; getOrderHistory ( query : AccountHistoryQuery , signal : AbortSignal , ) : Promise < readonly OrderHistoryEntry [] > ; listAccounts ( signal : AbortSignal ) : Promise < readonly TradingAccount [] > ; subscribeAccount ( accountId : string , onSnapshot : ( snapshot : AccountSnapshot ) => void , onError ?: ( error : unknown ) => void , ) : () => void ; } PropertiesOptional Readonlyfeatures MethodsOptionalget Account Positions getAccountPositions ( accountId : string , signal : AbortSignal , ) : Promise < readonly Position [] > Parameters accountId : string signal : AbortSignal Returns Promise < readonly Position [] > Optionalget Account Snapshot getAccountSnapshot ( accountId : string , signal : AbortSignal , ) : Promise < AccountSnapshot > Parameters accountId : string signal : AbortSignal Optionalsubscribe Account subscribeAccount ( accountId : string , onSnapshot : ( snapshot : AccountSnapshot ) => void , onError ?: ( error : unknown ) => void , ) : () => void Parameters accountId : string onSnapshot : ( snapshot : AccountSnapshot ) => void OptionalonError : ( error : unknown ) => void Returns () => void
The read half of a broker. Every member is optional because providers vary;
featuressays which are real, and a method without a declaration is unused.