Topic: Procedure written using OEC API
(2 messages, Page 1 of 1)
Trying to figure out how to write the following procedure using the GF API COM???
Public Sub CancelActiveOrder(ByVal lPointer As Long)
Dim ActiveOrder As GF_Api_COM.ordersApi
On Error GoTo Err_CancelActiveOrder
' Find the Order that is still Active, then Cancel It
Set ActiveOrder = Glob.c.orders.Item(aryCommodities(lPointer).Trade_ModifyId)
If Not ActiveOrder Is Nothing Then
If Form_Login.GetAccount().ID = ActiveOrder.Account.ID Then
On Error Resume Next
gParms = CStr(lPointer)
Call LogError(Err.Number, Err.Description, "NESClass", "CancelActiveOrder()", gParms)
Joined: Aug 24, 2017
I'm not sure if I have enough context to help you. What seems to be the issue?
I am wondering if this type is correct:
OrdersApi is an object that contains methods related to orders, not an order itself.