I am trying to create an order programmatically on binance using golang. But kept on encountering this error: code 1013, PERCENT_PRICE_BY_SIDE. Cannot find anything on google about it or their documentation.
The error PERCENT_PRICE_BY_SIDE means that your buy request falls outside the acceptable price range based on the average of previous trades.
For a detailed explanation of this filter, you can refer to the filter documentation available here: Binance API Documentation
I would also suggest you to check the average price of BTCUSDT by using the NewAvgPriceService function.
This will help you select a valid purchase price within the acceptable range for BTCUSDT.