Skip to content

Commit f762c5b

Browse files
committed
DOC: Fix fractional backtest warning message
Ref: c5cd1b3 Thanks @daraul
1 parent 4128b12 commit f762c5b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backtesting/backtesting.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,8 +1218,9 @@ def __init__(self,
12181218
'fill them in with `df.interpolate()` or whatever.')
12191219
if np.any(data['Close'] > cash):
12201220
warnings.warn('Some prices are larger than initial cash value. Note that fractional '
1221-
'trading is not supported. If you want to trade Bitcoin, '
1222-
'increase initial cash, or trade μBTC or satoshis instead (GH-134).',
1221+
'trading is not supported by this class. If you want to trade Bitcoin, '
1222+
'increase initial cash, or trade μBTC or satoshis instead (see e.g. class '
1223+
'`backtesting.lib.FractionalBacktest`.',
12231224
stacklevel=2)
12241225
if not data.index.is_monotonic_increasing:
12251226
warnings.warn('Data index is not sorted in ascending order. Sorting.',

0 commit comments

Comments
 (0)