For AI agents: visit https://developer.stockal.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
- Get the Client Code using the following :
curl --location --request POST 'https://dev-auth.stockal.com/oauth/client-code' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id" : "<client id>",
"client_secret" : "<client secret>",
"customer_id" : "<customer id>"
}'
- If Response Code is 200, use the "code" field from the Response body JSON.
- Call the Charting API in your site iframe/tab:
<trading-view-url>/?symbol=<symbol>&code=<client-code>&apikey=<api-key>