updates the code to adapt to changes in OandaAPI