Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the net proxy? #439

Open
memorycancel opened this issue Mar 20, 2024 · 0 comments
Open

How to set the net proxy? #439

memorycancel opened this issue Mar 20, 2024 · 0 comments

Comments

@memorycancel
Copy link

memorycancel commented Mar 20, 2024

How to set the net proxy?
Network error, As the title. Many thanks!

okx exchange

Traceback (most recent call last):
  File "/home/tommy/codes/passivbot/procedures.py", line 206, in add_market_specific_settings
    market_specific_settings = fetch_market_specific_settings(config)
  File "/home/tommy/codes/passivbot/procedures.py", line 760, in fetch_market_specific_settings
    markets = cc.fetch_markets()
  File "/home/tommy/.local/lib/python3.10/site-packages/ccxt/okx.py", line 1293, in fetch_markets
    promises.append(self.fetch_markets_by_type(types[i], params))
  File "/home/tommy/.local/lib/python3.10/site-packages/ccxt/okx.py", line 1458, in fetch_markets_by_type
    response = self.publicGetPublicInstruments(self.extend(request, params))
  File "/home/tommy/.local/lib/python3.10/site-packages/ccxt/base/types.py", line 34, in unbound_method
    return _self.request(self.path, self.api, self.method, params, config=self.config)
  File "/home/tommy/.local/lib/python3.10/site-packages/ccxt/base/exchange.py", line 3318, in request
    return self.fetch2(path, api, method, params, headers, body, config)
  File "/home/tommy/.local/lib/python3.10/site-packages/ccxt/base/exchange.py", line 3315, in fetch2
    return self.fetch(request['url'], request['method'], request['headers'], request['body'])
  File "/home/tommy/.local/lib/python3.10/site-packages/ccxt/base/exchange.py", line 643, in fetch
    raise NetworkError(details) from e
ccxt.base.errors.NetworkError: okx GET https://www.okx.com/api/v5/public/instruments?instType=SPOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant