binance-exchange / binance-java-api

binance-java-api is a lightweight Java library for the Binance API, supporting synchronous and asynchronous requests, as well as event streaming using WebSockets.
MIT License
834 stars 627 forks source link

Be able to change the base url #435

Open mmaryo opened 1 year ago

mmaryo commented 1 year ago

Hello

I need to change binance base url (for call a proxy)

The code uses a static class that does not make able to override the default base URL

Inside BinanceApiServiceGenerator:

    if (!BinanceApiConfig.useTestnet) { baseUrl = BinanceApiConfig.getApiBaseUrl(); }

Do you plan to make it configurable?