I am trying to include below code in wordpress post and it doesn't work
Buy this stock basket at Zerodha
// Only run your custom code once KiteConnect has fully initialised. // Use KiteConnect.ready() to achieve this. KiteConnect.ready(function() { // Initialize a new Kite instance. // You can initialize multiple instances if you need. var kite = new KiteConnect("i1chmn3976xs6zru");
// Add a stock to the basket kite.add({ "exchange": "BSE", "tradingsymbol": "BNRSEC", "quantity": 100, "transaction_type": "BUY", "order_type": "MARKET", "product": "CNC" });
Best way to implement is to create a plugin to get short codes which can be inserted to WordPress posts.
Please provide detailed steps for same.
We are coming up with plugin soon.
At present could you provide detailed steps for implementing Kite publisher using Scripts and Styles plugin?
We have developed a beta wordpress plugin, try this
https://s3.ap-south-1.amazonaws.com/public.zerodha.net/kite-publisher.zip
Checkout readme for more info.