Remove unused file 'ImpliedFifoSecurityMatcher.h'
This was an old version of the implied fifo matcher, now defined in 'FifoImpliedSecurityMatcher.h'.
This commit is contained in:
1 parent
f42137d86c
commit
17d20bac8b
1 file changed
-50
@@ -1,50 +0,0 @@
|
||||
#pragma once
|
||||
#include "lib/md/IntPrice.h"
|
||||
#include "server/sparkd/cmds/spartan/back_testing/matcher/FifoSecurityMatcher.h"
|
||||
#include "server/sparkd/cmds/spartan/back_testing/matcher/fill_depot.h"
|
||||
#include "server/sparkd/cmds/spartan/domain/SecuritySnapshot.h"
|
||||
#include "server/sparkd/cmds/spartan/market_data/common/mdp3_common.h"
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
namespace bts::spartan::mdp3 {
|
||||
struct ImpliedFifoSecurityMatcher {
|
||||
ImpliedFifoSecurityMatcher(SecurityID security_id)
|
||||
: _security_id(security_id), _implied_mkt() {}
|
||||
|
||||
ImpliedBook book(api::Side side) const;
|
||||
Quantity
|
||||
fill(OrderKey key, api::Side side, Quantity qty, FillDepot &fills);
|
||||
// Note: this class is NOT responsible for deleting any FifoSecurityMatcher
|
||||
// pointers. The FifoMatcherContext creates one FifoMergedSecurityMatcher per
|
||||
// each security, and each FifoMergedSecurityMatcher creates/owns a
|
||||
// FifoSecurityMatcher pointer (and is responsible for deleting it). The
|
||||
// FifoSecurityMatcher pointer passed to this method should be owned by a
|
||||
// FifoMergedSecurityMatcher.
|
||||
// Note the absense of a 'side' parameter: unit_qty should be positive for
|
||||
// Buys, negative for Sells.
|
||||
void add_leg(
|
||||
SecurityID sec_id, FifoSecurityMatcher *m, Quantity unit_qty) {
|
||||
_implied_mkt.insert({sec_id, {m, unit_qty}});
|
||||
}
|
||||
|
||||
SecurityID security_id() const { return _security_id; }
|
||||
std::tuple<Price, Quantity> top_of_book(api::Side side) const;
|
||||
|
||||
private:
|
||||
SecurityID _security_id;
|
||||
std::map<SecurityID, std::tuple<FifoSecurityMatcher *, Quantity>>
|
||||
_implied_mkt;
|
||||
// hide copy ctr
|
||||
ImpliedFifoSecurityMatcher(const ImpliedFifoSecurityMatcher &);
|
||||
|
||||
void _book(
|
||||
api::Side side,
|
||||
std::vector<std::tuple<Price, Quantity>> &dest) const;
|
||||
uint32_t _fill_order(const MDP3Order &order);
|
||||
};
|
||||
} // namespace bts::spartan::mdp3
|
||||
Reference in new issue
Block a user