I have the same problem when wanting to consume a C # DLL where an API is called within that DLL, has someone found a solution?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I tried fetching total Balance from Binance API in C# using glitch100/BinanceDotNet library with some modifications (like converting those data members from private to public static)
The purpose of this is to be called by an MQL5 function for MT5 usage
My C# code for the DLL is somewhat like this:
I am really clueless about what this is & how to resolve it.
This code is the problematic part (but it is working fine when built as EXE as in the GitHub page of glitch100/BinanceDotNet/BinanceExchange.Console/ExampleProgram.cs)
client.GetAccountInformation(3500).Result.Balances.ForEach(k => { total_free_balance += k.Free; });