question

Upvotes
Accepted
1 0 0 0

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.

@elf

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@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.