12
Follow
57
Followers
تبادلے کی معلومات کو پڑھنے کے لیے urllib استعمال کرتے وقت کنکشن کی خرابی۔
Created 2019-12-22 09:16:42
5
1652
میں نے ایکسپورٹ سے براہ راست پیغامات پڑھنے کی کوشش کی، اور یہ کوڈ تھا:
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
میں نے آدھے دن کا مطالعہ کیا ، کچھ کہتے ہیں کہ سرور نے ایجنٹ ترتیب دیا ہے ، کچھ کہتے ہیں کہ پیتھون 3 نے 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
