Problem: Keyword Argument Mismatch
The KiteConnect.generate_session method in kiteconnect/connect.py defines its second parameter as api_secret. However, several files in the examples/ directory incorrectly use the keyword argument secret.
When a user attempts to run these examples, it results in a TypeError: generate_session() got an unexpected keyword argument 'secret'.
Affected Files
The following files currently contain this error:
examples/simple.py
examples/gtt_order.py
examples/order_margins.py
To Reproduce
Run any of the affected example scripts. The execution fails at the session generation step:
data = kite.generate_session("request_token_here", secret="your_secret")
Problem: Keyword Argument Mismatch
The
KiteConnect.generate_sessionmethod inkiteconnect/connect.pydefines its second parameter asapi_secret. However, several files in theexamples/directory incorrectly use the keyword argumentsecret.When a user attempts to run these examples, it results in a
TypeError: generate_session() got an unexpected keyword argument 'secret'.Affected Files
The following files currently contain this error:
examples/simple.pyexamples/gtt_order.pyexamples/order_margins.pyTo Reproduce
Run any of the affected example scripts. The execution fails at the session generation step: