private void Process_Asset_List_Res()
        {
            ProtoOAAssetListRes args = Serializer.Deserialize <ProtoOAAssetListRes>(_processorMemoryStream);

            foreach (ProtoOAAsset asset in args.Assets)
            {
                TradingAccounts[args.ctidTraderAccountId].Assets[asset.assetId] = asset;

                string item = $"assetId: {asset.assetId}; " +
                              $"displayName: {asset.displayName}; " +
                              $"Name: {asset.Name}";

                Log.Info("ProtoOAAssetListRes:: " +
                         $"ctidTraderAccountId: {args.ctidTraderAccountId}; " +
                         $"Asset: [{item}]");
            }

            Send(Symbol_Category_List_Req(args.ctidTraderAccountId));

            OnAssetListResReceived?.Invoke(args);
        }
Пример #2
0
        private void OnAssetListResponse(ProtoOAAssetListRes e, string clientMsgId)
        {
            var streamMessage = new StreamMessage <ProtoOAAssetListRes>(e, clientMsgId);

            _assetListResponseStream.OnNext(streamMessage);
        }