Unable to return Binance Spot account balances from DLL
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 agree to website policy and terms of use
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; });