☰
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
14.2K
All Categories
0
Incidents
159
Node JS client
45
Go client
803
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
466
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
350
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
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.