kite-publisher
v1.0.3
Published
The Kite Publisher Javascript plugin lets you add one-click trade buttons to your webpage. It works like a basket combined with a payment gateway, where an inline popup opens on your webpage, guides the user through a trade, and lands the user back on you
Downloads
242
Maintainers
Readme
Kite Publisher
A lightweight NPM package for integrating Kite Connect Publisher functionalities.
Installation
npm install kite-publisher
const KitePublisher = require('kite-publisher');
const publisher = new KitePublisher("your_api_key");
publisher.initialize().then(() => {
publisher.addStockToBasket({
exchange: "NSE",
tradingsymbol: "INFY",
quantity: 1,
transaction_type: "BUY",
order_type: "MARKET",
});
publisher.renderButton('#buy-button');
});