order session
This commit is contained in:
1 parent
4351d6e66a
commit
d078e73179
6 files changed
+199
-7
No files matched your search
@@ -201,6 +201,7 @@ void DropCopySession::subscribe_fills_and_orders(const FIX::SessionID sessionID)
|
||||
void DropCopySession::process_order_state(const bts::api::orderman::OrderState& state, uint& filled, uint& leaves, double& avgprx,
|
||||
FIX::OrdStatus& fstatus, bts::api::orderman::NativeOrderState& native, const bts::api::orderman::Fill* fill)
|
||||
{
|
||||
UNUSED(fill);
|
||||
filled = state.filled_quantity();
|
||||
leaves = state.quantity() - filled;
|
||||
avgprx = state.avg_price();;
|
||||
@@ -236,6 +237,7 @@ md::SecurityPtr DropCopySession::resolve_execution_report_security(md::SecurityP
|
||||
FIX44::ExecutionReport DropCopySession::build_fill(const FIX::SessionID& sess,
|
||||
const bts::api::orderman::Fill& fill, bool change)
|
||||
{
|
||||
UNUSED(sess);
|
||||
auto exec = FIX::ExecType(FIX::ExecType_PARTIAL_FILL);
|
||||
FIX::OrdStatus status;
|
||||
uint filled = 0; uint leaves = 0; double prx = 0.0;
|
||||
@@ -299,6 +301,8 @@ FIX44::ExecutionReport DropCopySession::build_fill(const FIX::SessionID& sess,
|
||||
FIX44::ExecutionReport DropCopySession::build_order_status(const FIX::SessionID& sess,
|
||||
const bts::api::orderman::OrderRecord& order, bool change )
|
||||
{
|
||||
UNUSED(sess);
|
||||
UNUSED(change);
|
||||
auto exec = FIX::ExecType(FIX::ExecType_NEW);
|
||||
_order_cache.lock( [&exec, &order] (auto& order_cache)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user