Closed Polotenec closed 2 years ago
The SpotAccountTrade
constructor is invoked incorrectly. The signature of the constructor above is
public SpotAccountTrade(HttpClient httpClient, string baseUrl = DEFAULT_SPOT_BASE_URL, string apiKey = null, string apiSecret = null)
Therefore, the second and third parameters passed are assigned to baseUrl
and apiKey
arguments respectively. I suggest the following amendment to the code above
var spotAccountTrade = new SpotAccountTrade(httpClient, apiKey: apiKey, apiSecret: apiSecret);
It didn’t work with the test order, but now everything is fine with getting the account information. I took the code I wrote above from your example file. And nothing worked when defining SpotAccountTrade
Description
namespace Binance.Spot.MarketExamples { using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Binance.Common; using Binance.Spot; using Binance.Spot.Models; using Microsoft.Extensions.Logging;
/System.ArgumentNullException: "String reference not set to an instance of a String. Arg_ParamName_Name"/
}