question

Upvotes
Accepted
3 0 1 3

For the C# REDI API, how do I get the previous day's closing price?

I am using the REDIConsole1 sample application, and added what I thought was the previous close price column name, but it always is returning 0. I see the previous close price (PCls) in the Montage II window.

...
PCls = GetCell(quoteCache, row, "PCls", out errCode).ToString();
...


Output is always empty:

Symbol=TSLA Action=Snapshot Bid=187.36 Ask=187.43 Last=187.35 LastTradeSize= Volume=1099660 ISIN=US88160R1014 PCls=

#technology#contentredi-api
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.

1 Answer

· Write an Answer
Upvotes
Accepted
83.1k 281 53 77

@elf

Thank you for reaching out to us.

Is it the "Close" field?

PreviousClose = GetCell(quoteCache, row, "Close", out errCode).ToString();
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.

Ok, I will try that tomorrow, thanks.

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.