24 lines
592 B
C++
24 lines
592 B
C++
#pragma once
|
|
|
|
#include "lib/domain_model/SecurityKey.h"
|
|
#include "lib/md/ExchangeSecurityKey.h"
|
|
#include "lib/md/SecurityCache.h"
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
namespace bts {
|
|
namespace api {class Security;}
|
|
namespace md {
|
|
class MDClient;
|
|
class SecurityOracle {
|
|
SecurityCache& _cache;
|
|
public:
|
|
SecurityOracle(SecurityCache&);
|
|
~SecurityOracle();
|
|
const api::Security* get_security(SecurityKey key) const;
|
|
const api::Security* get_security(ExchangeSecurityKey key) const;
|
|
std::vector<api::Security const*> get_securities() const;
|
|
};
|
|
|
|
}}//namespace
|