-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStockMetadata.h
More file actions
68 lines (54 loc) · 1.44 KB
/
StockMetadata.h
File metadata and controls
68 lines (54 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#include "PriceAtDate.h"
#include "CSVParser.h"
namespace quantserver
{
#define ERROR_VAL -99.99
class StockMetadata
{
//Qualitative analyst-ish data to expose for calculation. For example, close > 10% less than book value
protected:
std::string _symbol ;
std::string _name ;
BIGDECIMAL _eps;
BIGDECIMAL _epsEstimate ;
BIGDECIMAL _epsEstimateNextYr;
BIGDECIMAL _ebitda;
BIGDECIMAL _pe_ratio;
BIGDECIMAL _peg_ratio;
BIGDECIMAL _ps_ratio;
BIGDECIMAL _bookValue;
BIGDECIMAL _outstandingShares;
BIGDECIMAL _targetPrice;
BIGDECIMAL _marketCap;
BIGDECIMAL _dividendYield;
BIGDECIMAL _dividendPerShare;
BIGDECIMAL _bid;
BIGDECIMAL _ask;
BIGDECIMAL parseValAt(PtrStringVector& data , int i);
public:
static ScriptManager& chai(ScriptManager& scriptManager);
StockMetadata(void);
StockMetadata(std::string& symbol , PtrStringVector& data);
virtual ~StockMetadata(void);
//Getters
const std::string& symbol() ;
const std::string& name() ;
BIGDECIMAL eps();
BIGDECIMAL epsEstimate() ;
BIGDECIMAL epsEstimateNextYr();
BIGDECIMAL ebitda();
BIGDECIMAL pe_ratio();
BIGDECIMAL peg_ratio();
BIGDECIMAL ps_ratio();
BIGDECIMAL bookValue();
BIGDECIMAL outstandingShares();
BIGDECIMAL targetPrice();
BIGDECIMAL marketCap();
BIGDECIMAL dividendYield();
BIGDECIMAL dividendPerShare();
BIGDECIMAL bid();
BIGDECIMAL ask();
static PtrStringVector getRequiredItems();
};
}