I’m using Binance Proxy. The steps are slightly different for docker and non-docker uses. I’ll give the steps for both
Docker
Add this to your docker-compose.yml
binance_proxy:
image: stash86/binance-proxy:latest
container_name: binance_proxy
restart: unless-stopped
ports:
- "127.0.0.1:8090:8090"
- "127.0.0.1:8091:8091"Then use this setting in your config for spot market
{
"exchange": {
"ccxt_config": {
"enableRateLimit": false,
"urls": {
"api": {
"public": "http://binance_proxy:8090/api/v3"
}
}
},
"ccxt_async_config": {
"enableRateLimit": false
},
}
}For futures market, the api urls is slightly different
{
"exchange": {
"ccxt_config": {
"enableRateLimit": false,
"urls": {
"api": {
"fapiPublic": "http://binance_proxy:8091/fapi/v1"
}
}
},
"ccxt_async_config": {
"enableRateLimit": false
},
}
}Non-Docker
First, download the pre-compiled binary for the architecture of your choice from here. Then extract and run them
tar -xf <downloaded binary full name> -C /usr/local/bin
# example
# tar -xf binance-proxy_1.2.4_Linux_x86_64.tar.gz -C /usr/local/bin
binance-proxyThen the config is similar as above, changing binance_proxy and binance_proxy_futures to 127.0.0.1. Spot config will look like this
{
"exchange": {
"ccxt_config": {
"enableRateLimit": false,
"urls": {
"api": {
"public": "http://127.0.0.1:8090/api/v3"
}
}
},
"ccxt_async_config": {
"enableRateLimit": false
},
}
}Futures config will look like this
{
"exchange": {
"ccxt_config": {
"enableRateLimit": false,
"urls": {
"api": {
"fapiPublic": "http://127.0.0.1:8091/fapi/v1"
}
}
},
"ccxt_async_config": {
"enableRateLimit": false
},
}
}
[…] Set up binance proxy […]