So we can subscribe to depth for "FTX Options" or "FTX BTC Futures", rather than having to list each security explicitly. This commit also unhooks binance from MarketDataGateway. A new paradigm is emerging with the FTX impl, and it'll be easier to redo Binance than try to make the existing impl fit the new mold. Unfortunately, ccapi doesn't provide all the security metadata we need, such as the security type and expiration date/time, so we get the list of FTX securities directly from the exchange.
33 lines
696 B
C++
33 lines
696 B
C++
#pragma once
|
|
#ifdef SPARK_ENABLE_CCAPI
|
|
#include <memory>
|
|
|
|
namespace bts::md::ftx {
|
|
class FTXSubscription;
|
|
}
|
|
|
|
namespace bts::md {
|
|
|
|
class MarketDataSubscription {
|
|
public:
|
|
MarketDataSubscription();
|
|
|
|
MarketDataSubscription(const MarketDataSubscription &) noexcept = delete;
|
|
MarketDataSubscription(MarketDataSubscription &&) noexcept = default;
|
|
MarketDataSubscription &operator=(const MarketDataSubscription &) noexcept =
|
|
delete;
|
|
MarketDataSubscription &operator=(MarketDataSubscription &&) noexcept =
|
|
default;
|
|
|
|
~MarketDataSubscription();
|
|
|
|
void add(ftx::FTXSubscription);
|
|
|
|
private:
|
|
struct PImpl;
|
|
std::unique_ptr<PImpl> me_;
|
|
};
|
|
|
|
} // namespace bts::md
|
|
#endif
|