The historical API when called with frequency daily sometimes returns today’s data and sometimes it does not. Can we fix this inconsistent behaviour.
Hi @arvind_b ,
Can you share screenshot or logs in which you are not getting data and for which symbol you are getting this issue.
Get History Request https://api.fyers.in/data-rest/v2/history?symbol=NSE:INFY-EQ&resolution=D&date_format=0&range_from=1655392267&range_to=1686841867&cont_flag=1
Get History Response {“s”:“ok”,“candles”:[[1655337600,1438.0,1443.75,1392.0,1397.2,6641772],[1655424000,1391.05,1396.95,1367.15,1387.3,9692047],[1655683200,1390.05,1422.35,1382.0,1414.15,4595194],[1655769600,1424.0,1456.0,1422.75,1449.9,6270787],[1655856000,1436.05,1459.6,1435.0,1437.25,6253366],[1655942400,1439.8,1458.0,1433.0,1452.45,6254281],[1656028800,1458.0,1467.5,1428.9,1441.1,6114340],[1656288000,1468.05,1484.0,1465.15,1474.6,4511097],[1656374400,1469.0,1488.25,1453.0,1480.15,4412178],[1656460800,1464.7,1477.0,1457.0,1463.25,5060038],[1656547200,1465.05,1482.0,1455.0,1461.9,9165177],[1656633600,1454.0,1485.0,1442.35,1479.4,4651635],[1656892800,1480.25,1492.25,1462.0,1488.0,4800224],[1656979200,1498.8,1509.95,1472.0,1475.95,7379669],[1657065600,1482.2,1500.0,1470.0,1491.65,5209162],[1657152000,1503.05,1513.95,1495.7,1498.7,3323472],[1657238400,1515.0,1516.95,1499.95,1514.45,3652582],[1657497600,1495.0,1499.9,1466.4,1473.15,4702815],[1657584000,1461.8,1468.6,1436.0,1438.6,4710356],[1657670400,1450.0,1460.0,1438.6,1444.45,5264025],[1657756800,1451.0,1452.95,1414.0,1428.85,6157606],[1657843200,1446.0,1446.0,1410.65,1430.35,5620018],[1658102400,1450.0,1493.6,1448.05,1489.9,5835171],[1658188800,1471.55,1486.85,1470.1,1484.15,3418540],[1658275200,1501.25,1525.8,1500.0,1515.3,5079392],[1658361600,1517.0,1535.45,1503.1,1532.9,5008061],[1658448000,1534.0,1540.0,1492.15,1506.3,7020642],[1658707200,1480.1,1517.15,1480.1,1503.6,7859626],[1658793600,1496.65,1496.65,1445.0,1451.15,7268273],[1658880000,1451.0,1473.0,1445.0,1471.05,4517285],[1658966400,1496.4,1524.45,1489.85,1517.4,6636841],[1659052800,1532.8,1555.7,1528.0,1549.7,7009465],[1659312000,1564.0,1564.0,1537.9,1551.05,2983249],[1659398400,1546.55,1547.0,1528.35,1543.6,4374635],[1659484800,1549.0,1570.0,1539.9,1566.1,6011955],[1659571200,1587.5,1603.85,1574.95,1599.9,7402209],[1659657600,1608.4,1625.7,1602.3,1616.65,5361971],[1659916800,1617.0,1622.0,1596.0,1619.4,3763409],[1660089600,1621.2,1621.2,1588.1,1602.45,4423829],[1660176000,1630.0,1631.35,1616.0,1619.95,3462090],[1660262400,1613.3,1614.0,1590.15,1594.1,3562286],[1660608000,1609.0,1609.0,1591.1,1596.45,3004430],[1660694400,1596.45,1612.0,1585.0,1606.25,4067324],[1660780800,1594.1,1598.2,1574.0,1582.95,4635706],[1660867200,1585.3,1604.9,1585.1,1597.1,4739884],[1661126400,1586.0,1599.0,1574.0,1575.65,3950555],[1661212800,1548.0,1554.5,1533.0,1542.4,5551574],[1661299200,1535.0,1546.0,1531.0,1537.5,2888426],[1661385600,1548.0,1548.7,1513.75,1518.15,4331088],[1661472000,1535.15,1544.95,1517.45,1521.55,3079136],[1661731200,1468.55,1468.55,1450.0,1461.75,8079050],[1661817600,1473.1,1496.1,1466.0,1492.95,6725875],[1661990400,1460.05,1468.1,1451.05,1464.2,8140604],[1662076800,1478.0,1478.0,1448.0,1453.0,5175653],[1662336000,1451.0,1467.0,1446.35,1461.3,3669352],[1662422400,1461.3,1470.0,1445.45,1455.1,3428442],[1662508800,1440.0,1465.75,1438.05,1457.65,3600574],[1662595200,1475.0,1481.1,1463.6,1475.9,4061475],[1662681600,1488.0,1520.0,1480.0,1511.65,4816910],[1662940800,1525.8,1545.9,1521.15,1536.2,5494819],[1663027200,1551.9,1553.0,1541.3,1544.95,4947158],[1663113600,1497.0,1498.95,1472.0,1475.4,14332197],[1663200000,1475.0,1475.2,1429.05,1432.8,12784100],[1663286400,1425.0,1425.0,1368.35,1377.05,20464045],[1663545600,1392.0,1406.0,1380.6,1390.3,6595241],[1663632000,1407.95,1413.55,1385.1,1388.55,7219797],[1663718400,1379.9,1388.8,1368.4,1377.25,7917054],[1663804800,1366.35,1383.95,1360.0,1367.95,9168498],[1663891200,1367.5,1394.8,1362.0,1365.45,10426200],[1664150400,1360.0,1399.45,1355.0,1380.25,9414587],[1664236800,1393.45,1406.5,1378.0,1393.55,8561254],[1664323200,1379.0,1405.85,1377.0,1394.7,7022098],[1664409600,1404.9,1409.85,1393.0,1398.65,6119965],[1664496000,1388.95,1419.3,1376.0,1413.45,8120130],[1664755200,1412.0,1412.0,1386.0,1393.75,4943169],[1664841600,1419.7,1432.25,1414.0,1429.4,6631341],[1665014400,1445.0,1459.8,1444.1,1455.15,6180672],[1665100800,1446.35,1457.85,1440.15,1451.2,3994466],[1665360000,1426.35,1465.0,1426.35,1462.65,5274677],[1665446400,1462.65,1479.65,1420.1,1423.8,12824774],[1665532800,1437.0,1441.1,1413.55,1428.7,5481467],[1665619200,1431.0,1437.95,1415.0,1419.9,4821514],[1665705600,1485.0,1494.0,1467.25,1474.25,14990688],[1665964800,1476.9,1495.0,1475.5,1489.95,4286396],[1666051200,1510.0,1510.95,1497.25,1503.7,4692004],[1666137600,1504.0,1504.95,1481.3,1485.45,3553171],[1666224000,1475.0,1504.0,1474.2,1500.9,4583939],[1666310400,1500.3,1506.0,1491.35,1500.5,3594485],[1666569600,1518.5,1521.8,1511.0,1517.85,982837],[1666656000,1528.1,1532.9,1521.05,1526.3,3914341],[1666828800,1530.8,1534.9,1512.5,1523.95,6760137],[1666915200,1526.0,1527.95,1507.0,1513.25,3053981],[1667174400,1530.25,1546.4,1530.25,1537.65,4542336],[1667260800,1553.05,1575.0,1547.1,1573.0,4542692],[1667347200,1572.0,1572.75,1545.0,1553.3,2938906],[1667433600,1538.75,1543.9,1521.65,1530.75,3174027],[1667520000,1520.45,1520.45,1501.15,1514.0,4509682],[1667779200,1521.4,1527.9,1491.1,1507.45,4898592],[1667952000,1529.0,1529.0,1501.1,1511.2,3334755],[1668038400,1485.0,1512.0,1485.0,1501.95,3435763],[1668124800,1546.65,1573.5,1546.65,1570.1,7214098],[1668384000,1575.15,1591.4,1568.45,1585.3,4908813],[1668470400,1577.85,1597.85,1572.75,1594.0,3497614],[1668556800,1597.15,1609.0,1593.5,1602.8,4497697],[1668643200,1597.2,1602.8,1582.95,1587.4,3469515],[1668729600,1591.7,1598.0,1575.5,1593.4,3126064],[1668988800,1582.1,1587.85,1564.05,1568.2,3071764],[1669075200,1569.0,1588.0,1562.0,1585.05,3399329],[1669161600,1588.9,1592.0,1579.3,1583.15,3245067],[1669248000,1589.0,1636.0,1584.75,1629.8,5282215],[1669334400,1631.4,1644.0,1613.8,1635.65,4563255],[1669593600,1628.0,1653.5,1620.0,1623.4,3825766],[1669680000,1621.2,1638.75,1615.05,1629.05,3131710],[1669766400,1619.95,1645.75,1613.15,1634.95,11868134],[1669852800,1656.2,1672.6,1652.3,1657.1,5407928],[1669939200,1656.0,1661.8,1633.95,1637.9,4283343],[1670198400,1638.0,1644.85,1623.3,1639.75,3824966],[1670284800,1625.0,1626.0,1607.55,1612.9,4822398],[1670371200,1608.0,1623.8,1596.7,1605.5,4898087],[1670457600,1605.5,1623.9,1598.5,1620.15,4206837],[1670544000,1628.0,1628.0,1561.1,1569.3,8880658],[1670803200,1550.0,1565.95,1530.05,1547.2,8037679],[1670889600,1547.2,1577.5,1541.15,1572.15,6135067],[1670976000,1582.0,1588.5,1573.0,1579.4,4976020],[1671062400,1569.3,1570.0,1535.25,1540.5,6443866],[1671148800,1525.0,1549.5,1512.05,1522.2,9630453],[1671408000,1507.95,1516.9,1495.05,1507.35,6222740],[1671494400,1501.0,1516.0,1482.45,1507.3,7396259],[1671580800,1515.0,1521.0,1502.35,1509.55,6236361],[1671667200,1521.5,1529.95,1511.75,1522.05,6302640],[1671753600,1508.7,1509.9,1493.0,1497.1,6283822],[1672012800,1500.5,1509.9,1496.35,1502.4,4115459],[1672099200,1509.95,1521.45,1497.5,1514.85,4860076],[1672185600,1505.1,1524.95,1498.5,1510.15,5029860],[1672272000,1504.0,1521.3,1501.0,1517.55,4624745],[1672358400,1528.0,1530.4,1504.05,1508.2,5060544],[1672617600,1514.0,1526.5,1504.05,1524.0,3801140],[1672704000,1519.85,1532.65,1515.1,1522.55,4551130],[1672790400,1521.0,1521.0,1491.1,1494.8,7059590],[1672876800,1505.9,1505.9,1469.25,1475.2,9868404],[1672963200,1470.0,1475.0,1446.5,1448.5,6443714],[1673222400,1448.2,1489.35,1448.2,1484.45,11498717],[1673308800,1482.0,1483.9,1454.05,1469.75,7158624],[1673395200,1470.0,1494.0,1464.0,1471.25,6173092],[1673481600,1481.95,1485.0,1455.0,1480.6,6591385],[1673568000,1483.5,1519.4,1468.0,1503.65,11610426],[1673827200,1510.0,1528.0,1502.3,1525.5,6073063],[1673913600,1527.0,1542.2,1524.0,1539.5,5922644],[1674000000,1544.75,1551.85,1539.6,1545.4,5843098],[1674086400,1539.9,1549.55,1526.15,1538.9,6165284],[1674172800,1538.0,1545.0,1524.0,1525.55,6496429],[1674432000,1535.0,1553.3,1528.1,1548.0,4855020],[1674518400,1560.0,1568.8,1549.75,1551.9,5200802],[1674604800,1547.0,1556.0,1538.75,1543.0,4158617],[1674777600,1546.0,1550.95,1507.4,1519.15,6209955],[1675036800,1528.8,1544.0,1520.0,1538.8,6964719],[1675123200,1548.9,1548.9,1513.0,1533.75,9448126],[1675209600,1542.2,1555.05,1528.05,1551.1,6194199],[1675296000,1552.0,1586.95,1552.0,1583.75,6916834],[1675382400,1597.5,1604.65,1573.0,1599.4,7040194],[1675641600,1598.0,1598.0,1561.6,1569.85,4570612],[1675728000,1569.0,1576.05,1555.1,1562.4,4336238],[1675814400,1565.5,1603.0,1565.5,1590.5,7983338],[1675900800,1596.2,1619.75,1586.05,1617.0,6904911],[1675987200,1612.95,1616.3,1596.45,1608.55,4786762],[1676246400,1597.0,1597.0,1566.0,1567.45,4001199],[1676332800,1584.7,1596.0,1578.15,1593.25,5043736],[1676419200,1584.0,1599.0,1576.0,1597.05,3465747],[1676505600,1600.0,1614.45,1597.85,1601.8,4290289],[1676592000,1594.0,1595.0,1575.5,1583.8,2857734],[1676851200,1584.95,1603.0,1582.5,1592.45,2417716],[1676937600,1598.7,1601.65,1576.0,1579.5,2723288],[1677024000,1563.0,1575.0,1555.3,1561.8,3656244],[1677110400,1569.85,1569.85,1548.15,1550.7,4766854],[1677196800,1560.0,1569.0,1545.0,1550.65,2790986],[1677456000,1540.0,1540.0,1502.0,1509.3,4920268],[1677542400,1515.6,1524.0,1481.3,1487.55,9679811],[1677628800,1492.4,1500.85,1481.5,1496.05,5125043],[1677715200,1485.0,1488.6,1467.3,1472.15,4644499],[1677801600,1486.75,1489.8,1473.0,1479.3,4615015],[1678060800,1494.55,1520.4,1493.15,1507.45,6561742],[1678233600,1490.55,1496.0,1481.1,1492.7,4137080],[1678320000,1495.0,1498.35,1474.6,1480.4,5104656],[1678406400,1460.0,1474.3,1457.65,1471.55,3699580],[1678665600,1464.2,1478.3,1428.0,1435.1,8798403],[1678752000,1441.0,1448.35,1411.0,1420.0,7402784],[1678838400,1438.0,1442.85,1416.85,1419.65,7556182],[1678924800,1417.8,1417.8,1398.7,1404.1,7323117],[1679011200,1430.0,1442.9,1411.4,1420.7,9090018],[1679270400,1419.7,1419.7,1384.85,1403.65,8221829],[1679356800,1399.0,1405.0,1390.0,1390.7,8536755],[1679443200,1403.0,1407.25,1382.15,1389.25,8356487],[1679529600,1383.95,1383.95,1370.0,1374.55,7607718],[1679616000,1388.0,1398.95,1377.5,1380.65,7559127],[1679875200,1386.25,1395.75,1374.1,1388.95,4170193],[1679961600,1392.1,1398.0,1375.85,1377.6,6633366],[1680048000,1379.0,1389.9,1364.55,1383.55,8813966],[1680220800,1404.0,1429.95,1393.9,1427.95,8711975],[1680480000,1435.0,1435.0,1405.15,1410.85,5242764],[1680652800,1400.0,1427.5,1400.0,1423.55,7506334],[1680739200,1416.0,1428.4,1410.35,1421.9,6948465],[1681084800,1423.95,1434.0,1415.0,1427.6,4993788],[1681171200,1428.9,1433.35,1389.0,1406.15,6942255],[1681257600,1413.05,1431.5,1400.0,1428.3,5831169],[1681344000,1409.75,1411.05,1383.0,1389.2,11267238],[1681689600,1250.3,1261.15,1185.3,1258.3,53171705],[1681776000,1269.95,1269.95,1253.1,1259.35,12430884],[1681862400,1254.35,1254.35,1229.4,1232.2,11307230],[1681948800,1230.7,1237.85,1221.4,1223.4,8621249],[1682035200,1228.1,1233.25,1220.0,1227.35,8691352],[1682294400,1228.0,1230.0,1218.0,1226.3,8313774],[1682380800,1225.95,1235.5,1215.0,1224.9,6808576],[1682467200,1228.0,1233.0,1220.55,1227.55,5680192],[1682553600,1230.0,1247.8,1225.4,1246.25,8020704],[1682640000,1255.7,1259.0,1244.95,1252.75,10118277],[1682985600,1254.55,1279.75,1254.55,1277.45,8886401],[1683072000,1266.0,1272.5,1262.1,1269.15,5549783],[1683158400,1268.95,1275.8,1262.5,1273.55,4505401],[1683244800,1279.0,1279.0,1254.25,1259.1,5373791],[1683504000,1262.45,1270.3,1255.2,1265.6,5260842],[1683590400,1266.0,1272.0,1260.7,1270.7,4969897],[1683676800,1276.4,1276.4,1259.15,1263.25,6515734],[1683763200,1270.25,1275.9,1253.05,1256.1,6888461],[1683849600,1253.35,1256.0,1239.05,1245.2,8292212],[1684108800,1249.9,1268.9,1245.65,1258.35,5534710],[1684195200,1265.0,1273.95,1262.75,1264.3,5236469],[1684281600,1260.6,1260.95,1242.45,1246.9,10465667],[1684368000,1258.6,1259.65,1242.45,1246.0,6948732],[1684454400,1256.05,1273.3,1252.8,1268.9,11094136],[1684713600,1272.95,1295.6,1270.25,1292.8,7625947],[1684800000,1299.2,1314.15,1297.05,1300.05,7436031],[1684886400,1296.3,1305.0,1291.3,1298.65,4824077],[1684972800,1294.5,1307.0,1289.25,1304.35,4334121],[1685059200,1306.0,1323.45,1306.0,1317.45,5521606],[1685318400,1332.7,1332.7,1309.85,1314.4,4419365],[1685404800,1315.0,1326.4,1309.15,1323.85,6274719],[1685491200,1319.85,1331.1,1314.15,1318.3,17800782],[1685577600,1322.55,1329.5,1318.1,1319.5,4277841],[1685664000,1309.0,1312.9,1296.05,1299.0,10909311],[1685923200,1304.0,1309.45,1297.3,1304.5,5002553],[1686009600,1288.6,1288.6,1273.0,1279.0,10008100],[1686096000,1290.5,1294.0,1282.5,1288.95,5397578],[1686182400,1286.2,1292.0,1281.1,1282.8,5034942],[1686268800,1282.5,1282.5,1264.0,1265.95,5339073],[1686528000,1273.5,1295.7,1273.0,1291.95,4785588],[1686614400,1299.9,1306.5,1297.05,1304.85,4846587],[1686700800,1306.35,1306.7,1293.2,1300.4,3457981]]}
Hi @arvind_b ,
New History API is in development with that this issue will resolve, we will update you when our new API is available to use.
Thanks for the update. Can you share any workaround till then that I can use at my end.