Skip to content

Instantly share code, notes, and snippets.

View vishnus's full-sized avatar
:shipit:
I may be slow to respond.

Vishnu Sudhakaran vishnus

:shipit:
I may be slow to respond.
View GitHub Profile
@vishnus
vishnus / bns.js
Created November 30, 2016 06:55
Black and Scholes formula in JS
function bns() {
// Sample input
spot = 8400;
strike = 8600;
expiry = "2016-12-01 23:59:00";
volt = 18;
int_rate = 7;
div_yld = 0;
//Validation
@vishnus
vishnus / kitepublisher.html
Last active February 20, 2017 13:23
Kite publisher - demo
<!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>