☰
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.2K
All Categories
0
Incidents
127
Node JS client
38
Go client
769
.Net API client
362
Kite Publisher
532
.Net / VBA / Excel (3rd party)
437
Algorithms and Strategies
966
Java client
1K
API clients
400
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
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.