Closed iDomas closed 2 years ago
Unable to reproduce.
Can you provide more details regarding your dotnet environment? (Run dotnet --info
)
.NET SDK (reflecting any global.json):
Version: 6.0.100
Commit: 9e8b04bbff
Runtime Environment:
OS Name: Mac OS X
OS Version: 12.0
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.100/
Host (useful for support):
Version: 6.0.0
Commit: 4822e3c3aa
.NET SDKs installed:
6.0.100 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Still unable to reproduce.
Can you try to reproduce the issue in it's simplest form as below?
using Binance.Spot;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/wallet", async () => {
Wallet wallet = new Wallet(baseUrl: "https://api.binance.com", apiKey: null, apiSecret: null);
string s = await wallet.SystemStatus();
return s;
});
app.Run();
I tried and got response below:
{"status":0,"msg":"normal"}
Thanks, I believe it was on my side then. But not sure what :/
EDIT: also I used testnet API, can be this a problem? So I tried on testnet API (https://testnet.binance.vision) and got an error
The SystemStatus endpoint is /sapi/v1/system/status
, which is not supported by the SPOT Testnet, only /api/*
endpoints are supported.
Will improve the exception thrown to provide more context regarding the response from the server.
Hello, can not get system status, getting this error
Here is code I Wrote:
and Porgram.cs: