def get_ig_api(instruments, granularity='D', prices=['B'], since=None, until=None, count=PERIODS): params = { 'granularity': granularity, 'prices': prices, 'since': since, 'until': until, 'count': count } return get_candles(instruments, params)
def get_oanda_api( instruments, granularity='D', prices=['B'], since=None, until=None, count=PERIODS, daily_alignment=17, ): # https://developer.oanda.com/rest-live-v20/instrument-ep params = { 'granularity': granularity, 'prices': prices, 'since': since, 'until': until, 'count': count, 'dailyAlignment': daily_alignment, 'alignmentTimezone': 'Europe/London', } return get_candles(instruments, params)