Jump to content

Ynor

Members
  • Content count

    13
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Thanks
    Ynor reacted to Physicsman in Set Stop/Limit to a new trade   
    Hi Rony,
    Yes, mainly removing the TriggerPrice field. The list of permissable fields for a market order (trade) request is detailed at http://docs.labs.gaincapital.com/#Data Types/NewTradeOrderRequestDTO.htm. I've pasted an example below.
    Yes, US clients can send a market order (trade) request with attached stops and limits as I have done in the example below.
    Kind Regards, PM
    { "MarketId": 400723798, "Direction": "buy", "Quantity": 1000, "BidPrice": 106.174, "OfferPrice": 106.204, "AuditId": "ELU17236432", "TradingAccountId": 401843563, "PositionMethodId": 1, "IfDone": [ { "Stop": { "OrderId": null, "Direction": "sell", "Applicability": "gtc", "ExpiryDateTimeUTC": null, "Guaranteed": false, "TrailingDistance": 10, "Quantity": 1000, "TriggerPrice": null, "IfDone": [], "OcoOrder": null }, "Limit": { "OrderId": null, "Direction": "sell", "Applicability": "gtc", "ExpiryDateTimeUTC": null, "Quantity": 1000, "TriggerPrice": 106.704, "IfDone": [], "OcoOrder": null } } ], "Reference": "Origin601" }  
  2. Like
    Ynor got a reaction from Physicsman 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
    Ynor got a reaction from Physicsman 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
     
     
     
     
×