hey, i used this url ‘‘https://api.upstox.com/v3/historical-candle/NSE_FO|57113/days/1/2025-06-08/2023-02-15’’ to get daily data for sbin but i was only given data till march of 2025, please look into it, and tell me what am i doing wrong. thank you
Hi @Arvind_48786810
The URL you shared seems to be returning expected data. Could you please re-verify it? Below is the response I obtained
{
"status": "success",
"data": {
"candles": [
[
"2025-06-06T00:00:00+05:30",
811.8, 820.6, 805.6, 817.5, 38542500, 100195500],
[
"2025-06-05T00:00:00+05:30",
812.5, 816.5, 807.25, 810.2, 15968250, 100976250],
[
"2025-06-04T00:00:00+05:30",
817.5, 817.85, 808.1, 810.9, 11717250, 98712750],
[
"2025-06-03T00:00:00+05:30",
820, 823, 808.3, 812.45, 21988500, 97185750],
[
"2025-06-02T00:00:00+05:30",
818.05, 827.4, 813.35, 818.7, 30217500, 95274750],
[
"2025-05-30T00:00:00+05:30",
801.5, 819.7, 796.1, 818.05, 36858000, 92391750],
[
"2025-05-29T00:00:00+05:30",
801.55, 804, 795.35, 801.55, 31783500, 83925750],
[
"2025-05-28T00:00:00+05:30",
798.3, 803.7, 797.1, 800.55, 19268250, 68339250],
[
"2025-05-27T00:00:00+05:30",
799.9, 807.35, 795.55, 800, 24966750, 55798500],
[
"2025-05-26T00:00:00+05:30",
799, 802.9, 794.15, 800.05, 18639000, 40438500],
[
"2025-05-23T00:00:00+05:30",
792.15, 800.45, 791.65, 796.2, 7356000, 27211500],
[
"2025-05-22T00:00:00+05:30",
792.5, 793.3, 785.2, 791.5, 5375250, 23390250],
[
"2025-05-21T00:00:00+05:30",
791.95, 796.9, 785, 792, 3664500, 20754000],
[
"2025-05-20T00:00:00+05:30",
802.85, 804, 790.5, 792.5, 4353000, 19200750],
[
"2025-05-19T00:00:00+05:30",
798, 808, 797.25, 800.15, 3204750, 17274750],
[
"2025-05-16T00:00:00+05:30",
800, 805.75, 796.3, 797.75, 2751000, 16030500],
[
"2025-05-15T00:00:00+05:30",
793.7, 800.65, 786.1, 798.75, 3525750, 14437500],
[
"2025-05-14T00:00:00+05:30",
796.25, 798.2, 787.05, 791.7, 1724250, 13230750],
[
"2025-05-13T00:00:00+05:30",
790, 799.55, 789, 793.05, 2334750, 12560250],
[
"2025-05-12T00:00:00+05:30",
789, 798, 784.5, 794.2, 6855000, 11544750],
[
"2025-05-09T00:00:00+05:30",
750.2, 771.7, 745.9, 769.7, 2067750, 8227500],
[
"2025-05-08T00:00:00+05:30",
771, 778.15, 755.15, 759.45, 2742750, 7938750],
[
"2025-05-07T00:00:00+05:30",
763.05, 774.45, 756.6, 768.05, 1451250, 6704250],
[
"2025-05-06T00:00:00+05:30",
787.75, 793, 763.2, 765.25, 2826750, 6468750],
[
"2025-05-05T00:00:00+05:30",
793.1, 793.1, 776, 782.8, 3487500, 5190750],
[
"2025-05-02T00:00:00+05:30",
791.25, 804.35, 788.3, 797.85, 1826250, 4540500],
[
"2025-04-30T00:00:00+05:30",
804.1, 804.1, 781.25, 788.45, 1741500, 4493250],
[
"2025-04-29T00:00:00+05:30",
822, 830, 809.6, 811.15, 1089000, 4281750],
[
"2025-04-28T00:00:00+05:30",
799.3, 822.25, 798.95, 818.15, 1328250, 4046250],
[
"2025-04-25T00:00:00+05:30",
809.6, 816.5, 790, 795.65, 1318500, 3724500],
[
"2025-04-24T00:00:00+05:30",
814.7, 817.7, 809.4, 811.5, 2238000, 3494250],
[
"2025-04-23T00:00:00+05:30",
825.85, 830, 811.35, 814.1, 1122000, 2250750],
[
"2025-04-22T00:00:00+05:30",
819, 835, 818, 822.55, 1517250, 1765500],
[
"2025-04-21T00:00:00+05:30",
801.45, 824.85, 800.85, 818.9, 894000, 1224000],
[
"2025-04-17T00:00:00+05:30",
773.4, 801, 770.45, 797.95, 710250, 942750],
[
"2025-04-16T00:00:00+05:30",
766, 774.8, 765.5, 772.85, 342000, 852750],
[
"2025-04-15T00:00:00+05:30",
764.3, 775, 764.3, 766.6, 277500, 786750],
[
"2025-04-11T00:00:00+05:30",
756.75, 759.7, 749.05, 756.75, 279750, 775500],
[
"2025-04-09T00:00:00+05:30",
770, 770.15, 745.85, 746.55, 345000, 792750],
[
"2025-04-08T00:00:00+05:30",
764.35, 777.1, 764.35, 773.85, 232500, 561750],
[
"2025-04-07T00:00:00+05:30",
750, 755.55, 735.45, 750.45, 278250, 545250],
[
"2025-04-04T00:00:00+05:30",
781, 784.75, 769.15, 771.1, 252000, 459000],
[
"2025-04-03T00:00:00+05:30",
773.6, 789.6, 773.6, 783.5, 203250, 357750],
[
"2025-04-02T00:00:00+05:30",
775.6, 780.5, 769.95, 779.8, 107250, 268500],
[
"2025-04-01T00:00:00+05:30",
776.4, 785.25, 772, 778.35, 130500, 222750],
[
"2025-03-28T00:00:00+05:30",
786.8, 787.1, 773.55, 777.15, 222750, 155250]
]
}
}
Thanks!
correct me if im wrong but it was supposed to give data from 2023-02-15 to 2025-06-08. It gave only from 2025-03-28
Trading for this future began on March 28, 2025. Therefore, you’ll only receive data from this date onward, not from the “from” date specified in your API call. I’ve attached a 1-day chart for your reference.
Thanks!
thanks ketan, this clarifies a lot!