Chart Widget Setup
- 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>
Updated over 2 years ago