UNPKG

kite-publisher

Version:

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

29 lines (20 loc) 492 B
# Kite Publisher A lightweight NPM package for integrating Kite Connect Publisher functionalities. ## Installation ```bash npm install kite-publisher ``` ```bash 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'); }); ```