happydasch / btoandav20

Support for Oanda-V20 API in backtrader
Apache License 2.0
130 stars 52 forks source link

Live Feed constantly dropping out #61

Closed mik-s closed 3 years ago

mik-s commented 4 years ago

I've been using a version of btoandav20 from back in May with no issues. However, this older version does not have single line bracket orders with trailing stops.

This current version works when backtesting but when I go live with the bracket orders in single line as intended but I experience constant CONNBROKEN, DELAY, LIVE over and over again.

I haven't changed any of the dependencies and they are all above the requirements. I feel like this is a basic error on my part that can be easily fixed.

Appreciate your thoughts.

US30        
***** DATA NOTIF: US30_USD LIVE
***** DATA NOTIF: US30_USD CONNBROKEN
***** DATA NOTIF: US30_USD DELAYED
***** DATA NOTIF: US30_USD LIVE
US30  
***** STORE NOTIF: Trying to reconnect streaming events (2 of -1)
US30     
***** STORE NOTIF: v20 REST request to https://stream-fxpractice.oanda.com:443/v3/accounts/101-002/transactions/stream has timed out (stream)
US30     
***** DATA NOTIF: US30_USD CONNBROKEN
***** DATA NOTIF: US30_USD DELAYED
***** STORE NOTIF: v20 REST request to https://stream-fxpractice.oanda.com:443/v3/accounts/101-002/pricing/stream?instruments=US30_USD has timed out (stream)
***** DATA NOTIF: US30_USD LIVE
***** STORE NOTIF: Trying to reconnect streaming events (1 of -1)
US30     
***** DATA NOTIF: US30_USD CONNBROKEN
***** DATA NOTIF: US30_USD DELAYED
***** STORE NOTIF: v20 REST request to https://stream-fxpractice.oanda.com:443/v3/accounts/101-002/pricing/stream?instruments=US30_USD has timed out (stream)
***** STORE NOTIF: v20 REST request to https://stream-fxpractice.oanda.com:443/v3/accounts/101-002/transactions/stream has timed out (stream)
***** DATA NOTIF: US30_USD LIVE
US30     
***** STORE NOTIF: Trying to reconnect streaming events (1 of -1)
***** DATA NOTIF: US30_USD CONNBROKEN
***** DATA NOTIF: US30_USD DELAYED
***** STORE NOTIF: v20 REST request to https://stream-fxpractice.oanda.com:443/v3/accounts/101-002/pricing/stream?instruments=US30_USD has timed out (stream)
US30
***** STORE NOTIF: v20 REST request to https://stream-fxpractice.oanda.com:443/v3/accounts/101-002/transactions/stream has timed out (stream)
***** DATA NOTIF: US30_USD LIVE
dotto95 commented 2 years ago

How do you fix that?