SimExecutionGateway almost working
This commit is contained in:
1 parent
bed6feae3f
commit
7e5c71f337
19 files changed
+422
-368
No files matched your search
@@ -168,9 +168,17 @@ AdminServiceUtils::resolve_connection(
|
||||
case api::Venue::VENUE_FTX:
|
||||
case api::Venue::VENUE_BINANCE:
|
||||
case api::Venue::VENUE_BINANCE_US:
|
||||
case api::Venue::VENUE_BINANCE_USDS_FUTURES:
|
||||
rv = resolve_sim_connection(data, account, sec);
|
||||
break;
|
||||
case api::Venue::VENUE_BINANCE_USDS_FUTURES:{
|
||||
if (account.has_connections())
|
||||
for (const std::string &conn_name :
|
||||
account.connections().exchange_connection_names()) {
|
||||
const bts::api::admin::ExchangeConnection *conn =
|
||||
find_connection(data, conn_name);
|
||||
if (conn != nullptr && conn->has_general_connection())
|
||||
return conn;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
case api::Venue::VENUE_CBOE:
|
||||
case api::Venue::VENUE_CBOECFE:
|
||||
case api::Venue::Venue_INT_MIN_SENTINEL_DO_NOT_USE_:
|
||||
@@ -223,6 +231,8 @@ void AdminServiceUtils::fill_connections_from_config(
|
||||
add_connection(admin_data, connection);
|
||||
break;
|
||||
default:
|
||||
connection.mutable_general_connection()->set_exchange(c.venue());
|
||||
add_connection(admin_data, connection);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -539,7 +549,7 @@ bts::api::orderman::RoutingRecord AdminServiceUtils::get_routing_record(
|
||||
}
|
||||
switch (sec.exchange()) {
|
||||
case api::Venue::VENUE_DERIBIT: {
|
||||
rv.set_session("sim");
|
||||
rv.set_session("deribit_1");
|
||||
rv.set_account(account_ptr->name());
|
||||
rv.set_operator_id(user_ptr->name());
|
||||
AdminServiceUtils::ExchangeSubAccountResolver resolver;
|
||||
|
||||
Reference in new issue
Block a user