Пример #1
0
        public void Delete(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

                int _status = m_client.Invoke(0, 0, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #2
0
        public void WriteFullDump(string path)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteWString(path);

                int _status = m_client.Invoke(11, 3, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #3
0
        public void SetQueueThreshold(SoftFX.Lrp.LPtr handle, int newSize)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt32(newSize);

                int _status = m_client.Invoke(5, 11, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #4
0
        public void DispatchMessage(SoftFX.Lrp.LPtr handle, SoftFX.Extended.Core.FxMessage message)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteMessage(message);

                int _status = m_client.Invoke(3, 8, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #5
0
        public SoftFX.Lrp.LPtr Create()
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                int _status = m_client.Invoke(2, 0, buffer);
                TypesSerializer.Throw(_status, buffer);

                var _result = buffer.ReadLocalPointer();
                return(_result);
            }
        }
Пример #6
0
        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(10, 2, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #7
0
        public void UnsubscribeTradeTransactionReports(SoftFX.Lrp.LPtr handle, uint timeoutInMilliseconds)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteUInt32(timeoutInMilliseconds);

                int _status = m_client.Invoke(7, 3, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #8
0
        public void SendTwoFactorResponse(SoftFX.Lrp.LPtr handle, SoftFX.Extended.TwoFactorReason reason, string otp)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteTwoFactorReason(reason);
                buffer.WriteAString(otp);

                int _status = m_client.Invoke(3, 10, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #9
0
        public void SetBoolean(SoftFX.Lrp.LPtr handle, string key, bool value)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteAString(key);
                buffer.WriteBoolean(value);

                int _status = m_client.Invoke(2, 3, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #10
0
        public void UnsubscribeQuotes(SoftFX.Lrp.LPtr handle, string[] symbols, uint timeoutInMilliseconds)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteStringArray(symbols);
                buffer.WriteUInt32(timeoutInMilliseconds);

                int _status = m_client.Invoke(5, 6, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Пример #11
0
        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);
            }
        }
Пример #12
0
        public string ToText(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadAString();
                return(_result);
            }
        }
Пример #13
0
        public SoftFX.Extended.CurrencyInfo[] GetCurrencies(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadCurrencyInfoArray();
                return(_result);
            }
        }
Пример #14
0
        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);
            }
        }
Пример #15
0
        public SoftFX.Extended.Data.FxOrder[] GetRecords(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadFxOrderArray();
                return(_result);
            }
        }
Пример #16
0
        public int TotalItems(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadInt32();
                return(_result);
            }
        }
Пример #17
0
        public SoftFX.Extended.Reports.DailyAccountSnapshotReport GetDailyAccountSnapshotReport(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadDailyAccountSnapshotReport();
                return(_result);
            }
        }
Пример #18
0
        public bool EndOfStream(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadBoolean();
                return(_result);
            }
        }
Пример #19
0
        public SoftFX.Extended.SymbolInfo[] SymbolsFromHandle(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.ReadSymbolInfoArray();
                return(_result);
            }
        }
Пример #20
0
        public SoftFX.Extended.TwoFactorAuth TwoFactorAuthFromHandle(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadTwoFactorAuth();
                return(_result);
            }
        }
Пример #21
0
        public int Shutdown(SoftFX.Lrp.LPtr instance)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(instance);

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

                var _result = buffer.ReadInt32();
                return(_result);
            }
        }
Пример #22
0
        public SoftFX.Extended.ExecutionReport ExecutionReportFromHandle(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadExecutionReport();
                return(_result);
            }
        }
Пример #23
0
        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);
            }
        }
Пример #24
0
        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, 3, buffer);
                TypesSerializer.Throw(_status, buffer);

                var _result = buffer.ReadTradeTransactionReport();
                return(_result);
            }
        }
Пример #25
0
        public void GetLogoutInfoFromHandle(SoftFX.Lrp.LPtr handle, out string text, out SoftFX.Extended.LogoutReason reason, out int code)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                text   = buffer.ReadAString();
                reason = buffer.ReadLogoutReason();
                code   = buffer.ReadInt32();
            }
        }
Пример #26
0
        public SoftFX.Lrp.LPtr Create(string name, string connectionString)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteAString(name);
                buffer.WriteAString(connectionString);

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

                var _result = buffer.ReadLocalPointer();
                return(_result);
            }
        }
Пример #27
0
        public bool WaitForLogon(SoftFX.Lrp.LPtr handle, uint timeoutInMilliseconds)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteUInt32(timeoutInMilliseconds);

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

                var _result = buffer.ReadBoolean();
                return(_result);
            }
        }
Пример #28
0
        public SoftFX.Extended.SessionInfo GetSessionInfo(SoftFX.Lrp.LPtr handle, uint timeoutInMilliseconds)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteUInt32(timeoutInMilliseconds);

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

                var _result = buffer.ReadSessionInfo();
                return(_result);
            }
        }
Пример #29
0
        public int GetQuotesHistoryVersion(SoftFX.Lrp.LPtr handle, uint timeoutInMilliseconds)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteUInt32(timeoutInMilliseconds);

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

                var _result = buffer.ReadInt32();
                return(_result);
            }
        }
Пример #30
0
        public bool GetNextMessage(SoftFX.Lrp.LPtr handle, out SoftFX.Extended.Core.FxMessage meessage)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                meessage = buffer.ReadMessage();
                var _result = buffer.ReadBoolean();
                return(_result);
            }
        }