fixed to work with updated oanda api