Update proxy documentation to correspond to new ccxt mode
This commit is contained in:
@@ -682,16 +682,14 @@ To use a proxy for exchange connections - you will have to define the proxies as
|
|||||||
{
|
{
|
||||||
"exchange": {
|
"exchange": {
|
||||||
"ccxt_config": {
|
"ccxt_config": {
|
||||||
"aiohttp_proxy": "http://addr:port",
|
"httpsProxy": "http://addr:port",
|
||||||
"proxies": {
|
|
||||||
"http": "http://addr:port",
|
|
||||||
"https": "http://addr:port"
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For more information on available proxy types, please consult the [ccxt proxy documentation](https://docs.ccxt.com/#/README?id=proxy).
|
||||||
|
|
||||||
## Next step
|
## Next step
|
||||||
|
|
||||||
Now you have configured your config.json, the next step is to [start your bot](bot-usage.md).
|
Now you have configured your config.json, the next step is to [start your bot](bot-usage.md).
|
||||||
|
|||||||
@@ -293,11 +293,7 @@ def set_test_proxy(config: Config, use_proxy: bool) -> Config:
|
|||||||
if use_proxy and (proxy := os.environ.get('CI_WEB_PROXY')):
|
if use_proxy and (proxy := os.environ.get('CI_WEB_PROXY')):
|
||||||
config1 = deepcopy(config)
|
config1 = deepcopy(config)
|
||||||
config1['exchange']['ccxt_config'] = {
|
config1['exchange']['ccxt_config'] = {
|
||||||
"aiohttp_proxy": proxy,
|
"httpsProxy": proxy,
|
||||||
'proxies': {
|
|
||||||
'https': proxy,
|
|
||||||
'http': proxy,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return config1
|
return config1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user