Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptochassis committed Oct 23, 2023
1 parent 373254b commit bd067b0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ class ExecutionManagementServiceBinanceDerivativesBase : public ExecutionManagem
std::string positionAmt;
auto it = x.FindMember("positionAmt");
if (it != x.MemberEnd()) {
positionAmt = it->value.GetString();
} else {
positionAmt = x["maxQty"].GetString();
}
positionAmt = it->value.GetString();
} else {
positionAmt = x["maxQty"].GetString();
}
element.insert(CCAPI_EM_POSITION_QUANTITY, positionAmt);
element.insert(CCAPI_EM_POSITION_ENTRY_PRICE, x["entryPrice"].GetString());
element.insert(CCAPI_EM_POSITION_LEVERAGE, x["leverage"].GetString());
Expand Down

0 comments on commit bd067b0

Please sign in to comment.