LTP price in my program is not matching with KITE

t_sribal
Sir
why LTP price in my program is not matching with KITE. here is the screen shot





Kite.jpg 1015.8K
  • HowUTrade
    @t_sribal
    How you are updating the DataGrid values?
    We checked at our end, it is almost updating at par with Kite.



    MW.png 72.9K
  • t_sribal
    using web socket,
    by subscribing using code "Kite.SubscribeQuotes("NSE", Symbol(n))"
    and retriving using code
    " DictLtp.Item(e.TrdSym) = e.LTP
    Dicthigh.Item(e.TrdSym) = e.High
    Dictlow.Item(e.TrdSym) = e.Low
    Dictopen.Item(e.TrdSym) = e.Open
    Dictbuyers.Item(e.TrdSym) = e.TotalBuyQty
    Dictsellers.Item(e.TrdSym) = e.TotalSellQty
    "
  • t_sribal
    sir data is delayed by about 4 minutes
  • HowUTrade
    Post the code where you are updating the values of data grid.

    Something wrong in your code.
    You can just compare the data from quotesreceived event with kite directly, not datagrid.
  • t_sribal
    getting quotes here

    Public Sub Quotes_Received(sender As Object, e As KiteNet.QuotesReceivedEventArgs)
    try
    If DictLtp.TryGetValue(e.TrdSym, 0) Then 'Check whether Key Exists or Not
    DictLtp.Item(e.TrdSym) = e.LTP
    'End If
    Catch ex As Exception
    MsgBox(ex.Message) 'Display any Exceptions raised
    End Try
    End Sub

    updating datagrid and also comparing data using one second timer here

    Private Sub TimerOrder_Tick(sender As Object, e As EventArgs) Handles Timerorder.Tick
    Dim ltp As Double = DictLtp.Item(symb)
    Dim rowvalues As String() = New String() {ltp.ToString}
    DataGridView2.Rows.Add(rowvalues)
    End Sub
Sign In or Register to comment.