Also rename files in snake_case (standard naming convention for protos) https://protobuf.dev/programming-guides/style/
32 lines
645 B
C++
32 lines
645 B
C++
#pragma once
|
|
|
|
#include "sparkd/md/IMarketDataSource.h"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace bts::persistence {
|
|
class IDGenerator;
|
|
}
|
|
|
|
namespace bts::md {
|
|
|
|
class PyMarketDataSubscription : public IMarketDataSource {
|
|
public:
|
|
explicit PyMarketDataSubscription(
|
|
std::string py_plugin,
|
|
std::vector<std::string> module_paths,
|
|
std::shared_ptr<persistence::IDGenerator> sec_id_store);
|
|
~PyMarketDataSubscription();
|
|
|
|
void start(std::shared_ptr<IMarketDataListener> listener) override;
|
|
void stop() override;
|
|
|
|
private:
|
|
struct PImpl;
|
|
std::unique_ptr<PImpl> me_;
|
|
};
|
|
|
|
} // namespace bts::md
|