Syntax
Public function UpdateAlert(AccountID As Integer, AlertID As Integer, SymbolID As Integer, Condition As Integer, Value As Double, AlertType As Integer, Enabled As Boolean)
Description
The UpdateAlert operation is used to Update a given alert number that takes on a specific accounts.
Request Parameters
Name |
Description |
Required |
AccountId |
- AccountID to whom you want to createa new alertfor
- Type: Integer
- Default: None
- Constraints:Must be valid Account ID and accessible by logged in Session
|
Yes |
AlertID |
- The number of alert that want to update it
- Type : Integer
- Default : none
- Constraints:Must be valid Alert ID and accessible by the provided Account number
|
Yes |
SymbolID |
- Symbol identifier to create a new Alert on
- Type :Integer
- Constraints :Must be valid , used Symbol Id
|
Yes |
Condition |
- The condition that the alert will hit according on
- Type :Integer
- Constraints :Must be one of the following :
1 : Means Bid Greater 2 : Means Bid Less 3 : Means Ask Greater 4 : Means Ask Less 5 : Means Balance Greater 6 : Means Balance Less 7 : Means Equity Greater 8 : Means Equity Less 9 : Means Margin level Greater 10 : Means Margin Level Less 11 : Means Profit loss Greater 12 : Means Profit loss Less
|
Yes |
Value |
- The condition that the alert will hit on
- Type is Double
|
Yes |
AlertType |
- The type of the alert
- Type : Integer
- Constraints : Must be one of the Following :
1 : means Sound Alert 2 : means SMS Alert
|
Yes |
Enabled |
- To indicate if the alert has been enabled or not
- Type : Boolean
|
Yes |
Response Elements
Name |
Description |
Result |
The operation return list ofAlertin casesuccess ,otherwise an expliciterror codeis returned when alert Id is less than 0
The Following are the Alert data member: Enabled as Boolean
ID As String Symbol as Csymbol SymbolName as String SymbolID As Long Condition as Integer : 1 : Means Bid Greater 2 : Means Bid Less 3 : Means Ask Greater 4 : means Ask Less 5 : Means Balance Greater 6 : Means Balance Less 7 : Means Equity Greater 8 : Means Equity Less 9 : Means Margin level Greater 10 : means Margin Level Less 11 : Means Profit loss Greater 12 : means Profit loss Less Value as Double Type as integer 1 : means Sound 2 : means SMS Hit as Boolean LastHitTime as String LastHitPrice as String
|
Sample
UpdateAlert
Loading ...
See Also
GetDelivaryItem
getClientGMT
GetStmtHeaderFooter
VertexFX WCF Service Index