Beispiel #1
0
        public void Clear(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);
            }
        }
Beispiel #2
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);
            }
        }
Beispiel #3
0
        public void EncodeFast(SoftFX.Lrp.LPtr handle, SoftFX.Extended.Quote[] quotes)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteQuoteArray(quotes);

                int _status = m_client.Invoke(0, 6, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #4
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);
            }
        }
Beispiel #5
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);
            }
        }
Beispiel #6
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);
            }
        }
Beispiel #7
0
        public void SendQuote(SoftFX.Lrp.LPtr handle, long id, LrpServer.Net.LrpQuote quote)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteQuote(quote);

                int _status = m_client.Invoke(1, 13, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #8
0
        public void SendQuotesSubscriptionConfirm(SoftFX.Lrp.LPtr handle, long id, string requestId)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteAString(requestId);

                int _status = m_client.Invoke(1, 10, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #9
0
        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, 19, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #10
0
        public void EndConnection(SoftFX.Lrp.LPtr handle, long id, int status)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteInt32(status);

                int _status = m_client.Invoke(1, 4, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #11
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);
            }
        }
Beispiel #12
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);
            }
        }
Beispiel #13
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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #15
0
        public void SendQuotesHistoryVersion(SoftFX.Lrp.LPtr handle, long id, string requestId, int version)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteAString(requestId);
                buffer.WriteInt32(version);

                int _status = m_client.Invoke(1, 12, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #16
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);
            }
        }
Beispiel #17
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);
            }
        }
Beispiel #18
0
        public long GetSize(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadInt64();
                return(_result);
            }
        }
Beispiel #19
0
        public SoftFX.Internal.FixSessionId[] GetSessions(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadFFixSessionIdArray();
                return(_result);
            }
        }
Beispiel #20
0
        public string Format(SoftFX.Lrp.LPtr handle)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);

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

                var _result = buffer.ReadAString();
                return(_result);
            }
        }
Beispiel #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);
            }
        }
Beispiel #22
0
        public void SendSymbolsInfo(SoftFX.Lrp.LPtr handle, long id, string requestId, LrpServer.Net.LrpSymbolInfo[] symbols)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteAString(requestId);
                buffer.WriteSymbolInfoArray(symbols);

                int _status = m_client.Invoke(1, 9, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #23
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);
            }
        }
Beispiel #24
0
        public void SendFileChunk(SoftFX.Lrp.LPtr handle, long id, string requestId, LrpServer.Net.LrpFileChunk chunk)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteAString(requestId);
                buffer.WriteFileChunk(chunk);

                int _status = m_client.Invoke(1, 18, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #25
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);
            }
        }
Beispiel #26
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);
            }
        }
Beispiel #27
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);
            }
        }
Beispiel #28
0
        public void SendDataHistoryResponse(SoftFX.Lrp.LPtr handle, long id, string requestId, LrpServer.Net.LrpDataHistoryResponse response)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteAString(requestId);
                buffer.WriteDataHistoryResponse(response);

                int _status = m_client.Invoke(1, 16, buffer);
                TypesSerializer.Throw(_status, buffer);
            }
        }
Beispiel #29
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);
            }
        }
Beispiel #30
0
        public void SendBusinessReject(SoftFX.Lrp.LPtr handle, long id, string rejectReason, string rejectTag)
        {
            using (MemoryBuffer buffer = m_client.Create())
            {
                buffer.WriteLocalPointer(handle);
                buffer.WriteInt64(id);
                buffer.WriteAString(rejectReason);
                buffer.WriteAString(rejectTag);

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