Chart Widget Setup

  1. 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>"
    }'
    
  2. If Response Code is 200, use the "code" field from the Response body JSON.
  3. Call the Charting API in your site iframe/tab:
    <trading-view-url>/?symbol=<symbol>&code=<client-code>&apikey=<api-key>