Skip to content

Commit

Permalink
BUG: Fix the returned volume. IB Returns 100s of shares
Browse files Browse the repository at this point in the history
  • Loading branch information
tibkiss committed Jan 3, 2018
1 parent 246a52d commit f7e3cd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ib_dl/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def _fetch_to_df(ib, symbol, duration, bar_size):
df = util.df(bars)
df.set_index('date', inplace=True)
df.index = df.index.tz_localize(LOCAL_TZ).tz_convert('UTC')
df['volume'] *= 100

return df

Expand Down

0 comments on commit f7e3cd9

Please sign in to comment.