4
Follow
26
Followers
अनुसंधान वातावरण, पायथन, बिटमेक्स xbtusd डेटा त्रुटि प्राप्त करें: EOFError
Created 2019-10-12 11:58:16
1
2109
शोध परिवेश, एक नौसिखिया को निर्देशित करने के लिए - OKEX एक्सचेंज का BTC_USDT पायथन में, bitmex का XBTUSD के लिए विन्यस्त करें, एक्सचेंज निष्पादित करें। GetTicker () EOFError
पूरा कोड इस प्रकार है:
'''backtest
start: 2019-09-12 00:00:00
end: 2019-10-11 00:00:00
period: 1h
exchanges: [{"eid":"Futures_BitMEX","currency":"XBT_USD"}]
'''
ऊपर टिप्पणी रीमेक सेटिंग है
from fmz import * # सभी एफएमजेड फ़ंक्शंस आयात करें
task = VCtx(doc) # आरंभिक
ticker = exchange.GetTicker()
print(ticker)
print (('अंतिम सौदा मूल्य:', ticker['Last'])
आपके जवाब का इंतजार है, धन्यवाद!
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 (1)
回测完成的时候是会抛出一个EOF异常作为回测结束。
这个是正常的。
但是您这个报错是因为,没有设置合约,需要在调用exchange.GetTicker()之前使用exchange.SetContractType("XBTUSD")设置一下合约,否则获取不到行情,回测就直接结束了,就抛出EOF异常了。
7 years ago
- 1
