Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

What do you normally call a class that stores open, high, low, close, volumne, and timestamp of a financial instrument(e.g. stock)?

For example, in a 5 minute intraday chart, this object would hold OHLC, and volume between 10:00 and 10:05AM.

Can anyone working in the field give me an advice?


migration rejected from stackoverflow.com 5 hours ago

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

put on hold as primarily opinion-based by gnat, durron597, Snowman, Ixrec, MichaelT 5 hours ago

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 3 down vote accepted

Most systems that I have seen distinguish between an InstantQuote and an AggregateQuote (or similar naming).

InstantQuote refers to the pricing at a given time, which is usually just a price (I hope you have a Currency type) and symbol. These have time stamps.

AggregateQuote represents a quote at a given time that also includes information aggregated from instant quotes over the day. For instance, at the end of the trading day you calculate start and end times, calculating timestamp, high low, total volume, etc. The idea is that you could always recalculate it based on historical data.

In some systems, there is also an explicit notion of a trade (which has a timestamp and volume and symbol), which is then used to calculate the aggregate quote.

Whether you have both InstantQuote and a Trade depends on the semantics. In some markets (e.g., ForEx), you may want to track bid/asks and L2 levels even when no actual trades take place.


Not the answer you're looking for? Browse other questions tagged or ask your own question.