Use OANDA Rest API to accumulate positions over a regular interval