public static void WriteBarArray(this MemoryBuffer buffer, LrpServer.Net.LrpBar[] arg) { buffer.WriteInt32(arg.Length); foreach(var element in arg) { buffer.WriteBar(element); } }
public static void WriteBar(this MemoryBuffer buffer, LrpServer.Net.LrpBar arg) { buffer.WriteDouble(arg.Open); buffer.WriteDouble(arg.Close); buffer.WriteDouble(arg.High); buffer.WriteDouble(arg.Low); buffer.WriteDouble(arg.Volume); buffer.WriteTime(arg.From); }
public static void WriteDataHistoryRequest(this MemoryBuffer buffer, LrpServer.Net.LrpDataHistoryRequest arg) { buffer.WriteAString(arg.Symbol); buffer.WriteTime(arg.Time); buffer.WriteInt32(arg.BarsNumber); buffer.WriteInt32(arg.PriceType); buffer.WriteAString(arg.GraphPeriod); buffer.WriteInt32(arg.ReportType); buffer.WriteInt32(arg.GraphType); }
public SoftFX.Lrp.LPtr Constructor(LrpServer.Net.LrpParams parameters) { using(MemoryBuffer buffer = m_client.Create()) { buffer.WriteLrpParams(parameters); int _status = m_client.Invoke(2, 0, buffer); TypesSerializer.Throw(_status, buffer); var _result = buffer.ReadLocalPointer(); return _result; } }
public static void WriteQuoteEntry(this MemoryBuffer buffer, LrpServer.Net.LrpQuoteEntry arg) { buffer.WriteDouble(arg.Price); buffer.WriteDouble(arg.Volume); }
public static void WriteCurrencyInfo(this MemoryBuffer buffer, LrpServer.Net.LrpCurrencyInfo arg) { buffer.WriteAString(arg.Name); buffer.WriteAString(arg.Description); buffer.WriteInt32(arg.SortOrder); buffer.WriteInt32(arg.Precision); }
public static void WriteCurrencyInfoArray(this MemoryBuffer buffer, LrpServer.Net.LrpCurrencyInfo[] arg) { buffer.WriteInt32(arg.Length); foreach(var element in arg) { buffer.WriteCurrencyInfo(element); } }
public void SendSessionInfo(long id, string requestId, LrpServer.Net.LrpSessionInfo sessionInfo) { this.Instance.SendSessionInfo(this.Handle, id, requestId, sessionInfo); }
public static void WriteSymbolInfo(this MemoryBuffer buffer, LrpServer.Net.LrpSymbolInfo arg) { buffer.WriteAString(arg.Name); buffer.WriteAString(arg.Currency); buffer.WriteAString(arg.SettlementCurrency); buffer.WriteDouble(arg.ContractMultiplier); buffer.WriteInt32(arg.Precision); buffer.WriteDouble(arg.RoundLot); buffer.WriteDouble(arg.MinTradeVolume); buffer.WriteDouble(arg.MaxTradeVolume); buffer.WriteDouble(arg.TradeVolumeStep); buffer.WriteProfitCalcMode(arg.ProfitCalcMode); buffer.WriteMarginCalcMode(arg.MarginCalcMode); buffer.WriteDouble(arg.MarginHedge); buffer.WriteInt32(arg.MarginFactor); buffer.WriteNullDouble(arg.MarginFactorFractional); buffer.WriteInt32(arg.Color); buffer.WriteCommissionType(arg.CommissionType); buffer.WriteCommissionChargeType(arg.CommissionChargeType); buffer.WriteCommissionChargeMethod(arg.CommissionChargeMethod); buffer.WriteDouble(arg.LimitsCommission); buffer.WriteDouble(arg.Commission); buffer.WriteNullDouble(arg.SwapSizeShort); buffer.WriteNullDouble(arg.SwapSizeLong); buffer.WriteBoolean(arg.IsTradeEnabled); buffer.WriteInt32(arg.GroupSortOrder); buffer.WriteInt32(arg.SortOrder); buffer.WriteInt32(arg.CurrencySortOrder); buffer.WriteInt32(arg.SettlementCurrencySortOrder); buffer.WriteInt32(arg.CurrencyPrecision); buffer.WriteInt32(arg.SettlementCurrencyPrecision); }
public static void WriteMarginCalcMode(this MemoryBuffer buffer, LrpServer.Net.LrpMarginCalcMode arg) { buffer.WriteInt32((int)arg); }
public static void WriteCommissionType(this MemoryBuffer buffer, LrpServer.Net.LrpCommissionType arg) { buffer.WriteInt32((int)arg); }
public static void WriteDataHistoryResponse(this MemoryBuffer buffer, LrpServer.Net.LrpDataHistoryResponse arg) { buffer.WriteTime(arg.FromAll); buffer.WriteTime(arg.ToAll); buffer.WriteTime(arg.From); buffer.WriteTime(arg.To); buffer.WriteAString(arg.LastTickId); buffer.WriteBarArray(arg.Bars); buffer.WriteAStringArray(arg.Files); }
public static void WriteLrpParams(this MemoryBuffer buffer, LrpServer.Net.LrpParams arg) { buffer.WriteBoolean(arg.EnableCodec); buffer.WriteBoolean(arg.ValidateCodec); buffer.WriteInt32(arg.ThreadsNumber); buffer.WriteInt32(arg.MessagesNumberLimit); buffer.WriteInt32(arg.MessagesSizeLimit); buffer.WriteInt32(arg.HandshakeTimeout); buffer.WriteInt32(arg.HeartbeatTimeout); buffer.WriteAString(arg.LogPath); }
public void SendCurrenciesInfo(long id, string requestId, LrpServer.Net.LrpCurrencyInfo[] currencies) { this.Instance.SendCurrenciesInfo(this.Handle, id, requestId, currencies); }
public static void WriteQuoteEntryArray(this MemoryBuffer buffer, LrpServer.Net.LrpQuoteEntry[] arg) { buffer.WriteInt32(arg.Length); foreach(var element in arg) { buffer.WriteQuoteEntry(element); } }
public void SendSymbolsInfo(long id, string requestId, LrpServer.Net.LrpSymbolInfo[] symbols) { this.Instance.SendSymbolsInfo(this.Handle, id, requestId, symbols); }
public void SendNotification(long id, LrpServer.Net.LrpNotification notification) { this.Instance.SendNotification(this.Handle, id, notification); }
public void SendFileChunk(long id, string requestId, LrpServer.Net.LrpFileChunk chunk) { this.Instance.SendFileChunk(this.Handle, id, requestId, chunk); }
public void SendDataHistoryResponse(long id, string requestId, LrpServer.Net.LrpDataHistoryResponse response) { this.Instance.SendDataHistoryResponse(this.Handle, id, requestId, response); }
public void SendQuote(long id, LrpServer.Net.LrpQuote quote) { this.Instance.SendQuote(this.Handle, id, quote); }
public static void WriteQuote(this MemoryBuffer buffer, LrpServer.Net.LrpQuote arg) { buffer.WriteAString(arg.Symbol); buffer.WriteTime(arg.CreatingTime); buffer.WriteQuoteEntryArray(arg.Bids); buffer.WriteQuoteEntryArray(arg.Asks); buffer.WriteAString(arg.Id); }
public LocalChannelsPoolProxy(LocalClient client, LrpServer.Net.LrpParams parameters) { this.Instance = new LocalChannelsPoolRaw(client); this.Handle = this.Instance.Constructor(parameters); }
public static void WriteFileChunk(this MemoryBuffer buffer, LrpServer.Net.LrpFileChunk arg) { buffer.WriteInt32(arg.ChunksNumber); buffer.WriteInt32(arg.FileSize); buffer.WriteAString(arg.FileName); buffer.WriteUInt8Array(arg.Data); }
public static void WriteNotificationType(this MemoryBuffer buffer, LrpServer.Net.LrpNotificationType arg) { buffer.WriteInt32((int)arg); }
public static void WriteNotification(this MemoryBuffer buffer, LrpServer.Net.LrpNotification arg) { buffer.WriteSeverity(arg.Severity); buffer.WriteNotificationType(arg.Type); buffer.WriteAString(arg.Text); buffer.WriteDouble(arg.Balance); buffer.WriteDouble(arg.TransactionAmount); buffer.WriteAString(arg.TransactionCurrency); }
public static void WriteSeverity(this MemoryBuffer buffer, LrpServer.Net.LrpSeverity arg) { buffer.WriteInt32((int)arg); }
public static void WriteSessionStatus(this MemoryBuffer buffer, LrpServer.Net.LrpSessionStatus arg) { buffer.WriteInt32((int)arg); }
public static void WriteLrpSessionInfo(this MemoryBuffer buffer, LrpServer.Net.LrpSessionInfo arg) { buffer.WriteAString(arg.TradingSessionId); buffer.WriteSessionStatus(arg.Status); buffer.WriteInt32(arg.ServerTimeZoneOffset); buffer.WriteAString(arg.PlatformName); buffer.WriteAString(arg.PlatformCompany); buffer.WriteTime(arg.StartTime); buffer.WriteTime(arg.OpenTime); buffer.WriteTime(arg.CloseTime); buffer.WriteTime(arg.EndTime); }
public static void WriteCommissionChargeMethod(this MemoryBuffer buffer, LrpServer.Net.LrpCommissionChargeMethod arg) { buffer.WriteInt32((int)arg); }
public void SendNotification(SoftFX.Lrp.LPtr handle, long id, LrpServer.Net.LrpNotification notification) { using(MemoryBuffer buffer = m_client.Create()) { buffer.WriteLocalPointer(handle); buffer.WriteInt64(id); buffer.WriteNotification(notification); int _status = m_client.Invoke(1, 16, buffer); TypesSerializer.Throw(_status, buffer); } }