public string CancelOrder(params string[] list) { var unmanaged = new UnmanagedOrders(list); _proxy.XRequest(RequestType.ReqOrderAction, _api, IntPtr.Zero, 0, 0, unmanaged.InOrderIdPtr, list.Length, unmanaged.OutOrderIdPtr, list.Length, IntPtr.Zero, 0); return(Marshal.PtrToStringAnsi(unmanaged.OutOrderIdPtr)); }
public string SendOrder(params OrderField[] orders) { var unmanaged = new UnmanagedOrders(orders); _proxy.XRequest(RequestType.ReqOrderInsert, _api, IntPtr.Zero, 0, 0, unmanaged.OrderPtr, orders.Length, unmanaged.OutOrderIdPtr, orders.Length, IntPtr.Zero, 0); return(Marshal.PtrToStringAnsi(unmanaged.OutOrderIdPtr)); }