Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/kernc/backtesting.py
/ _copy
Method
_copy
backtesting/backtesting.py:587–588 ·
view source on GitHub ↗
(self, **kwargs)
Source
from the content-addressed store, hash-verified
585
return
self
586
587
def
_copy(self, **kwargs):
588
return
copy(self)._replace(**kwargs)
589
590
def
close(self, portion: float = 1.):
591
""
"Place new `Order` to close `portion` of the trade at next market price."
""
Callers
1
_reduce_trade
Method · 0.80
Calls
1
_replace
Method · 0.45
Tested by
no test coverage detected