-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Build a payment calendar for the list of bonds or all bonds #63
Comments
Implemented since v1.4.* The |
#10 When requesting information about bonds (with the `--info` or `-i` key), more data is now calculated and displayed: bond payment calendar, total number of payments and already redeemed coupons, coupons yield (average coupon daily yield * 365), current price yield (average daily yield * 365), ACI and coupon's size. To request the necessary information, the `RequestBondCoupons()` (returns a dictionary of processed data received from the server) and `ExtendBondsData()` (returns an extended pandas dataframe containing more information about bonds) methods were implemented to extend bonds data with more information. The `ShowInstrumentInfo()` method has been improved to display more information on bonds and the payment calendar. To receive extended information about bonds in XLSX-format now you can use `--bonds-xlsx` (`-b`) key. #63 The `CreateBondsCalendar()` method is implemented, which generates a pandas dataframe with a general payment calendar for the specified or all bonds. The `ShowBondsCalendar()` method displays the calendar in the console and saves it to a file, `calendar.md` by default in Markdown format. To request a payment calendar, you need to use the `--calendar` (`-c`) key. Also, the table in XLSX format will be saved to the default file `calendar.xlsx`.
Debug build run: https://app.travis-ci.com/github/Tim55667757/TKSBrokerAPI/builds/257466833 Build a bond payment calendarSince TKSBrokerAPI v1.4.* you can use a new console command Also, the calendar exports to XLSX-file, for the further used by datascientists or stock analytics, ❗ WARNING: this is too long operation if a lot of bonds requested from broker server (~90-120 extended data bonds per minute, depends on speed limit rate). Coupons data are described here in the main coupon information. For the pandas dataframe calendar, the data headers are the same as those described in the Headers in XLSX-file:
An example of a generated XLSX file with a bond payment calendar can be viewed here: ./docs/media/calendar.xlsx, and also as Markdown file here: ./docs/media/calendar.md. If the calendar is built for more than one bond, then payments in the same month are grouped. Command for building a payment calendar for several bonds
|
No description provided.
The text was updated successfully, but these errors were encountered: