Not able to retrieve virtual contract note

hmatadhi
I need to retrieve charges, though the REST API is there pyconnect does not have get_virtual_contract_note API, no way to invoke charges as well.

margins api dont give the charge details for existing orders. Please help.

AttributeError: 'KiteConnect' object has no attribute 'get_virtual_contract_note'
  • hmatadhi
    Got the issue. get_virtual_contract_note is available for python 3.10 (version 5.0.1 is the latest) but not for python3.8 (version 4.0.0 is the latest)

    kiteconnect in /home/ubuntu/venv/lib/python3.8/site-packages (4.0.0) --> This does not have the API.

    /home/harsha/.local/lib/python3.10/site-packages (5.0.1) --> This has the API.

    I am trying to upgrade python and see if it works.
  • sujith
    I think you are using an older version of pykiteconnect. You can use the latest version and call this method. There are some breaking changes in previous releases. Make sure you watch out for those.
  • hmatadhi
    Thank you @sujith I simply upgraded only kiteconnect to 5.0.1, seems like it is doing good.
Sign In or Register to comment.