My app shows 'Connect + Historical Chart data' access and is Active, but historical data APIs return 'invalid token'. My implementation matches your documentation exactly. This appears to be a platform-level permission issue that needs activation.
This issue may be due to invalid token details. You can verify the token details in the instrument file section of the documentation. If the issue persists, kindly enable debug mode and attempt to resolve it accordingly.