Skip to content

How to set up a proxy #600

@ZhangLei999

Description

@ZhangLei999

After deployment, an error occurred because market data could not be retrieved. I believe this is due to the okx interface not being configured with a proxy.
The error message is as follows:
File "D:\Program Files (x86)\ValueCell\backend.venv\Lib\site-packages\ccxt\async_support\base\exchange.py", line 981, in fetch2
raise e
File "D:\Program Files (x86)\ValueCell\backend.venv\Lib\site-packages\ccxt\async_support\base\exchange.py", line 972, in fetch2
return await self.fetch(request['url'], request['method'], request['headers'], request['body'])
�� �� �� �� �� �� {'url': 'https://www.okx.com/api/v5/public/instruments?instType=SPOT', 'method': 'GET', 'body': None, 'headers': None}
�� �� �� �� �� {'url': 'https://www.okx.com/api/v5/public/instruments?instType=SPOT', 'method': 'GET', 'body': None, 'headers': None}
�� �� �� �� {'url': 'https://www.okx.com/api/v5/public/instruments?instType=SPOT', 'method': 'GET', 'body': None, 'headers': None}
�� �� �� {'url': 'https://www.okx.com/api/v5/public/instruments?instType=SPOT', 'method': 'GET', 'body': None, 'headers': None}
�� �� <function Exchange.fetch at 0x0000025F48A69940>
�� ccxt.async_support.okx()
File "D:\Program Files (x86)\ValueCell\backend.venv\Lib\site-packages\ccxt\async_support\base\exchange.py", line 253, in fetch
raise RequestTimeout(details) from e
�� �� 'okx GET https://www.okx.com/api/v5/public/instruments?instType=SPOT'
�� <class 'ccxt.base.errors.RequestTimeout'>

ccxt.base.errors.RequestTimeout: okx GET https://www.okx.com/api/v5/public/instruments?instType=SPOT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions