feat: Add support for python md plugins
This commit is contained in:
1 parent
9a49767b75
commit
32fe2533c7
47 files changed
+2276
-10
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace bts::md::py_interop {
|
||||
|
||||
/**
|
||||
* @brief A placeholder object that represents a Spot contract.
|
||||
*
|
||||
* @details Unlike the similarly named types `PyFuture` and `PyOption`, this class has no members.
|
||||
* A Spot contract's properties are universal to all security types in our system, and are thus all
|
||||
* defined in `PySecurity`. It exists so we can follow the "one of" paradigm per security type.
|
||||
*/
|
||||
class PySpot {
|
||||
public:
|
||||
std::string to_string() const;
|
||||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const PySpot &spot) noexcept;
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
// Definition
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
inline std::string PySpot::to_string() const { return ""; }
|
||||
|
||||
inline std::ostream &operator<<(
|
||||
std::ostream &out, const PySpot & /*spot*/) noexcept {
|
||||
return out;
|
||||
}
|
||||
|
||||
} // namespace bts::md::py_interop
|
||||
Reference in new issue
Block a user