diff --git a/crypto_data_fetcher/gmo.py b/crypto_data_fetcher/gmo.py index 127649b..b318093 100644 --- a/crypto_data_fetcher/gmo.py +++ b/crypto_data_fetcher/gmo.py @@ -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'),