Closed AshiHarel closed 3 years ago
I managed to solved this issue myself, with the following request: https://localhost:5000/v1/api/iserver/secdef/info?conid=037833100§ype=BOND&issuerId=e1432232&symbol=AAPL
conid=037833100 -is AAPL CUSIP, I just googled it. sectype=BOND, issuerId=e1432232 are taken from https://localhost:5000/v1/api/iserver/secdef/search request symbol=AAPL is needed as well.
Hope this helps others. Please advise if you would like a pull request to be made with this url request.
Hi @AshiHarel, A rookie question, do you happen to know how to get the price of the bond? When I try to get "the contract info", I do get a lot of fields, but there isn't anything like a "price" fields. Thank you in advance!
Hi, I am trying to get BONDS info using this api with no success:
But I failed to use the object values to receive usable data about the bond. The conid: 2147483647 is the same one for all bonds in IB so no success..
I did try to use to get bonds info using the CONTRACT endpoint, for example using CUSIP as symbol (as mentioned in TWS api), but with no luck.
Am I missing something? Appreciate any help I can get!
Thanks, Ashi