Click or drag to resize

Kite Class

DotNet Library For Kite Connect API

This class exposes all properties and methods supported by Kite Connect API
Inheritance Hierarchy
System.Object
  KiteNet.Kite

Namespace:  KiteNet
Assembly:  KiteNet (in KiteNet.dll) Version: 1.3.0.0
Syntax
public class Kite : IDisposable

The Kite type exposes the following members.

Constructors
  NameDescription
Public methodKite
Initializes a new instance of the Kite class
Top
Properties
  NameDescription
Public propertyAccess_Token
Get's Access Token
Public propertyCode exampleApi_Key
Get's or Set's API Key
Public propertyCode exampleApi_Secret
Get's or Set's API Secret
Public propertyCode exampleApp_Notification
Get's or Set's App Notification Status
Public propertyAuthorization_Status
Get's Authorization Status
Public propertyBeginTimeOrderBookPull
Public propertyCode exampleBridge_Notification
Get's or Set's Bridge Notification Status
Public propertyBridgeExpiry
Get's Bridge Expiry Date
Public propertyBridgeStatus
Get's Bridge status
Public propertyClient_Email
Get's Client Email
Public propertyClient_Id
Get's Client Id
Public propertyClient_Name
Get's Client Name
Public propertyClient_Phone
Get's Client Phone
Public propertyDisableEvents
Public propertyCode exampleEmail_Alerts
Get's or Set's Email Alerts Status
Public propertyCode exampleEmail_Id_Alerts
Get's or Set's Email Id For Alerts
Public propertyEnableBridge
Get's or Set's Bridge Status
Public propertyCode exampleEnableDomInRtd
Get's or Set's EnableDomInRtd
Public propertyEnableMaxLoss
Get's or Set's MaxLoss Status
Public propertyEnableMaxProfit
Get's or Set's MaxProfit Status
Public propertyEnableOrderBookPullOnError
Public propertyEnableSqoffMcx
Get's or Set's SqoffMcx Status
Public propertyEnableSqoffNse
Get's or Set's SqoffNse Status
Public propertyCode exampleEnableWebsocket
Get's or Set's Websocket Status
Public propertyEndTimeOrderBookPull
Public propertyCode exampleExcel_Mode
Get's or Set's Excel Mode
Public propertyExchange_Enabled
Get's Exchanges Enabled For User
Public propertyExchangesEnabled
Public propertyFileVersion
Get's File Version
Public propertyIsActiveClient
Get's User Account Status
Public propertyIsBOEnabled
Get's User BO Status
Public propertyIsCOEnabled
Get's User CO Status
Public propertyIsDownloadingHistData
Get's HistData download Status
Public propertyIsExitNrml
Public propertyIsInternetAvailable
Get's Internet Status
Public propertyIsProcessingBatchHistData
Get's Batch HistData Processing Status
Public propertyIsProcessingBatchOrder
Get's Batch Order Processing Status
Public propertyIsReconnectingWebsocket
Get's Websocket Reconnection Status
Public propertyIsSubscribingAllQuotes
Get's All Quotes Subscribing Status
Public propertyIsUnSubscribingAllQuotes
Get's All Quotes UnSubscribing Status
Public propertyIsWebSockLive
Get's Websocket Status
Public propertyListExch
Public propertyListInstTypeEq
Public propertyListInstTypeFut
Public propertyListInstTypeIdx
Public propertyListSymbolBSEEq
Public propertyListSymbolBSEFut
Public propertyListSymbolBSEIdx
Public propertyListSymbolBSEOpt
Public propertyListSymbolMCXFut
Public propertyListSymbolMCXOpt
Public propertyListSymbolNCDFut
Public propertyListSymbolNCDOpt
Public propertyListSymbolNSEEq
Public propertyListSymbolNSEFut
Public propertyListSymbolNSEIdx
Public propertyListSymbolNSEOpt
Public propertyLogin_Response
Get's Login Response
Public propertyLogin_Status
Get's Login Status
Public propertyLogin_Url
Get's Login Url
Public propertyCode exampleLogMTM
Get's or Set's MTM Log Status
Public propertyLogout_Status
Get's Logout Status
Public propertyCode exampleLogTicks
Get's or Set's Ticks Log Status
Public propertyMaxLoss
Get's or Set's MaxLoss
Public propertyMaxProfit
Get's or Set's MaxProfit
Public propertyMaxSocketConnections
Get's Maximum Socket Connections
Public propertyCode exampleMobile_No_Alerts
Get's or Set's Mobile No For Alerts
Public propertyOnlyTopBidAsk
Public propertyCode exampleOrder_Notification
Get's or Set's Order Notification Status
Public propertyOrderBookPullInterval
Public propertyCode examplePosition_Notification
Get's or Set's Position Notification Status
Public propertyProduct_Enabled
Get's Products Enabled For User
Public propertyCode exampleProxyDomain
Get's or Set's Proxy Domain
Public propertyCode exampleProxyPassword
Get's or Set's Proxy Password
Public propertyCode exampleProxyPort
Get's or Set's Proxy Port
Public propertyCode exampleProxyServer
Get's or Set's Proxy Server
Public propertyCode exampleProxyUserName
Get's or Set's Proxy UserName
Public propertyPublic_Token
Get's Public Property Token Implements IKite.Get's
Public propertyCode exampleRedirect_Url
Get's or Set's Redirect Url
Public propertyRequest_Token
Get's Request Token
Public propertyRoot_EndPoint
Get's Root EndPoint
Public propertyRtdPingInterval
Get's or Set's RtdPingInterval
Public propertyRtdPingIntervalSelf
Public propertyCode exampleSMS_Alerts
Get's or Set's SMS Alerts Status
Public propertySocketExpiry
Get's Socket Expiry Date
Public propertySocketStatus
Get's Socket status
Public propertySourceIds
Get's or Set's SourceIds
Public propertySqoffTimeMcx
Get's or Set's SqoffTimeMcx
Public propertySqoffTimeNse
Get's or Set's SqoffTimeNse
Public propertyStgysEnabled
Get's List of Stgy's enabled for the user
Public propertyCode exampleStream_Mode
Get's or Set's Stream Mode
Public propertySymbol_Download_Status
Get's Symbol Download Status
Public propertyTelegram_Alerts
Public propertyTelegram_UserName
Public propertyTickerCount
Get's number of symbols subscribed for quotes
Public propertyCode exampleTicksLog_Mode
Get's or Set's Ticks Log Mode
Public propertyCode exampleUseProxyServer
Get's or Set's Proxy Status
Public propertyUser_Type
Get's User Type
Public propertyVersion
Get's Version
Top
Methods
  NameDescription
