Skip to content

Commit

Permalink
[fix] gmo timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
dk19810313 committed Aug 14, 2024
1 parent 3471c8e commit ae5d429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto_data_fetcher/gmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def fetch_trades(self, market=None, interval_sec=None):

if df is not None:
if interval_sec is not None:
df['timestamp'] = df['timestamp'].dt.floor('{}S'.format(interval_sec))
df['timestamp'] = df['timestamp'].dt.floor('{}s'.format(interval_sec))
df = pd.concat([
df.groupby('timestamp')['price'].nth(0).rename('op'),
df.groupby('timestamp')['price'].max().rename('hi'),
Expand Down

0 comments on commit ae5d429

Please sign in to comment.