I'm having the following error. Can anyone suggest a fix.
I got currency data working by increasing the max bars, but not sure how to fix this error.
TerminalInfo(community_account=False, community_connection=False, connected=True, dlls_allowed=False, trade_allowed=False, tradeapi_disabled=False, email_enabled=False, ftp_enabled=False, notifications_enabled=False, mqid=False, build=3041, maxbars=100000000, codepage=0, ping_last=23674, community_balance=0.0, retransmission=0.028123132448235857, company='MetaQuotes Software Corp.', name='MetaTrader 5', language='English', path='C:\\Program Files\\MetaTrader 5', data_path='C:\\Users\\LocalAdmin\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075', commondata_path='C:\\Users\\LocalAdmin\\AppData\\Roaming\\MetaQuotes\\Terminal\\Common')
asset=UKOil-F
time_frame=16408
utc_from=2020-01-01 00:00:00-00:01
utc_to=2021-10-02 00:00:00-00:01
rates = mt5.copy_rates_range(UKOil-F, 16408, 2020-01-01 00:00:00-00:01, 2021-10-02 00:00:00-00:01)
copy_rates_range() failed, error code = (-1, 'Terminal: Call failed')

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm having the following error. Can anyone suggest a fix.
I got currency data working by increasing the max bars, but not sure how to fix this error.
TerminalInfo(community_account=False, community_connection=False, connected=True, dlls_allowed=False, trade_allowed=False, tradeapi_disabled=False, email_enabled=False, ftp_enabled=False, notifications_enabled=False, mqid=False, build=3041, maxbars=100000000, codepage=0, ping_last=23674, community_balance=0.0, retransmission=0.028123132448235857, company='MetaQuotes Software Corp.', name='MetaTrader 5', language='English', path='C:\\Program Files\\MetaTrader 5', data_path='C:\\Users\\LocalAdmin\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075', commondata_path='C:\\Users\\LocalAdmin\\AppData\\Roaming\\MetaQuotes\\Terminal\\Common')
asset=UKOil-F
time_frame=16408
utc_from=2020-01-01 00:00:00-00:01
utc_to=2021-10-02 00:00:00-00:01
rates = mt5.copy_rates_range(UKOil-F, 16408, 2020-01-01 00:00:00-00:01, 2021-10-02 00:00:00-00:01)
copy_rates_range() failed, error code = (-1, 'Terminal: Call failed')