Traceback (most recent call last):


 "G:\Python\Python37\lib\logging\__init__.py", line 1034, in emit

msg = self.format(record)


 "G:\Python\Python37\lib\logging\__init__.py", line 880, in format

return fmt.format(record)


 "G:\Python\Python37\lib\logging\__init__.py", line 619, in format

record.message = record.getMessage()


 "G:\Python\Python37\lib\logging\__init__.py", line 380, in getMessage

msg = msg % self.args
TypeError: not enough arguments for format string

Traceback (most recent call last):


 "D:/test_vectorbt/demo_from_orders_3.py", line 16, in <module>

print(portfolio.returns_stats())


 "D:\Users\Kan\miniconda3\envs\py38_vectorbt\lib\site-packages\vectorbt\portfolio\base.py", line 1980, in returns_stats

stats_obj = returns.vbt.returns.stats(**kwargs)


 "D:\Users\Kan\miniconda3\envs\py38_vectorbt\lib\site-packages\vectorbt\returns\accessors.py", line 343, in stats

'Duration': self.wrapper.shape[0] * self.wrapper.freq,
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'
