Closed prasadraju070 closed 9 months ago
Hi Prasad,
These are not REST APIs at all, even in python. That's reason for all mess. It works well once, i.e just subscribe and receive updates. If you make call to any other API, you will see random behaviours. Specifically with quotes/un_subscribe after a subscribe is in progress.
Ok can u please provide login code in python and save the session for the whole day. From there I could pick up . Please do needful. Thank you bro
Ok can u please provide login code in python and save the session for the whole day. From there I could pick up . Please do needful. Thank you bro
Login Code
from neo_api_client import NeoAPI
client = NeoAPI(consumer_key="", consumer_secret="",
environment='prod', on_message=on_message, on_error=on_error, on_close=None, on_open=None)
client.login(mobilenumber="+919999999999", password="XXXX")
client.session_2fa(OTP="")
Currently there are some caveats regarding reusing the session, I have created a PR #67 which solves this issue, you can check that and continue from there.
Hi, I directly pickle configuration and reuse it. This works with existing codebase. First create venv and do pip install yaml pickle sys
Attaching code
You can rename initKotak.txt to initKotak.py after download. Will create PR later . Please do comment if any issues.
Code: client = getApi() print("client**",client) data=client.positions() print(data) data= client.holdings() print(data)
Returning a set session client** <neo_api_client.neo_api.NeoAPI object at 0x00000298DD3309D0> {'error': [{'code': '91010', 'message': 'Service error'}]} {'error': [{'code': '10020', 'message': 'Authentication Failed'}]}
subscribe will work, check orignal program.
Hi please any one could provide working coded in java for login and accessing websocket for bank nifty index. I am totally new to python