12
Follow
57
Followers
제가 거래소에서 직접 읽어보려고 했을 때, 코드는 다음과 같았습니다.
from urllib import request
def fetch_url_data(url):
try:
req = request.urlopen ((url).read (().decode (('utf-8') # 요청 url ((GET 요청)
return json.loads(req)
except Exception as e:
print ((' 거래소 인터페이스에서 오류가 발견되었습니다:', e)
url = "https://www.okex.me/api/spot/v3/instruments"
data = fetch_url_data(url)
연구센터에서는 데이터를 읽을 수 있지만, 응답을 받을 때 다음과 같은 오류가 발생했습니다.
urllib.error.URLError: <urlopen error [Errno 111] Connection refused
반일 동안 연구했는데, 서버가 프록시를 설정했다고, Python3가 urllib 라이브러리를 사용한다는 것이 바뀌었다고, 제발 대신, 이게 무슨 일이야?
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization
Comment
All comments (5)
- 1
