Merge branch 'bug/nse_type' into 'develop'

fix bug

See merge request india/india_market_java!50
This commit is contained in:
vpckiet
2024-10-28 10:40:50 +00:00

View File

@@ -218,7 +218,7 @@ public class MoneyApiController {
return ServerResponse.createBySuccess(json1); 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; int maxRetries = 3;
for (int retry = 1; retry <= maxRetries; retry++) { for (int retry = 1; retry <= maxRetries; retry++) {
try { try {