当前位置: 首页>>代码示例>>C#>>正文


C# SoftFX类代码示例

本文整理汇总了C#中SoftFX的典型用法代码示例。如果您正苦于以下问题:C# SoftFX类的具体用法?C# SoftFX怎么用?C# SoftFX使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SoftFX类属于命名空间,在下文中一共展示了SoftFX类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: WriteQuote

		public static void WriteQuote(this MemoryBuffer buffer, SoftFX.Extended.Quote arg)
		{
			buffer.WriteAString(arg.Symbol);
			buffer.WriteTime(arg.CreatingTime);
			buffer.WriteQuoteEntryArray(arg.Bids);
			buffer.WriteQuoteEntryArray(arg.Asks);
		}
开发者ID:ifzz,项目名称:FDK,代码行数:7,代码来源:TypesSerializer.cs

示例2: WriteFFixSessionIdArray

		public static void WriteFFixSessionIdArray(this MemoryBuffer buffer, SoftFX.Internal.FixSessionId[] arg)
		{
			buffer.WriteInt32(arg.Length);
			foreach(var element in arg)
			{
				buffer.WriteFFixSessionId(element);
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:8,代码来源:TypesSerializer.cs

示例3: WriteQuoteArray

		public static void WriteQuoteArray(this MemoryBuffer buffer, SoftFX.Extended.Quote[] arg)
		{
			buffer.WriteInt32(arg.Length);
			foreach(var element in arg)
			{
				buffer.WriteQuote(element);
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:8,代码来源:TypesSerializer.cs

示例4: Destructor

		public void Destructor(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(0, 1, buffer);
				TypesSerializer.Throw(_status, buffer);

			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:11,代码来源:FixCodec.cs

示例5: Next

		public void Next(SoftFX.Lrp.LPtr handle, uint timeoutInMilliseconds)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);
				buffer.WriteUInt32(timeoutInMilliseconds);

				int _status = m_client.Invoke(9, 1, buffer);
				TypesSerializer.Throw(_status, buffer);

			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:12,代码来源:Iterator.cs

示例6: SessionInfoFromHandle

		public SoftFX.Extended.SessionInfo SessionInfoFromHandle(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(1, 2, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadSessionInfo();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:Converter.cs

示例7: CurrenciesFromHandle

		public SoftFX.Extended.CurrencyInfo[] CurrenciesFromHandle(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(1, 0, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadCurrencyInfoArray();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:Converter.cs

示例8: GetTradeTransactionReport

		public SoftFX.Extended.Reports.TradeTransactionReport GetTradeTransactionReport(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(9, 2, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadTradeTransactionReport();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:Iterator.cs

示例9: NotificationFromHandle

		public SoftFX.Extended.Data.Notification NotificationFromHandle(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(0, 1, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadNotification();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:Handle.cs

示例10: Start

		public bool Start(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(3, 0, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadBoolean();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:ClientServer.cs

示例11: Serialize

		public string Serialize(SoftFX.Extended.Financial.Serialization.CalculatorData calc)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteCalculatorData(calc);

				int _status = m_client.Invoke(0, 0, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadAString();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:Serializer.cs

示例12: GetAccountInfo

		public SoftFX.Extended.AccountInfo GetAccountInfo(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(8, 0, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadAccountInfo();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:TradeCache.cs

示例13: SetDouble

		public void SetDouble(SoftFX.Lrp.LPtr handle, string key, double value)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);
				buffer.WriteAString(key);
				buffer.WriteDouble(value);

				int _status = m_client.Invoke(2, 2, buffer);
				TypesSerializer.Throw(_status, buffer);

			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:Params.cs

示例14: GetCount

		public long GetCount(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(0, 2, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadInt64();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:FixCodec.cs

示例15: GetPositions

		public SoftFX.Extended.Position[] GetPositions(SoftFX.Lrp.LPtr handle)
		{
			using(MemoryBuffer buffer = m_client.Create())
			{
				buffer.WriteLocalPointer(handle);

				int _status = m_client.Invoke(8, 2, buffer);
				TypesSerializer.Throw(_status, buffer);

				var _result = buffer.ReadPositionArray();
				return _result;
			}
		}
开发者ID:ifzz,项目名称:FDK,代码行数:13,代码来源:TradeCache.cs


注:本文中的SoftFX类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。