This commit is contained in:
vpckiet
2024-10-28 17:40:04 +07:00
parent 1ff1797b0b
commit e84c212bf0

View File

@@ -218,7 +218,7 @@ public class MoneyApiController {
return ServerResponse.createBySuccess(json1);
}
String url = String.format("https://priceapi.moneycontrol.com/pricefeed/%s/equitycash/%s", stockType, symbol);
String url = String.format("https://priceapi.moneycontrol.com/pricefeed/%s/equitycash/%s", stockType.toLowerCase(), symbol);
int maxRetries = 3;
for (int retry = 1; retry <= maxRetries; retry++) {
try {