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
30 lines (29 loc) • 761 B
TypeScript
export interface BasketItem {
variety?: string;
exchange?: string;
tradingsymbol?: string;
transaction_type?: "BUY" | "SELL";
quantity?: number;
order_type?: string;
price?: number;
trigger_price?: number;
product?: string;
validity?: string;
readonly?: boolean;
tag?: string;
stoploss?: number;
squareoff?: number;
trailing_stoploss?: number;
disclosed_quantity?: number;
}
export declare class KiteConnect {
private basket;
private options;
private finishedCallback;
constructor(apiKey: string, redirect_url?: string);
add(item: BasketItem): boolean;
connect(): void;
renderButton(target: string | HTMLElement): void;
private createForm;
private showPopup;
}