tda-api icon indicating copy to clipboard operation
tda-api copied to clipboard

Rethink the getting started experience

Open alexgolec opened this issue 3 years ago • 6 comments

People keep making the same errors over and over again. This ticket will record them.

alexgolec avatar Mar 08 '21 14:03 alexgolec

Passing in directories instead of files to the token path, resulting in permissions errors when they attempt to open a directory in read mode. More inscrutable on Windows because that platform surfaces that error as a permissions issue for... some reason.

alexgolec avatar Mar 08 '21 14:03 alexgolec

Passing in directories instead of files to the token path, resulting in permissions errors when they attempt to open a directory in read mode. More inscrutable on Windows because that platform surfaces that error as a permissions issue for... some reason.

Windows will throw this error regardless as to the mode you run on the directory.

Attempting to perform any file operation on the directory will throw the PermissionError. I believe this is due to the fact Windows can't distinguish between a file and a directory like Linux can. This is just a limitation of the Windows OS.

But indeed, this is a very confusing error for beginner Python programmers.

JulianOrteil avatar Mar 08 '21 15:03 JulianOrteil

Calling the variable token_path implies that the argument expects a path.

Passing in directories instead of files to the token path, resulting in permissions errors when they attempt to open a directory in read mode. More inscrutable on Windows because that platform surfaces that error as a permissions issue for... some reason.

moneypython avatar May 08 '21 20:05 moneypython

Now that we've got more functionality, it would be good to add some more examples for people to emulate:

  • Basic login
  • Setting up a streaming service
  • Recording a stream
  • Fetching pricing data and importing it into a dataframe

alexgolec avatar May 11 '21 12:05 alexgolec

Collecting some examples we'll want to add: #228 #227 #196

alexgolec avatar May 21 '21 13:05 alexgolec

How about a conda package with installation support?

richlysakowski avatar Jul 14 '22 20:07 richlysakowski