☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
April 2018
darsh
April 2018
sujith
Error while using websocket
darsh
April 2018
edited April 2018
in
Python client
My code
from kiteconnect import KiteConnect
api_key="xxxx"
api_secret="xxxx"
kite=KiteConnect(api_key)
access_token='xxxx'
import socket
s= socket.socket(socket.AF_INET,socket.SOCK_STREAM)
server="wss://ws.kite.trade?api_key=xxxx&access_token=xxxx"
port=80
s.connect((server,port))
When i try to connect with server,i get this error code"[Errno 11001] getaddrinfo failed"
I am trying to get LTP by using websocket. Please help me to resolve this issue.
Tagged:
python3.x
WebSocket Error
sujith
April 2018
You can check out
example here
.
darsh
April 2018
Are you suggesting to use "PORT = 5010 ,HOST = "127.0.0.1" instead of "server="wss://ws.kite.trade?api_key=xxxx&access_token=xxxx",port=80 ?
sorry i can not find any example related to socket and or socket.connect()?,
sujith
April 2018
You can go to readme and check out example. You need to use Kite Ticker and not socket.
darsh
April 2018
okay
This discussion has been closed.
sorry i can not find any example related to socket and or socket.connect()?,