JSPM

kite-publisher

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q49215F
  • License ISC

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 your page. As described in the offsite order execution section, it is possible to capture the request_token from this flow to start a Kite Connect session as well. You can add one or more stocks to the basket (maximum 10) dynamically using the Javascript plugin, or embed simple static buttons using plain HTML.

Package Exports

  • kite-publisher
  • kite-publisher/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kite-publisher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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');

});