Announcement

Collapse
No announcement yet.

OnQuoteChanged

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • OnQuoteChanged

    Is there any documentation for the function "OnQuoteChanged"

  • #2
    After you have requested real time quotes by calling:

    eSignal.requestSymbol sym, True

    The following function will be triggered when real-time data is available where sym is the symbol which this data set belongs to:

    Sample Usage:

    Dim quote As IESignal.BasicQuote

    Public Sub esignal_OnQuoteChanged(ByVal sym As String)
    quote = esignal.GetBasicQuote(sym)

    qLast = quote.dLast
    qBid = quote.dBid
    qAsk = quote.dAsk

    If qLast <> 0 Then
    sBar = "Last = " & Str(qLast) & vbTab & "Bid = " &
    Format$(qBid) & vbTab & "Ask = " & Format$(qAsk)
    End If

    List1.AddItem sBar, 0

    For further information, you can consult the Desktop API documentation and VB sample.

    Comment

    Working...
    X