This function modifies order quantity.
Signature
function modifyOrderQuantity(account, orderId, quantity)
Example
orderId = placeOrder(AT_ACCOUNT, AT_EXCHANGE, AT_SYMBOL, "BUY", "LIMIT", AT_PRODUCT_TYPE, 10, 100.5, defaultTriggerPrice(), True); // You can save this orderId in a static variable saveStaticVariableText(AT_ACCOUNT, "ORDER_ID", orderId); // Somewhere later in your code, // when you want to modify this order // Read orderId from static variable orderId = readStaticVariableText(AT_ACCOUNT, "ORDER_ID"); // Modify the order modifyOrderQuantity(AT_ACCOUNT, orderId, 20);
Signature
Public Function ModifyOrderQuantity( _ PseudoAccount As String, _ OrderId As String, _ Quantity As Integer) As Boolean
Example
orderId = PlaceOrder("ACC_NAME", "NSE", "SBIN", "BUY", "LIMIT", "INTRADAY", 10, 100.5, 0, True); ' Somewhere later in your code, ' when you want to modify this order ' Modify the order Call ModifyOrderQuantity("ACC_NAME", orderId, 20)
Signature
bool modifyOrderQuantity(string account, string orderId, int quantity)
Example
orderId = placeOrder(AT_ACCOUNT, AT_EXCHANGE, AT_SYMBOL, BUY, LIMIT, INTRADAY, 10, 100.5, defaultTriggerPrice(), true); // You can save this orderId in a static variable // Somewhere later in your code, // when you want to modify this order // Modify the order modifyOrderQuantity(AT_ACCOUNT, orderId, 20);
In this example, we are changing quantity form 10 to 20.
Parameters
- account – pseudo account
- orderId – publisherId (orderId given by placeOrder*() function)
- quantity – quantity
Return value
This function sends request to modify order quantity to AutoTrader Desktop Client. On successful submission, it will return True, otherwise False
The type of the return value is Boolean.