Jump to content

chriss

Members
  • Content count

    9
  • Joined

  • Last visited


Reputation Activity

  1. Thanks
    chriss reacted to Physicsman in Aggregating Historical Trades Via ApiTradeHistoryDTO   
    Hi Chris,
    The task is currently scheduled in the Sprint for the period 20th Oct through 2nd Nov.
    Kind Regards, PM
  2. Like
    chriss reacted to Ynor in .Net C# Lightstreamer Demo   
    For future reference:
    1. First, download the proper Lightstreamer client demo:
    https://github.com/Lightstreamer/Lightstreamer-example-Quickstart-client-dotnet/tree/for_version_4
    2. Download the following nuget packages :

    Some things to note:
    Make sure the version for Lightstreamer client is 4.0.0 (this is the only version that the Forex Servers are currently working with). In this demo I am using the latest logging service (NLog 4.7.4) -- this is the one that Lightstreamer is currently using in their version 5+ demos. You will need to make sure your Wrapper class is also the latest version.  This works with .NET Core 3.0 and previous .net framework versions. 3. Setup your client and subscription.
    This is the C# code to setup and connect to the Prices streaming server:

     
    Regards,
     
    Rony
     
     
     
     
  3. Like
    chriss got a reaction from jflaggs in Aggregating Historical Trades Via ApiTradeHistoryDTO   
    I am seeing the same behaviour from tradehistory.
    When I make a call like this in C#:
    string requestString = serverBaseURL + string.Format("/order/tradehistory?TradingAccountId={0}&maxResults=500&from={1}", tradingAccountId, unixTimestamp);
    Where unixTimestamp = 1584955458 (equivalent to approx 23/3/2020)
    I always get the last 200 trades. It appears that the "from" parameter is ignored. The trading account ID I'm using is correct as I got that from a call to /useraccount/ClientAndTradingAccount. And this code used to work as I previously used it to back-populate some trade history into an Excel sheet.
    Kind Regards
    Chris.
  4. Thanks
    chriss got a reaction from Physicsman in Aggregating Historical Trades Via ApiTradeHistoryDTO   
    Hi PM
    I did supply the TradingAccountID parameter. The C# code is:
    string requestString = serverBaseURL + string.Format("/order/tradehistory?TradingAccountId={0}&maxResults=500&from={1}", tradingAccountId, unixTimestamp);
    Kind Regards
    Chris.
×