Skip to content

Commit

Permalink
remove revised from calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
traderpedroso committed Sep 19, 2022
1 parent e4e3a98 commit fffa545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ejtraderMT/api/mql.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def calender(self,symbol,fromDate,toDate):
df = self.__api.Command(action="CALENDAR", actionType="DATA", symbol=symbol,
fromDate=self.__date_to_timestamp(fromDate), toDate=self.__date_to_timestamp(toDate))
df = pd.DataFrame(df['data'])
df.columns = ['date','currency', 'impact','event','country','actual','forecast','previous','revised']
df.columns = ['date','currency', 'impact','event','country','actual','forecast','previous']
df['date'] = pd.to_datetime(df['date'], errors='coerce')
df = df.dropna(subset=['date'])
df = df.set_index('date')
Expand Down

0 comments on commit fffa545

Please sign in to comment.