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
