I can’t seem to get an accurate close (mark) price that matches the results from binance website. The should be the latest ticks prices.
I have tried to hit the following 4 API endpoints (as well as a couple of websocket calls):
Kline Candlestick
Continuous Kline Candlestick
Index Price Kline Candlestick
Mark Price Kline Candlestick
and with those calls I get the following results
klines [
1654841400000,
'1793.40', // Open
'1796.64', // High
'1792.28', // Low
'1796.08', // Close
'901.877',
1654841699999,
'1618821.01031',
195,
'519.138',
'931709.11456',
'0'
]
markPriceKlines [
1654841400000,
'1793.54391312', // Open
'1796.37202143', // High
'1792.32870241', // Low
'1795.91085540', // Close
'0',
1654841699999,
'0',
180,
'0',
'0',
'0'
]
continuousKlines [
1654841400000,
'1793.40', // Open
'1796.64', // High
'1792.28', // Low
'1796.08', // Close
'901.877',
1654841699999,
'1618821.01031',
195,
'519.138',
'931709.11456',
'0'
]
indexPriceKlines [
1654841400000,
'1793.49777134', // Open
'1796.33548508', // High
'1792.28817678', // Low
'1796.02021149', // Close
'0',
1654841699999,
'0',
181,
'0',
'0',
'0'
]
The expected results should be similar to this screenshot :
Open: 1792.85
High: 1796.16
Low: 1791.92
Close : 1795.47
If anybody can help point me to either the correct endpoint or inform me if I am doing something wrong, I would be very grateful. I have been trying to find a solution for the last 4 hours.
::::
From threads I have read, I have eliminated the following solutions:
- As mine is not a specific timeframe, it is not a timezone mismatch
- I am looking for specifically mark price, but have tested all the endpoints I have found