Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }