Skip to content

Assets that pay interest daily #133

Answered by edtechre
SW4T400 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @SW4T400,

There is a SlippageModel but I don't think that will apply here.

This would require changes on your end. What you could do is add the earned interest to the cash field in the Portfolio:
https://www.pybroker.com/en/latest/reference/pybroker.portfolio.html#pybroker.portfolio.Portfolio.cash

The ExecContext has a "private" reference to the Portfolio (_portfolio).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SW4T400
Comment options

@edtechre
Comment options

@Djangu-algo
Comment options

Answer selected by SW4T400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants