@@ -323,7 +323,7 @@ TEST_F(ExecutionManagementServiceBinanceUsdsFuturesTest, convertRequestGetAccoun
323323 EXPECT_EQ (req.method (), http::verb::get);
324324 verifyApiKey (req, this ->credential .at (CCAPI_BINANCE_USDS_FUTURES_API_KEY));
325325 auto splitted = UtilString::split (std::string (req.target ()), " ?" );
326- EXPECT_EQ (splitted.at (0 ), " /fapi/v2 /account" );
326+ EXPECT_EQ (splitted.at (0 ), " /fapi/v3 /account" );
327327 auto paramMap = Url::convertQueryStringToMap (splitted.at (1 ));
328328 EXPECT_EQ (paramMap.at (" timestamp" ), std::to_string (this ->timestamp ));
329329 verifySignature (splitted.at (1 ), this ->credential .at (CCAPI_BINANCE_USDS_FUTURES_API_SECRET));
@@ -421,7 +421,7 @@ TEST_F(ExecutionManagementServiceBinanceUsdsFuturesTest, convertRequestGetAccoun
421421 EXPECT_EQ (req.method (), http::verb::get);
422422 verifyApiKey (req, this ->credential .at (CCAPI_BINANCE_USDS_FUTURES_API_KEY));
423423 auto splitted = UtilString::split (std::string (req.target ()), " ?" );
424- EXPECT_EQ (splitted.at (0 ), " /fapi/v2 /positionRisk" );
424+ EXPECT_EQ (splitted.at (0 ), " /fapi/v3 /positionRisk" );
425425 auto paramMap = Url::convertQueryStringToMap (splitted.at (1 ));
426426 EXPECT_EQ (paramMap.at (" timestamp" ), std::to_string (this ->timestamp ));
427427 verifySignature (splitted.at (1 ), this ->credential .at (CCAPI_BINANCE_USDS_FUTURES_API_SECRET));
@@ -439,12 +439,11 @@ TEST_F(ExecutionManagementServiceBinanceUsdsFuturesTest, convertTextMessageToMes
439439 "unrealizedProfit": "0.00000000",
440440 "positionInitialMargin": "0",
441441 "openOrderInitialMargin": "0",
442- "leverage": "100",
443442 "isolated": true,
444443 "entryPrice": "0.00000",
445444 "maxNotional": "250000",
446445 "positionSide": "BOTH",
447- "positionAmt": "0 ",
446+ "positionAmt": "10 ",
448447 "updateTime": 0
449448 }
450449 ]
@@ -459,9 +458,8 @@ TEST_F(ExecutionManagementServiceBinanceUsdsFuturesTest, convertTextMessageToMes
459458 Element element = elementList.at (0 );
460459 EXPECT_EQ (element.getValue (CCAPI_INSTRUMENT), " BTCUSDT" );
461460 EXPECT_EQ (element.getValue (CCAPI_EM_POSITION_SIDE), " BOTH" );
462- EXPECT_EQ (element.getValue (CCAPI_EM_POSITION_QUANTITY), " 0 " );
461+ EXPECT_EQ (element.getValue (CCAPI_EM_POSITION_QUANTITY), " 10 " );
463462 EXPECT_DOUBLE_EQ (std::stod (element.getValue (CCAPI_EM_POSITION_ENTRY_PRICE)), 0 );
464- EXPECT_EQ (element.getValue (CCAPI_EM_POSITION_LEVERAGE), " 100" );
465463}
466464
467465} /* namespace ccapi */
0 commit comments