This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Kite publisher test</title> | |
</head> | |
<body> | |
<a href="#" data-kite="my-api-key" data-exchange="NFO" data-tradingsymbol="DCBBANK17FEBFUT" data-transaction_type="BUY" data-quantity="4500" data-order_type="MARKET">Buy this</a> | |
<script src="https://kite.trade/publisher.js?v=1"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bns() { | |
// Sample input | |
spot = 8400; | |
strike = 8600; | |
expiry = "2016-12-01 23:59:00"; | |
volt = 18; | |
int_rate = 7; | |
div_yld = 0; | |
//Validation |