td-ameritrade-python-api | Unofficial Python API client library for TD Ameritrade | REST library

 by   areed1192 Python Version: 0.3.5 License: MIT

kandi X-RAY | td-ameritrade-python-api Summary

kandi X-RAY | td-ameritrade-python-api Summary

td-ameritrade-python-api is a Python library typically used in Web Services, REST applications. td-ameritrade-python-api has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install td-ameritrade-python-api' or download it from GitHub, PyPI.

The unofficial Python API client library for TD Ameritrade allows individuals with TD Ameritrade accounts to manage trades, pull historical and real-time data, manage their accounts, create and modify orders all using the Python programming language. To learn more about the TD Ameritrade API, please refer to the official documentation.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              td-ameritrade-python-api has a low active ecosystem.
              It has 654 star(s) with 249 fork(s). There are 63 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 38 open issues and 143 have been closed. On average issues are closed in 69 days. There are 7 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of td-ameritrade-python-api is 0.3.5

            kandi-Quality Quality

              td-ameritrade-python-api has 0 bugs and 0 code smells.

            kandi-Security Security

              td-ameritrade-python-api has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              td-ameritrade-python-api code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              td-ameritrade-python-api is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              td-ameritrade-python-api releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              td-ameritrade-python-api saves you 1786 person hours of effort in developing the same functionality from scratch.
              It has 3949 lines of code, 246 functions and 31 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed td-ameritrade-python-api and discovered the below as its top functions. This is intended to give you an instant insight into td-ameritrade-python-api implemented functionality, and help decide if they suit your requirements.
            • Get a list of transactions
            • Make a request
            • Create headers dict
            • Construct the API endpoint
            • Gets the latest orders query
            • Get the order path for an account
            • Search the API
            • Validate the argument for the given endpoint
            • Create a new chart
            • Validate argument
            • Create a new request template
            • Get price history
            • Read data from a stream
            • Chart the history of a symbol
            • Create a streaming session
            • Get a list of principals
            • Get all movers
            • Set write behavior
            • List accounts
            • Gets market hours
            • Replaces a watchlist
            • Update the preferences for an account
            • A method to retrieve a list of principals
            • Returns a list of active actives
            • Modify an order
            • Update a watchlist
            • Request quality of service
            Get all kandi verified functions for this library.

            td-ameritrade-python-api Key Features

            No Key Features are available at this moment for td-ameritrade-python-api.

            td-ameritrade-python-api Examples and Code Snippets

            No Code Snippets are available at this moment for td-ameritrade-python-api.

            Community Discussions

            QUESTION

            TD Ameritrade API :: Unable to connect Firefox can’t establish a connection to the server at 127.0.0.1
            Asked 2020-Dec-25 at 01:08

            Using documentation from https://pypi.org/project/td-ameritrade-python-api/

            I'm trying to get started with the TD Ameritrade API in Python...

            The problem I am having is with authentication of my account which is done via this Url: (note: client_id has been changed b/c it is private)

            https://auth.tdameritrade.com/auth/?response_type=code&redirect_uri=https%3A%2F%2F127.0.0.1&client_id=[Private]%40AMER.OAUTHAP

            So everything works:

            1. I get the login screen
            2. After successful login, I get the permissions page

            EXCEPT...

            When everything is completed I get this error from FireFox (or Chrome, whatever)

            Unable to connect

            Firefox can’t establish a connection to the server at 127.0.0.1.

            Given the above issue, I search Google for info and did the following:

            1. Cleared Cache
            2. Made sure correct IIS settings were configured

            It does not work at this point.

            I have no idea what is going on. Any help would be greatly appreciated.

            ...

            ANSWER

            Answered 2020-Dec-14 at 06:08

            This is probably one of the few times when getting an error message like you did is actually part of the process to authenticate your account. At the very bottom of the PyPi page for that library he explains that you're supposed to copy and paste the resulting url of the error page you're currently on into your terminal. It was confusing for me aswell and it took me awhile to really understand what's going on so I will explain it as best as I can.

            Alex Reed is the guy who made the library TD Ameritrade API and he has an awesome YouTube channel called Sigma Coding. One of his video series guides you through the whole process of directly connecting to the TD Ameritrade API without the use of his API library, and another series about building the library itself.

            In this video How to Use the TD Ameritrade API | Part 2 he is demonstrating how to access the API. The link should have a time stamp of 16:36 if not skip ahead to that section and you will see a similar error to what you are experiencing except he is using Chrome, not Firefox so the error is the same but worded differently.

            Here's a picture to better explain the rest:

            What he does next is copy and paste the current url of the page with the error, which contains the code needed for the next step. The url in the picture starts with https://localhost/test?code=siVrfqPLdQ... and you can see that the url has code= following a very long access code that TD Ameritrade needs to generate your access token.

            Your url should have a similar structure, don't worry if it doesn't have /test after localhost, he made a specific folder for the video series. Just copy and paste the whole thing in your terminal where you should have a line that says:

            Paste the full redirect url here:

            Source https://stackoverflow.com/questions/64081713

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install td-ameritrade-python-api

            The project can be found at PyPI, if you'd like to view the project please use this link.

            Support

            Automatically will handle the authentication workflow for new users, returning users, and users with expired tokens (refresh token or access token).
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install td-ameritrade-python-api

          • CLONE
          • HTTPS

            https://github.com/areed1192/td-ameritrade-python-api.git

          • CLI

            gh repo clone areed1192/td-ameritrade-python-api

          • sshUrl

            git@github.com:areed1192/td-ameritrade-python-api.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link