Closed juxta1357 closed 4 months ago
Looks like you haven't configured your API key
here is the sample format Here is how you would typically set up your environment variables in a .env file for Dhan's API:
BROKER_API_KEY = 'your_dhan_clientid_here' BROKER_API_SECRET = 'your_dhan_token_here' REDIRECT_URL = 'http://127.0.0.1:5000/dhan/callback'
configuration instruction can be found here https://docs.openalgo.in/connect-brokers/dhan
Here is the how the config looks like
BROKER_API_KEY = '10xx000xx30' BROKER_API_SECRET = 'eyJ0eXAiOiJKxxxxxxxxxxxxxxIUzUxMiJ9.eyJp-DZhBw'
REDIRECT_URL = 'http://127.0.0.1:5000/dhan/callback'
I've set this up in the .env file, in openalgo folder. The API secret though, is about 5 times the length of what's shown here (is there some catch here?) Still getting the same issue
While it is a lengthy key, for simplicity's sake, I've used a shorter example here.
Please get in touch with our discord community support. If required will take remote and will check this out.
Hello
After setup, on login page it gave options for various brokers. I am choosing Dhan. I configured environment variables using DHAN api key.
On restarting the app, getting this error. What am I missing
127.0.0.1 - - [02/May/2024 01:30:40] "GET /dashboard HTTP/1.1" 500 - 127.0.0.1 - - [02/May/2024 01:30:41] "GET /favicon.ico HTTP/1.1" 404 - 127.0.0.1 - - [02/May/2024 01:32:24] "GET /setup HTTP/1.1" 302 - 127.0.0.1 - - [02/May/2024 01:32:24] "GET /auth/login HTTP/1.1" 302 - 127.0.0.1 - - [02/May/2024 01:32:24] "GET /auth/broker HTTP/1.1" 302 -