JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.04k stars 427 forks source link

Binance RestClient: Error "You are not authorized to execute this request." when calling ConvertQuoteRequestAsync #1343

Open jaggyma opened 7 months ago

jaggyma commented 7 months ago

Bug I am using the BinanceRestClient. The SpotApi.Trading.PlaceOrderAsync works well but when using SpotApi.Trading.ConvertQuoteRequestAsync I get the Error "-1002: You are not authorized to execute this request." even though all permissions are set in the API.

To Reproduce Call SpotApi.Trading.ConvertQuoteRequestAsync("Symbol1", "Symbol2", 0.01m, null, WalletType.Spot, null, null, default)

Expected behavior Get a successful result.

andresdrb commented 1 month ago

That’s not a bug. You have to explicitly request access to the convert API https://developers.binance.com/docs/convert/Introduction#:~:text=Would%20you%20like%20to%20have,we%20have%20approved%20your%20application.