Created
July 6, 2020 18:33
-
-
Save kiranmaya/0e3b528e2b17265067afc9ad4ba0d94e to your computer and use it in GitHub Desktop.
Zerodha Kite Brokerage Calculation
This file contains hidden or 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
//Order Value is StockPrice X Quanity | |
//This is INTRADAY EQUITY,for Futures Change Percentages of charges as stated in brokerage caliculator page | |
static decimal GetBrokerage(decimal OrderValue) | |
{ | |
decimal brokerage = 0; | |
decimal zerodhaFee = OrderValue * 0.0003m; | |
if( zerodhaFee > 20 ) zerodhaFee = 20; | |
zerodhaFee *= 2; | |
brokerage += zerodhaFee; | |
Console.WriteLine($" zerodhaFee {zerodhaFee}"); | |
var nseCharges = OrderValue * 0.0000325m * 2; | |
brokerage += nseCharges; | |
Console.WriteLine($" nseCharges {nseCharges}"); | |
var Gst = brokerage * 0.18m; | |
brokerage += Gst; | |
Console.WriteLine($" Gst {Gst}"); | |
var stt = OrderValue * 0.00025m; | |
brokerage += stt; | |
Console.WriteLine($" stt {stt}"); | |
var sebi = OrderValue * 0.000001m; | |
brokerage += sebi; | |
Console.WriteLine($" sebi {sebi}"); | |
var stampCharges = OrderValue * 0.000015m * 2; | |
brokerage += stampCharges; | |
Console.WriteLine($" stampCharges {stampCharges}"); | |
return brokerage; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment