本文整理汇总了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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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);
}
}
示例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;
}
}
示例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;
}
}