Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Am I correct that NT C# does NOT implement Websockets (for reading streaming prices)?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Am I correct that NT C# does NOT implement Websockets (for reading streaming prices)?

    I've come across this C# library implementing websockets, it seems to be included in ".NET Framework" which is what NT uses. Anyone know if I would be able to utilitise this external library from Ninja?

    A concrete implementation of the .Net Standard 2.0 System.Net.WebSockets.WebSocket abstract class Can target .NET 4.5 (or above) or .NET Standard 2.0 (or above) Works on any version of Windows (including Windows 7) as well as Linux as it does not use HTTP.sys. A WebSocket library that allows you to make WebSocket connections as a client or to respond to WebSocket requests as a server. You can safely pass around a general purpose WebSocket instance throughout your codebase without tying yourself strongly to this library. This is the same WebSocket abstract class used by .net core 2.0 and it allows for asynchronous Websocket communication for improved performance and scalability.

    #2
    Hello rhubear,

    Thank you for your post.

    You can use that in your projects, but you'd need to get the actual .DLL file and move it into the Custom folder in the NinjaTrader user folder along with any dependencies. You'd then need to add a reference to it and then you'd be able to use that in your projects.

    Here's a link to a thread on the forums here that goes into a little more detail on adding an external DLL you've gotten from nuget:

    What is the proper way to include a 3rd party nuget package to NinjaTrader. I tried to add the nuget package in the standard visual studio manner by adding


    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Tnx for quick reply. Will get DLL into Ninja & get back to with further questions. :-)

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      3 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      238 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      384 views
      1 like
      Last Post Gavini
      by Gavini
       
      Started by oviejo, Today, 12:28 AM
      0 responses
      4 views
      0 likes
      Last Post oviejo
      by oviejo
       
      Started by pechtri, 06-22-2023, 02:31 AM
      10 responses
      125 views
      0 likes
      Last Post Leeroy_Jenkins  
      Working...
      X