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
"আমাদের সার্ভারে একটি প্রক্সি সেট আপ করা হয়েছে, পাইথন 3 ইউআরএলবি লাইব্রেরির ব্যবহারের পরিবর্তন করেছে, দয়া করে মহান ঈশ্বরকে জিজ্ঞাসা করুন এটি কি?
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
