Python Project – Ameritrade API Stock Screener

Ecommerce Empire Academy

This course is meant for educational purposes only. The information presented in this video is not investment advice.

Learn how to use the Ameritrade API and program a stock screener with Pandas and Python.

✏️ Course developed by Sam Focht from Python Basics. Check out his channel:

Register for the TD Ameritrade API here:

Learn to code for free and get a developer job:

Read hundreds of articles on programming:

And subscribe for new videos on technology every day:

26 thoughts on “Python Project – Ameritrade API Stock Screener”

  1. Very interesting, I love the micro videos idea.. also I’ve multiple questions but let’s start with the first one, why do we’ve to write localhost:8080 when creating an API project on the api website?
    P.s. I recommend showing at the beginning of the first video what the final project results will look like to help the beginner between us understand what’s the project is actually doing and have perception on it from the beginning. Thanks again for sharing, I’ve subscribed to your channel and joined the discord

  2. tick.append(info[ticker][‘fundamental’][point])
    TypeError: string indices must be integers
    Anyone else got the error?

    1. this was anwsered in the discord in the python-pandas chat. There are entries with ‘^’ on the end of them in the symbols column of the spreadsheet. If you do a search and remove them all the scirpt will run. There are 5.

    2. I am currently trying to get past this error as well. There are actually a few errors in his code, not sure how it is even running.

    3. Ok i fixed my issue which was with the actual API call, in the Payload section I had ‘apiKey’ instead of ‘apikey’ so your issue could be anything lol. Make sure you are getting data back first.

  3. Please if any body can help
    I need a code for face liveness detection (anti-spoofing face recognition)
    I prefer with python but not necessarily
    Thanks 😊

  4. Great coding adventure! suggestion/request to extend it would be long term local storage such as MySgl.

  5. just an alternative to start/end loop:

    x = 5456
    step = 500
    for counter in range(0, x, step):
    print(counter, min(x, counter+step))

  6. Very nice and detailed video. Thank you. I am especially interested on (video at 1:03:38), you have a table with “Symbol, Company Name, Sector”… Where did you get the sector information? Is it from TD API? I don’t see that anywhere….

  7. HI Sam…. great stuff… I have a question please…. love the coverage on this type material and i thought i heard you say most commands here are not new and they are covered in 9 other videos if we have been thru them…. I have searched for other videos related to this one.. and cannot find them..
    I even looked on your site Python Basics.. and with 600 videos there i will never find the 9… but very interested in finding the other related videos like Panda etc and others that would help me follow this lesson…. Can you shed any light on the 9 videos you referred to or did i misunderstand what you said.. but keep up the great work…. love your videos…. but did notice the volume level on the videos is very low. I am old with bad hearing and i can make them out ok but would be even better if the volume lever was more like what is here on freecodecamp… I have to turn it down here… Thanks again.

  8. I tried a million times and i can’t solve the error “string indices must be integers in”:
    for point in points:
    # print(point, tick)

    Can someone please help me with this.

Comments are closed.