18 lines
494 B
C++
18 lines
494 B
C++
#include "SecurityOracle.h"
|
|
#include "MDClient.h"
|
|
|
|
namespace bts {
|
|
namespace md {
|
|
|
|
SecurityOracle::SecurityOracle(const MDClient& client): _client(client) {}
|
|
SecurityOracle::~SecurityOracle() { }
|
|
const api::Security* SecurityOracle::get_security(SecurityKey key) const {
|
|
return _client.current_consumer().get_security(key);
|
|
}
|
|
|
|
std::vector<api::Security const*> SecurityOracle::get_securities() const {
|
|
return _client.current_consumer().get_securities();
|
|
}
|
|
|
|
}}//namespace
|