I did a brief implementation for calculating overnight interests during backtesting for Oanda.

Since interests can be positive, it seems that I cannot use fees, so I add interests directly to cash account.

I was not able to upload the full interest data since the file is too big, but you can get a sample from the mocky.io server

The interest data can be downloaded from oanda site.