adshao / go-binance

A Go SDK for Binance API
MIT License
1.48k stars 664 forks source link

Add missing StatusCode #534

Open lyqscmy opened 6 months ago

lyqscmy commented 6 months ago

Binance api return 4xx HTTP StatusCode represent client error, but the code and message not required in response body. So it would be better fill the StatusCode in APIError to provide more information.

adshao commented 5 months ago

Hi, could you give me an example about how to use the StatusCode?

chenjia404 commented 3 months ago

Hi, could you give me an example about how to use the StatusCode?

like 429

https://binance-docs.github.io/apidocs/futures/en/#limits