☰
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.2K
All Categories
0
Incidents
127
Node JS client
36
Go client
765
.Net API client
360
Kite Publisher
532
.Net / VBA / Excel (3rd party)
433
Algorithms and Strategies
964
Java client
1K
API clients
400
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.1K
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()?,