Syntax
Public Sub AddPriceBuffer(ByRef SymbolID As String, ByRef Bid As Double ,ByRef Ask As Double , ByRef Optional High As Double = 0.0 , ByRef Optional Low As Double= 0.0, ByRef Optional Last As Double = 0.0, ByRef Optional Bank As String= )
Description
This functionused to add symbol information to buffer before callingBroadcastPrices function.
Parameters
Key | Description |
SymbolID | The Symbol number to be added, value of type String. |
Bid | Bid price value for added symbol, value of type is Double. |
Ask | Ask price value for added symbol, value of type is Double. |
High | High price value. Optional value of type is Double. |
Low | Low price value. Optional value of type is Double. |
Last | Last price value. Optional value of type is Double. |
Bank | Bank name. Optional value of type is String. |
Sample
Private Sub AddPrice_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddPrice.Click'CurSer is predefined variable as CVertexCurSvrAPICurSer.AddPriceBuffer ("SymbolID", 1.0, 2.0, 0.0, 0.0, 0.0,Bank name)CurSer.BroadcastPrices ()End Sub
See Also