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.

    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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      69 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      42 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      24 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      27 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      54 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X