Knowledgebase:
AddPriceBuffer
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 24 August 2016 08:26 AM

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=” ”)

This function used to add symbol information to buffer before calling BroadcastPrices 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 CVertexCurSvrAPI

CurSer.AddPriceBuffer ("SymbolID", 1.0, 2.0, 0.0, 0.0, 0.0,”Bank name”)

CurSer.BroadcastPrices ()

End Sub


See Also


Back to Currency Server API Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions