-
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
Extend information for bonds #10
Comments
--info
Implemented since v1.4.* When requesting information about bonds (with 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 Get extended bonds dataTKSBrokerAPI v1.4.* contains a new console command Also, at the end data exports to XLSX-file, for the further used by datascientists or stock analytics. Default ❗ 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). Which mean headers in XLSX-file, see here: "Main bond information" and "Coupon information". Headers in XLSX-file or pandas dataframe:
An example of the generated XLSX file, with extended bond data, can be viewed here: ./docs/media/ext-bonds.xlsx. Command to generate extended data for multiple bonds
|
Add to
--info
bonds payment schedule, the number of payments in total and already redeemed coupons, and also calculate the ACI, current yield, yield to maturity and coupon value.See also: https://tinkoff.github.io/investAPI/swagger-ui/#/InstrumentsService/InstrumentsService_GetBondCoupons
The text was updated successfully, but these errors were encountered: