☰
Login
Signup
Home
›
Kite Publisher
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.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
January 2020
sujith
Getting error If I invoke kite.connect more than once.
sudhagowda
January 2020
in
Kite Publisher
Hi,
We are using kite connect publisher buttons. My code is working the first time. Next time onwards I am getting the folowing error.
publisher.js:106 Uncaught TypeError: Cannot read property 'document' of null
at popup (publisher.js:106)
My code is as follows
function execute_trade(transtype){
let kite = new KiteConnect("xxxxxx")
let data={
"tradingsymbol": "TCS",
"exchange": "NFO",
"transaction_type": "BUY",
"order_type": "MARKET",
"product": "MIS",
"quantity":10,
"readonly": true
}
kite.add(data);
kite.connect();
}
Let me know if need to do anycleanup on the first trade completion.
image.png
10.4K
sujith
January 2020
Can you paste the complete code to reproduce the issue?
Sign In
or
Register
to comment.