set span to default off, hook up admin boolean to enforce span behind config key
This commit is contained in:
1 parent
4f997505f3
commit
33f533af9b
3 files changed
+15
-14
No files matched your search
@@ -162,7 +162,8 @@ void MarginServiceServer::publish_excess_liquidity_report(const api::position::M
|
||||
{
|
||||
report.set_leverage_factor( acct->margin_limit().leverage_factor_percentage() );
|
||||
report.set_cash_balance(acct->margin_limit().cash_balance());
|
||||
report.set_should_enforce_margin(acct->margin_limit().enforce_margin());
|
||||
report.set_should_enforce_margin(acct->margin_limit().enforce_margin() &&
|
||||
config::get<bts::config::SpanMargin>().enabled());
|
||||
}
|
||||
|
||||
double netliq = report.leverage_factor() * report.cash_balance();
|
||||
|
||||
Reference in new issue
Block a user