refactor: Rename py-market-data -> py_market_data Because '-' is an illegal character in py module names build: Clean up py_market_data cmake proj fix build: Ensure py scripts use unix line endings I'm not sure why, but my sparkd build (linux) suddenly began failing to generate cpp headers for protos. The error message indicated it was due to an unexpected carriage return (\r) in plugin.py: /usr/bin/env: ‘python\r’: No such file or directory build: Add py_market_data_providers cmake proj For md providers implemented in python. They're loaded as plugins in sparkd Clean up MarketDataGateway python md plugins cleanup: Merge provider py scripts into lib_py_market_data proj doc: Add README and doxy docs for py md providers cleanup: Remove old py_market_data_providers project It has been merged into the py_market_data project. Clean up py_market_data install, config.cmake feat: Get python md plugins ready for prime time * Add cmd to run python md provider c++ interop sanity check
23 lines
553 B
C++
23 lines
553 B
C++
#pragma once
|
|
|
|
#include <CLI11/CLI11.hpp>
|
|
#include <memory>
|
|
|
|
namespace bts::cmds {
|
|
|
|
/**
|
|
* This command is designed to run a quick sanity check on Python md provider C++ interop.
|
|
* It instantiates a python md provider (in C++) and calls <provider>.start() with a dummy
|
|
* sink that prints updates to console, but does not write md to shared memory.
|
|
*/
|
|
struct TestPythonMdProviderCmd : public CLI::App {
|
|
TestPythonMdProviderCmd();
|
|
~TestPythonMdProviderCmd();
|
|
|
|
private:
|
|
struct Args;
|
|
std::unique_ptr<Args> args_;
|
|
};
|
|
|
|
} // namespace bts::cmds
|