Hi,
I am new to Alpaca and started testing some of the APIs. One specific example is the data for Herbalife from 10-July-2024.
I am testing in browser using the following CURL:
curl --request GET
–url ‘https://data.alpaca.markets/v2/stocks/HLF/bars?timeframe=5min&start=2024-07-10T13%3A30%3A00Z&end=2024-07-10T13%3A35%3A00Z&limit=1000&adjustment=all&feed=sip&sort=asc’
–header 'APCA-API-KEY-ID: n/a
–header 'APCA-API-SECRET-KEY: n/a
–header ‘accept: application/json’
I have tested with all the values for the adjustment parameter: raw, split, dividend, all → same result.
Below is what I get from the Alpaca API compare to TradingView
{
“bars”: [
{
“c”: 9.73, → TW: c: 9.73 (OK)
“h”: 9.825, → TW: h: 9.80 (NOK)
“l”: 9.72, → TW: l: 9.73 (NOK)
“n”: 159,
“o”: 9.76, → TW: o: 9.80 (NOK)
“t”: “2024-07-10T13:30:00Z”,
“v”: 24582,
“vw”: 9.757298
},
{
“c”: 9.86, → TW: c: 9.86 (OK)
“h”: 9.87, → TW: h: 9.86 (NOK)
“l”: 9.7, → TW: l: 9.72 (NOK)
“n”: 172,
“o”: 9.73, → TW: o: 9.72 (NOK)
“t”: “2024-07-10T13:35:00Z”,
“v”: 17139,
“vw”: 9.787047
}
],
“next_page_token”: null,
“symbol”: “HLF”
}
Is this difference normal? It is a small difference but from what I read from other topics, historical bars data should be the same even if you have a paid account or a free account. I have checked also the Timezone and 13:30 UTC is 09:30 which is the opening hour of the NYSE Exchange.