Options_Data_Science
Options_Data_Science copied to clipboard
Permission Denied With token_refresh.py
Here is my edited code:
`from sqlalchemy import create_engine from td.client import TDClient from datetime import datetime from td import exceptions import datetime import pandas as pd import sqlite3 import time
TDSession = TDClient( client_id='P0HYTFEZR9BJXXXXXH5YXFMRG9NND72X', redirect_uri='http://localhost', credentials_path='C:/Users/xxxx/Documents' )
TDSession.login()`
And I get:
`Traceback (most recent call last):
File "C:\Users\xxx\Documents\Trading\Options_Data_Science-main\token_refresh.py", line 13, in
You may have solved this already but looks like you need to put the name of the json file at the end of your path, like C:/Users/xxxx/Documents/credentials.json