skfolio/skfolio-cost-periodicity
| Rule | skfolio-cost-periodicity |
|---|---|
| Pack | skfolio |
| Severity | info |
| Fix | none, edit by hand |
| Library versions | skfolio 1.14.4 and later |
skfolio management fees use the period of each return observation. Transaction costs apply to differences from previous holdings.
Portfolio(returns, weights, transaction_costs=0.01)Portfolio(returns, weights, previous_weights=starting_weights, transaction_costs=0.01)What the rule reports
Section titled “What the rule reports”An initial purchase can intentionally start with zero holdings. Supply previous weights for a rebalance and express transaction costs per traded amount. Convert annual management fees to the return period before passing them.
Message
Section titled “Message”xpd prints this message with the issue. A name that starts with $ stands for code from your file.
skfolio applies management fees on each return observation. Confirm that management_fees uses the same period as the data.Browse the other rules of the skfolio pack.