/// <summary>Update the account status</summary> private void HandleMsg(OutMsg.RequestAccountStatus req) { // Update the account status SendAccountStatus(); // Update the current and pending trades SendCurrentPositions(); SendPendingPositions(); }
/// <summary>Handle the request for account data</summary> private void HandleMsg(OutMsg.RequestAccountStatus req) { // Send the account info if the id matches. var acct = GetAccount(); if (!req.AccountId.HasValue() || req.AccountId == acct.Number.ToString()) { SendAccountStatus(); SendCurrentPositions(); SendPendingPositions(); } }