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?

share|improve this question

migrated from stackoverflow.com Mar 15 '11 at 17:16

This question came from our site for professional and enthusiast programmers.

2 Answers 2

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.

share|improve this answer

Maybe something like EquityTradingData?

It could be generated from a list of trading events (quantity, price, time) to whatever granularity you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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