Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot authenticate #1

Open
dylanmoz opened this issue Mar 21, 2021 · 4 comments
Open

Cannot authenticate #1

dylanmoz opened this issue Mar 21, 2021 · 4 comments

Comments

@dylanmoz
Copy link

I followed the directions on the main page of the wiki:

  • Moved the three dll's to the Plugin folder
  • Create a tda developer account and created an app with the callback URL set to http://127.0.0.1
  • Added a tda.json to the Data folder:
{
   "currency" : "USD",
     "langResx" : "en-US",
     "tdaAccountNum" :  "<my_account_num>",
     "testAssets": "GRPN,HUSA,LLEX,ZOM"
}
  • Opened Zorro, set the account to Demo and the broker to TD Ameritrade
  • Set the Login field to my consumer key and left the password field empty
  • Selected Script Workshop1 (also tried other ones such as Z8)

Press Trade

Result:
{8D8D04BD-0179-47BE-B9C2-5ACF056DB951}

Any ideas or ways I can get more debug/log information?

@cwford
Copy link
Owner

cwford commented Mar 21, 2021 via email

@jalbright015
Copy link

jalbright015 commented Jan 1, 2023

I got the plugin to successfully authenticate with TD Ameritrade, and it completed the tests.

First, the user needs to ensure that they have recently followed the steps outlined here:
https://developer.tdameritrade.com/content/simple-auth-local-apps

I had done the above steps previously, but doing it again helped.

There was one more issue, though, which required me to make a change to the source code and recompile the plugin. I will see about doing a pull request for this.

@slramer
Copy link

slramer commented Jan 14, 2023

Has anyone else experienced issues with the contractUpdate (brokerCommand is GET_CONTRACTS)? I know it's not listed on the wiki, but I was playing around with it, and found that the CONTRACT structure in Zorro did not match the one in the TDA plugn code. I modified my local TDA code to use int (32-bit) for Expiry and Type, instead of long (64-bit), since Zorro has them as 32-bit integers. After a couple of other mods to accommodate those changes, everything works beautifully in my Zorro installation. Maybe I did something wrong in the build, but this is working for me. I'm new to GitHub (at least for personal accounts) and somewhat to C#, so please forgive me if I've gotten something wrong.

@Josiahhenry23
Copy link

@jalbright015 could you build the dlls and release them into your fork? I tried building with your code additions in the PR but still no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants