简体   繁体   中英

In the R blotter package, are matured instruments removed from positions?

Suppose I have a blotter portfolio of instruments that mature at some date.

Will the getPos function recognize that my position in these instruments changes after this date?

In other words, is getPos smart enough to simulate instruments that mature?

First, FinancialInstrument is extensible by design. Adding an expiration or maturity date is as simple as passing those attributes when you create your instruments.

Josh is correct that you need to create transactions. If you're holding the portfolio, your broker will hopefully receive cash and deposit it in your account. In blotter, that would be a closing of the bond position for par, presumably. Of course, there are many kinds of bonds, and they do not always mature at par, so doing this automatically isn't really possible.

We would certainly welcome collaboration from someone with a real bond portfolio to extend the utilities and helper functions available in blotter.

不,当文书成熟,到期等时,文件夹组合不会自动更新。用户有责任提供所有必要的交易以“平仓”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM