Here is what I am doing. I am creating a new ProviderApi Class by using the methods of existing Ninja Trader Adapter class. The order of steps I need to do is 1. Create Connection() using Connection Class 2. Execute any other methods like GetSymbolInfo() 3.DisConnect().
I had also created a Xunit testing to test these methods. While I'm trying to those methods Connect() is not working to establish the connection. And throwing this exception
Message: System.TypeInitializationException : The type initializer for '<Module>' threw an exception.
---- System.ArgumentNullException : Value cannot be null.
Parameter name: ptr
Please find attachements for the code and Exception details. And please let me know how can I fix it.
Thanks in advance.
Comment