Knowledgebase:
Spread
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 25 October 2017 12:20 PM

Syntax

 Public Function Spread(ByRef symbolID As Integer) As Object

This method is used to return the spread value for the given symbol, this value depends on spread value for the selected account 

Parameters

Parameter Description 
SymbolID Trading Symbol ID, value of type Integer

Return value

Returns the spread value. 

Sample

 Private Sub BtnSpread_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSpread.Click

          Dim sym As COSymbol

          sym = API.SymbolByName("EUR/USD")

          Msgbox(API.spread(sym.ID)

 End Sub


See Also


VertexFX Client 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