Another clang-format run, changed how parameters are binned

This commit is contained in:
Pedro Pinto committed 2020-12-30 17:30:10 -05:00
1 parent 8f21a77150
commit de063e51f0
452 files changed
+5506 -2380

No files matched your search

@@ -219,7 +219,8 @@ struct MarginServiceCore::PImpl {
// Ticker, or Maturity Code and Clearing Code, or Maturity Code and Product
// Name. so Ticker, Net Positions
void create_margin_request(
const std::string &portfolio_id, pugi::xml_document &doc,
const std::string &portfolio_id,
pugi::xml_document &doc,
pugi::xml_node &trades_node) {
auto att = doc.append_attribute("standalone");
att.set_value("yes");
@@ -244,7 +245,8 @@ struct MarginServiceCore::PImpl {
}
bool parse_margin_response(
const CurlMsg &msg, std::string &portfolio_id,
const CurlMsg &msg,
std::string &portfolio_id,
std::string &calculation_id) {
std::string str(msg.data.begin(), msg.data.end());
pugi::xml_document doc;
@@ -294,7 +296,8 @@ struct MarginServiceCore::PImpl {
};
bool compute_margin(
const std::string &account_name, const std::string &portfolid_id,
const std::string &account_name,
const std::string &portfolid_id,
const std::vector<Position> &pos,
std::function<void(const MarginResult &)> cb) {
pugi::xml_document doc;
@@ -356,14 +359,16 @@ MarginServiceCore::MarginServiceCore(utils::Dispatcher &disp)
MarginServiceCore::~MarginServiceCore() {}
void MarginServiceCore::compute_margin(
const std::string &acct, const std::vector<Position> &pos,
const std::string &acct,
const std::vector<Position> &pos,
std::function<void(const MarginResult &)> cb) {
me->dispatcher.post(
[=]() { query_margin_webapi(acct, pos, cb); }, me->throttle);
}
bool MarginServiceCore::query_margin_webapi(
const std::string &acct, const std::vector<Position> &pos,
const std::string &acct,
const std::vector<Position> &pos,
std::function<void(const MarginResult &)> cb) {
utils::Uuid guid;
try {