☰
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
11.9K
All Categories
85
Node JS client
30
Go client
685
.Net API client
330
Kite Publisher
523
.Net / VBA / Excel (3rd party)
393
Algorithms and Strategies
891
Java client
903
API clients
383
PHP client
3.3K
Python client
310
Mobile and Desktop apps
1.2K
Market data (WebSockets)
2.9K
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()?,