question

Upvotes
Accepted
1 0 1 2

Order will not submit. Results is always and null

I am trying to submit a test order via C#. I am always getting success = false and err = null

FWIW. I can place orders via the REDIPlus > Montage Monitor. Also, I can read Positions via my C#. So I know my code is ok.

        ORDER ptOrder = new ORDER();
        Object err = null;
        bool success;


        ptOrder.Symbol = "IBM";
        ptOrder.Side = "Buy";
        ptOrder.Quantity = 7;
        ptOrder.Exchange = "DEMO DMA"; 
        ptOrder.Ticket = "Bypass";
        ptOrder.TIF = "Day";
        ptOrder.Account = "PQK******";
        ptOrder.PriceType = "Market";


        success = ptOrder.Submit(ref err);


p.s. I also tried REDIPortfolioTrader. I


---

Still cannot place an order, but I can open the Montage Dialog with the above information pre-populate

ptOrder.DisplayMontage(50, 50);
#technologyredi-apiorder
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
83.1k 281 53 77

@pjsteele

Thank you for reaching out to us.

I can run the code properly.

            ORDER ptOrder = new ORDER();
            Object err = null;
            bool success;

            ptOrder.Symbol = "IBM";
            ptOrder.Side = "Buy";
            ptOrder.Quantity = 7;
            ptOrder.Exchange = "DEMO DMA";
            ptOrder.Ticket = "Bypass";
            ptOrder.TIF = "Day";
            ptOrder.Account = "EQUITY-TR";
            ptOrder.PriceType = "Market";

            success = ptOrder.Submit(ref err);
            Console.WriteLine(success);
            if (success == false)
            {
                Console.WriteLine(err);
            }

1692254497699.png

The error is similar to this discussion. Please contact the Refinitiv REDI EMS support team directly via MyRefinitiv to verify your account.



1692254497699.png (34.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 1 2

Thank you @Jirapongse .

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.