Public methodBatchOrderPlacement
This method can be used to place multiple orders at once
Public methodCancelAmo
Cancels a after market order
Public methodCancelBOMain
Cancels a open BO entry order
Public methodCancelCOMain
Cancels a open CO entry order
Public methodCancelRegularOrder
Cancels a open or trigger pending simple order
Public methodCancelRegularOrder2
Public methodDeleteIECookies
Deletes Internet Explorer Cache, Cookies and Browsing History.
Public methodDispose()
Releases all resources used by the Kite
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the Kite and optionally releases the managed resources
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExitBO
Exits a open BO position
Public methodExitCO
Exits a cover order position
Protected methodFinalize
Finalize
(Overrides Object.Finalize().)
Public methodCode exampleGetAccessToken()
Retrieves Access Token from API server
Public methodCode exampleGetAccessToken(String)
Retrieves Access Token from API server
Public methodGetAtp
Get's ATP for the symbol.
Public methodGetAvgBoughtPrice
Get's Avg Bought Price for the symbol.
Public methodGetAvgBoughtPriceProduct
Get's Avg Bought Price for the symbol and Product.
Public methodGetAvgSoldPrice
Get's Avg Sold Price for the symbol.
Public methodGetAvgSoldPriceProduct
Get's Avg Sold Price for the symbol and Product.
Public methodGetBestAsk
Get's Best Ask for the symbol.
Public methodGetBestAskQty
Get's Best Ask Qty for the symbol.
Public methodGetBestBid
Get's Best Bid for the symbol.
Public methodGetBestBidQty
Get's Best Bid Qty for the symbol.
Public methodGetBoughtQty
Get's Bought Qty for the symbol.
Public methodGetBoughtQtyProduct
Get's Bought Qty for the symbol and Product.
Public methodGetBridgeLogs
Get's Bridge Logs
Public methodGetBridgePositions
Get's Bridge Positions
Public methodGetBridgePositionsAll
Get's All Bridge Positions
Public methodGetChildOrders
Get's the Child Orders for BO|CO
Public methodGetClose
Get's Close for the symbol.
Public methodGetContractExpiry
Public methodGetExch
Returns the Exchange for the given InstToken
Public methodGetExchToken
Get's Exch Token
Public methodGetExpiry
Get's Expiry
Public methodGetFunds
Retrieve's Funds and Margins from API server
Public methodGetFutureTradeSymbol
Public methodGetGrossMtm
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetHigh
Gets's High for the symbol.
Public methodGetHistData
Gets the Historical data
Public methodGetHistDataBatch
This method can be used to download and save historical data for multiple symbols at once
Public methodGetHoldings
Retrieve's Holdings from API server
Public methodGetIndexExpiry
Public methodGetIndexExpiryText
Public methodGetInstToken
Get's Inst Token
Public methodGetISIN
Get's ISIN
Public methodGetLastOrderId
Get's Id of the Last Placed order for the Exch, Symbol and Product Combination
Public methodGetLotSize
Get's the Lot Size
Public methodGetLow
Get's Low for the symbol.
Public methodGetLowerCircuit
Get's Lower Circuit for the symbol.
Public methodGetLtp
Get's Ltp for the symbol.
Public methodGetLTQ
Get's LTQ for the symbol.
Public methodGetLTT
Get's LTT for the symbol.
Public methodGetLUT
Get's LUT for the symbol.
Public methodGetMasterContract
Downloads Symbols for all exchanges enabled for user
Public methodGetMtm
Get's MTM for the symbol.
Public methodGetMtmProduct
Get's MTM for the symbol and Product.
Public methodGetMWSymbols
Returns the list of symbols added to market watch
Public methodGetNetQty
Get's Net Qty for the symbol.
Public methodGetNetQtyProduct
Get's Net Qty for the symbol and Product.
Public methodGetOIHigh
Get's Open Int High for the symbol.
Public methodGetOILow
Get's Open Int Low for the symbol.
Public methodGetOINetChg
Get's Open Int Net Chg for the symbol.
Public methodGetOIPctChg
Get's Open Int Pct Chg for the symbol.
Public methodGetOpen
Get's Open for the symbol.
Public methodGetOpenInt
Get's Open Int for the symbol.
Public methodGetOptionTradeSymbol
Public methodGetOrderBook
Retrieve's Order Bookfrom API server
Public methodGetOrderCTag
Get's OrderId for the given exch, trdsym and tag combination
Public methodGetOrderDetails
Get's the Order Details
Public methodGetOrderDiscQty
Get's the Order Disclosed Quantity
Public methodGetOrderElapsed
Public methodGetOrderExch
Get's the Order Exchange
Public methodGetOrderExchId
Get's the Order ExchId
Public methodGetOrderExchTime
Get's the Order Exch Time
Public methodGetOrderExchToken
Get's the Order Exchange Token
Public methodGetOrderFilledPrice
Get's the Order Filled Price
Public methodGetOrderFilledQty
Get's the Order Filled Qty
Public methodGetOrderHist
Get's the complete order history from API server
Public methodGetOrderIds
Get's all Order Ids for the given Exch, Symbol and Product Combination
Public methodGetOrderInstToken
Get's the Order Inst Token
Public methodGetOrderIsAmo
Get's the Order AMO Status
Public methodGetOrderMessage
Get's the Order Message
Public methodGetOrderParentId
Get's the Order ParentId
Public methodGetOrderPendingQty
Get's the Order Pending Quantity
Public methodGetOrderPrice
Get's the Order Price
Public methodGetOrderProdType
Get's the Order Product Type
Public methodGetOrderQty
Get's the Order Qty
Public methodGetOrderStatus
Get's the Order Status
Public methodGetOrderTag
Get's the Order Tag (API Supported)
Public methodGetOrderTime
Get's the Order Time
Public methodGetOrderTrans
Get's the Order Transaction Type
Public methodGetOrderTrdSym
Get's the Order Trade Symbol
Public methodGetOrderTriggerPrice
Get's the Order Trigger Price
Public methodGetOrderType
Get's the Order Type
Public methodGetOrderValidDate
Get's the Order Valid Date
Public methodGetOrderVariety
Get's the Order Variety
Public methodGetPositions
Retrieve's Positionsfrom API server
Public methodGetRequestTokenDriver
Public methodGetSegment
Get's Segment
Public methodGetSnapLtp
Gets the snap ltp for the given symbol from API server
Public methodGetSnapOHLC
Gets the snap ohlc for the given symbol from API server
Public methodGetSnapQuote
Gets the snap quote for the given symbol from API server
Public methodGetSnapQuoteIndex
Gets the snap quote for the given index from API server
Public methodGetSoldQty
Get's Sold Qty for the symbol.
Public methodGetSoldQtyProduct
Get's Sold Qty for the symbol and Product.
Public methodGetStrike
Get's Strike price
Public methodGetSymbolFromTrdsym
Public methodGetSymbols
Get's Symbol list
Public methodGetTickSize
Get's Tick Size
Public methodGetTotalBFOBrokerage
Public methodGetTotalBFOMtm
Public methodGetTotalBrokerage
Public methodGetTotalBuyQty
Get's Total Buy Qty for the symbol.
Public methodGetTotalCapital
Public methodGetTotalCapital2
Public methodGetTotalCash
Public methodGetTotalCDSBrokerage
Public methodGetTotalCDSMtm
Public methodGetTotalMTM
Get's the total MTM of the given exchange.
Public methodGetTotalNFOBrokerage
Public methodGetTotalNFOMtm
Public methodGetTotalSellQty
Gets's Total Sell Qty for the symbol.
Public methodGetTradeBook
Retrieve's Trade Bookfrom API server
Public methodGetTradeHist
Get's the complete trade history from API server
Public methodGetTrdSym
Returns the Trade Symbol for the given Token
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUpperCircuit
Gets's Upper Circuit for the symbol.
Public methodGetVolume
Get's Volume for the symbol.
Public methodIsTrdsymValid
Public methodCode exampleLogin()
Opens built-in WebBrowser control for login flow and retrieves the access code on succesful login.
Public methodCode exampleLogin(String)
Opens user choosen browser for login flow.
Public methodCode exampleLogout
Logouts the user
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodModifyAmo
Modifies a open or trigger pending after market order
Public methodModifyBOMain
Modifies a open BO entry order
Public methodModifyBOSl
Modifies a open BO stoploss order
Public methodModifyBOTgt
Modifies a open BO target order
Public methodModifyCOSl
Modifies trigger price of a CO stoploss order
Public methodModifyRegularOrder
Modifies a open or trigger pending simple order
Public methodModifyRegularOrder2
Public methodPlaceAmo
Places a after market order
Public methodPlaceBO
Places a BO order
Public methodPlaceCO
Places a cover order
Public methodPlaceRegularOrder
Places a Regular Order
Public methodPlaceRegularOrder2
Public methodPositionConversion
Convert Position from One Product to another
Public methodRefreshRTDQuotes
Refresh's RTD server quotes.
Public methodCode exampleSetAccessToken
Set's the earlier generated access token.
If you have valid access token, then you can just skip Login and GetAccessToken calls.
Login Method1 : Login --> GetAccessToken --> GetMasterContract
Login Method2 : SetAccessToken --> GetMasterContract
Public methodShowHistDataInputBox
Displays a Input Box where the user can enter or select symbol details required for GetHistData() Call.
Public methodShowInputBox
Displays a simple Input Box where the user will be prompt to enter value.
Public methodShowMarketDepth
Show Market depth for the given Trade Symbol
Public methodShowModifyWindow(Boolean)
Displays Modify Order Window where a user can modify/cancel order in UI mode.
Public methodShowModifyWindow(String, Boolean)
Displays Modify Order Window where a user can modify/cancel order in UI mode.
Public methodShowMsgBox
Displays a simple Message Box .
Public methodShowMsgBoxOkCancel
Displays a simple OkCancel Message Box .
Public methodShowMultiInputBox
Displays a simple Multi Input Box where the user will be prompt to enter multiple values.
Public methodShowOptionOrderWindow
Displays New Option Order Window where a user can place order in UI mode.
Public methodShowOrderWindow(Boolean)
Displays New Order Window where a user can place order in UI mode.
Public methodShowOrderWindow(String, String, String, String, Int32, String, String, Double, Double, Double, Double, Double, Boolean)
Displays Order Window where a user can place a order in UI mode.
Public methodShowOrderWindowBridge
Displays Order Window where a user can place order through Bridge class.
Public methodShowSettingsWindow
Displays Settings Window where a user can input API details in UI mode.
Public methodStartWebSocket
Starts WebSocket for Streaming Quotes
Public methodStopWebSocket
Stops WebSocket from Streaming Quotes
Public methodSubscribeMultiQuotes
Subscribes quotes for multiple symbols
Public methodSubscribeQuotes
Subscribes quotes for the given symbol
Public methodSubscribeQuotesAll
Subscribes quotes for all symbols in the market watch.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnSubscribeMultiQuotes
UnSubscribes quotes for multiple symbol
Public methodUnSubscribeQuotes
UnSubscribes quotes for the given symbol
Public methodUnSubscribeQuotesAll
UnSubscribes quotes for all symbols in market watch
Top
Events
  NameDescription
Public eventAppUpdateEvent
This is raised whenever critical app events occurs like network disconnection etc
Public eventMtmUpdateEvent
This is raised whenever any changes in the MTM
Public eventOrderUpdateEvent
This is raised whenever order updates arrives from API server
Public eventPositionUpdateEvent
This is raised whenever any changes in the positions
Public eventQuotesReceivedEvent
This is raised whenever new data arrives from API server
Public eventTradeUpdateEvent
This is raised whenever trade updates arrives from API server
Top
Remarks
Log folder : [APPDIR]\KiteNet\[DDMMMYYYY]
To use with excel, you need to register the KiteNet.dll using regasm as per your excel bit.
You can download the KiteNet.zip file from https://howutrade.in and follow the notes.
Batch file to register the DLL is included in the zip file.
You can get start with our Sample Excel Sheet or App.
Examples
***** Using in Visual Studio *****
'Add reference to KiteNet.dll in your project.
Imports KiteNet

Public Class SampleApp
Dim Kite as Kite = New Kite 'Creates a New Instance of Kite
End Class
 
***** Using in Excel *****
'Early Binding Example
'Add reference to KiteNet.dll in Visaul Basic Editor by
Menu --> Tools --> Add Reference --> Select 'DotNet Library For Kite Connect API'

Dim Kite as New Kite 'Creates a New Instance of Kite

'Late Binding without adding Reference
Dim Kite as Object
Set Kite = CreateObject("KiteNet.Kite")
See Also