My orders or positions are not getting through the APIs today. My code was all good till yesterday, but somehow nothing seems to work today.
Posts made by lipupatro
-
orders are not getting executed through the API endpoints, neither the positions are retrieved through the APIposted in Bugs
-
RE: unknown bio failureposted in Python SDK
@rajanprabu @admin I'm facing the same issue since last week every 10-15 min.
please do needful
-
Websocket closing frequentlyposted in Python SDK
@admin websocket is closing after 10-15 min with error
1006
connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshakethis is happening from last Tuesday every 10-15 min
please do needful ASAP.
-
RE: Web socket scripts stop at random timesposted in Python SDK
@admin I'm also facing this issue, WebSocket connection closes at random times. around 11AM or around 1:30 PM or around 2:30 PM. sometimes it stops multiple times a day. It happens almost daily.
-
RE: NOFTY50 symboltoken to fetch historical dataposted in General Discussion
token:"26000"
symbol:"NIFTY"
name:"NIFTY"
expiry:""
strike:"-1.000000"
lotsize:"-1"
instrumenttype:""
exch_seg:"NSE"
tick_size:"-1.000000"you can get token from scrip data
-
RE: getCandleData() missing 1 required positional argument: 'historicDataParams'posted in Python SDK
@Boofy you need to login before requesting historical data.
-
improper historical dataposted in Test
@admin I'm requesting for one minute data, below is the response
2019-01-02T13:50:00+05:30,950.50,950.50,950.50,950.50,2
2019-01-02T14:04:00+05:30,950.50,950.50,950.50,950.50,2
2019-01-02T14:05:00+05:30,950.50,950.50,950.50,950.50,8
2019-01-02T14:15:00+05:30,950.05,950.05,948.80,948.80,48
2019-01-02T14:35:00+05:30,948.80,948.80,948.80,948.80,10
2019-01-02T14:38:00+05:30,948.60,948.60,948.60,948.60,50
2019-01-02T14:43:00+05:30,948.60,948.60,948.60,948.60,2
2019-01-02T14:54:00+05:30,954.00,954.00,954.00,954.00,36
2019-01-02T15:15:00+05:30,954.05,954.05,954.05,954.05,1
2019-01-02T15:19:00+05:30,954.05,954.05,954.00,954.00,11
2019-01-02T15:24:00+05:30,950.20,950.20,950.20,950.20,1
2019-01-02T15:25:00+05:30,954.05,954.05,954.05,954.05,30
2019-01-02T15:27:00+05:30,954.05,954.05,954.05,954.05,4 -
historic data format issueposted in Test
2019-01-02T15:26:00+05:30,954.05,954.05,954.05,954.05,30
2019-01-02T15:28:00+05:30,954.05,954.05,954.05,954.05,4
2019-01-02T15:30:00+05:30,969.00,969.00,959.30,959.30,352019-01-02T15:30:00+05:30,969.00,969.00,959.30,959.30,35@admin duplicate data at session end and no separator
-
token's validity periodposted in General Discussion
@admin for how long feed token, jwt token and refresh token are valid??
also is there any limit on how may instruments we can subscribe through WebSocket at once??
-
RE: not receiving proper WebSocket dataposted in Test
@admin, i found the issue, in token i have misspelled nse_cm, but i think there should an error msg stating invalid token.................
-
not receiving proper WebSocket dataposted in Test
I’m trying to access data from web socket using smartapi-python, but I’m only receiving heartbeat data and some other data. Please do needful.
Request:
client_code="********" #client code is set in actual script
task="mw"
token="nsc_cm|15083"
ss = WebSocket(feed_token , client_code)
def on_tick(ws, tick):
for feed_data in tick:
print(feed_data)
def on_connect(ws, response):
print("connecting websocket")
print(task)
ws.send_request(token,task)def on_close(ws, code, reason):
print("closing websocket")
ws.stop()ss.on_ticks = on_tick
ss.on_connect = on_connect
ss.on_close = on_close
ss.connect( )Note: login successful and feed token set
Response:
{'ak': 'ok', 'msg': 'connected', 'task': 'cn'}
{'ak': 'ok', 'msg': 'mw', 'task': 'mw'}
{'ak': 'ok', 'msg': 'heartbeat', 'task': 'hb'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:05'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:06'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:07'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:08'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:09'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:10'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:11'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:12'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:13'}
{'name': 'tm', 'tvalue': '12/03/2021 10:13:14'}