@mastertrader21 https://kite.trade/docs/connect/v3/user/#authentication-and-token-exchange
Passing -d on curl means content-type should be set as application/x-www-form-urlencoded. But you are still setting content-type as application/json. Check if…
@Ashok121 That puts me into asking how did you get the access token in the first place?
https://github.com/zerodhatech/pykiteconnect is the easiest way to interact with kiteconnect APIs on python. Please check into the installation section and docum…
@vikesh_sethi That looks like a successful POST request and you received a 200 back. Access token will be available inside `data` dictionary. data['access_token']
@Ashok121 Did you try the above the code on your console?
1. requests does not have :meth response
2. Headers cannot be send as url params
3. URL is still wrong
Please check into pykiteconnect lib
@Manju So, you need to access py files directly from sitepackages? Now that we are distributing kiteconnect as egg distribution, accessing py files from sitepackages is somewhat tricky. Egg distribution is just a zipified version of the original one…
@Manju Did you mean "modify kiteconnect code on the fly"? You can import classes which are exposed by default here https://github.com/zerodhatech/pykiteconnect/blob/kite3/kiteconnect/__init__.py#L113 like from kiteconnect import KiteConnect Or go wi…
@manuhegde Assuming you are getting `AttributeError: 'KiteConnect' object has no attribute 'generate_session'` and you have kiteconnect v3.7.0b9 in the sitepackages. Can you make sure the python shell uses the same pythonpath where the above package…
@manuhegde we do not provide telephonic support
https://kite.trade/forum/discussion/comment/13451/#Comment_13451 cannot happen if you have upgraded it.
Can you check your kiteconnect version again?
`pip show kiteconnect` Please post the output here
@manuhegde pip show kiteconnect will show you the kiteconnect version installed (it should be 3.7.0b9).
https://github.com/zerodhatech/pykiteconnect/blob/kite3/examples/flask_app.py
will help you get the access token provided you have mentioned the …
@sidverm
Assuming you are using kite3,
Change your redirect uri to http://127.0.0.1:5010/login on kite developer console (to match this https://github.com/zerodhatech/pykiteconnect/blob/kite3/examples/flask_app.py#L40).
run python flask_app.py, O…
@sidverm Check this out https://github.com/zerodhatech/pykiteconnect/blob/kite3/examples/flask_app.py
This gives you an access token. Use this while initialising kite ticker.
@RP3436
We are not able to reproduce this issue here. https://ci.appveyor.com/project/rainmattertech/pykiteconnect/build/1.0.30/job/v7vqg97yjxmcrftm#L121
^ is a 64 bit machine with same python version
Do one thing, try cloning repo
git clone git@g…
@Ashok121 Where are your order, parent_order_id variables assigned?
orders=kite.orders()
order1=orders[0]
kite.cancel_order('bo',order_id=order1['order_id'],parent_order_id=order1['parent_order_id'])
@RP3436 We understand. We are thinking of uploading the wheel distribution for every platforms on pypi so compiling twisted on user end could be eliminated. For a workaround, https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
^ Since you are using …
@RP3436 You need to install Build Tools for Visual Studio 2017 as administrator. You can download it from here. Make sure visual studio compiler is in your path.
@pracas Please check this.
Try using the pykiteconnect client library.
^ Points on debugging your issue
Bad request clearly means the request you are sending is some or the other way wrong. Try printing res.request.__dict__
* Change json param of p…
@Raunaak I tried with miniconda2 and works fine. here is what i followed
PS>conda -V
conda 4.4.10
PS>conda update conda
Solving environment: done
# All requested packages already installed.
PS>conda create -n kiteenv
PS>activate kite…
@Raunaak Please run your command prompt/ PS as administrator.
If it does not work. Try running pip as a python module
python -m pip install kiteconnect --upgrade --pre
@Raunaak Please update to the new kiteconnect version 3.7.0b5 as mentioned here. https://github.com/zerodhatech/pykiteconnect/tree/kite3#installing-the-client
pip show kiteconnect -> will show you the version number
https://github.com/zerodhatec…
@ramatius Released a new one now. https://github.com/zerodhatech/phpkiteconnect/releases/tag/v3.0.0-beta2
Otherwise you could have downloaded the php file from the kite3 branch manually as mentioned here https://github.com/zerodhatech/phpkiteconnec…