tg12 / FAIG

Fully Automated IG Trading
148 stars 60 forks source link

package download #22

Closed DICAP1 closed 5 years ago

DICAP1 commented 5 years ago

I am using a mac and thus OSX.
Pycharm is my IDE for Python 3.6. I cant seem to find the following packages

pygobject==3.24.1 python-apt==1.4.0b3'

Intall fails with error

Any help?

tg12 commented 5 years ago

You should not need these packages actually, They get installed as pre reqs as other packages. The main ones are Numpy, Pandas, Requests. Hope that helps. It is not version specific infact it would be better to use the latest version for each package.

DICAP1 commented 5 years ago

Hi

Thank you for coming back to me so swiftly

Other than the packages, I am inputing the API Key I have generated , swells my username and password

Is this all I need do before running? I am only 1 month into learning python so, apologies if questions are simple Charles

On 28 May 2019, at 19:00, tg12 notifications@github.com wrote:

You should not need these packages actually, They get installed as pre reqs as other packages. The main ones are Numpy, Pandas, Requests. Hope that helps. It is not version specific infact it would be better to use the latest version for each package.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOFJZD6KXBT3363UFBDPXVXK5A5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWM6FCY#issuecomment-496624267, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZOCMWIRRYYTDVX7FMDTPXVXK5ANCNFSM4HQFXR3Q.

tg12 commented 5 years ago

That's right! No problem at all. Enjoy.

mrvbwiz commented 5 years ago

Yes, am keen to get this working and add a few bits too. Where in the config in pycharm do I add the api key?

On 28 May 2019, at 19:11, tg12 notifications@github.com wrote:

That's right! No problem at all. Enjoy.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=AE6LTKRE36OXRNNFPOTQZ2LPXVYV3A5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWM7FNI#issuecomment-496628405, or mute the thread https://github.com/notifications/unsubscribe-auth/AE6LTKSWYUP6WQSDFYNZRPDPXVYV3ANCNFSM4HQFXR3Q.

tg12 commented 5 years ago

Nowhere in pycharm. Just in default.conf.

DICAP1 commented 5 years ago

Hi

Your code says not to set it here but in config.conf Should I replace the Asterix with the key?

Charles Glah. ASIP Founder Divergence Capital Ltd Social Impact Investing

Divergencecapital.com

On 28 May 2019, at 19:15, tg12 notifications@github.com wrote:

Nowhere in pycharm. Just in default.conf.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOFLQULBNKVXQQ5JIFTPXVZCZA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWM7OZI#issuecomment-496629605, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZOAXNHI4QS6MH5Z5XMLPXVZCZANCNFSM4HQFXR3Q.

tg12 commented 5 years ago

Yes sorry, config.conf. Set it in there. Yes replace those

DICAP1 commented 5 years ago

Ok so no need to create a new file called config.conf and copy details from default config as suggested?

On 28 May 2019, at 19:19, tg12 notifications@github.com wrote:

Yes sorry, config.conf. Set it in there. Yes replace those

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZODEER6VZOM5ZTYA43DPXVZRTA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWM72DA#issuecomment-496631052, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZOD2V25OSIWKWXOUZTTPXVZRTANCNFSM4HQFXR3Q.

DICAP1 commented 5 years ago

Ok I added the key and get the following error when I runt he file faig

On 28 May 2019, at 19:19, tg12 notifications@github.com wrote:

Yes sorry, config.conf. Set it in there. Yes replace those

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZODEER6VZOM5ZTYA43DPXVZRTA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWM72DA#issuecomment-496631052, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZOD2V25OSIWKWXOUZTTPXVZRTANCNFSM4HQFXR3Q.

tg12 commented 5 years ago

What was the error?

DICAP1 commented 5 years ago

Error message

On 28 May 2019, at 19:31, tg12 notifications@github.com wrote:

What was the error?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOG4F4L5Y5EQ3CHQ4TTPXV3A3A5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNBACQ#issuecomment-496635914, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZOBP3YBFBKHCKXDCM73PXV3A3ANCNFSM4HQFXR3Q.

tg12 commented 5 years ago

I cant see anything attached.

DICAP1 commented 5 years ago

/usr/local/bin/python3.6 /Users/charlesglah/FAIG-master/faig.py Traceback (most recent call last): File "/Users/charlesglah/FAIG-master/faig.py", line 9, in api = API() File "/Users/charlesglah/FAIG-master/ig.py", line 27, in init d = super().session() File "/Users/charlesglah/FAIG-master/igclient.py", line 26, in wrap return f(*args, **kwargs) File "/Users/charlesglah/FAIG-master/igclient.py", line 73, in session self.auth[h] = headers_json[h] KeyError: 'CST'

Process finished with exit code 1

On 28 May 2019, at 19:33, tg12 notifications@github.com wrote:

I cant see anything attached.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOBR644DBVUHVDUMIVLPXV3HPA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNBFHQ#issuecomment-496636574, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZOB262KDSIIRJK2KUQLPXV3HPANCNFSM4HQFXR3Q.

tg12 commented 5 years ago

OK, CST error is nearly always a problem on the IG Index side, So things like Incorrect password/ mis match between DEMO and LIVE API keys. I would ask further on the Discord. This has come up alot of times before.

DICAP1 commented 5 years ago

Ok I will contact IG

I have created a copy of the default.conf file called config.conf, as you suggest din the notes.

It is there I have added the USERNAME and Password and API Key

Is this correct?

Need I do anything else prior to running?

Charles

On 28 May 2019, at 19:37, tg12 notifications@github.com wrote:

OK, CST error is nearly always a problem on the IG Index side, So things like Incorrect password/ mis match between DEMO and LIVE API keys. I would ask further on the Discord. This has come up alot of times before.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOCKUS3IWDMLLFBIFPDPXV3VZA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNBP4Q#issuecomment-496637938, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZODWBMI6752IJGLBJ5DPXV3VZANCNFSM4HQFXR3Q.

mrvbwiz commented 5 years ago

Ok, I see. It appears I mixed up demo with live account. It seems I am using live account credential and I generated the API key when I live account. I commented out the wring end point url and all seems to be working now

I see output.

What is the workflow? Where are the predictions from linear regression?

What does this output all me? Is it searching for a trade?

On 28 May 2019, at 19:40, DICAP1 notifications@github.com wrote:

Ok I will contact IG

I have created a copy of the default.conf file called config.conf, as you suggest din the notes.

It is there I have added the USERNAME and Password and API Key

Is this correct?

Need I do anything else prior to running?

Charles

On 28 May 2019, at 19:37, tg12 notifications@github.com wrote:

OK, CST error is nearly always a problem on the IG Index side, So things like Incorrect password/ mis match between DEMO and LIVE API keys. I would ask further on the Discord. This has come up alot of times before.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOCKUS3IWDMLLFBIFPDPXV3VZA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNBP4Q#issuecomment-496637938, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZODWBMI6752IJGLBJ5DPXV3VZANCNFSM4HQFXR3Q.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=AE6LTKXH6MOIDFDDHCBC263PXV4CDA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNBZCY#issuecomment-496639115, or mute the thread https://github.com/notifications/unsubscribe-auth/AE6LTKU2UGWV7GYXYHCFHQDPXV4CDANCNFSM4HQFXR3Q.

DICAP1 commented 5 years ago

YES, how do I interpret this? What is the linear regression prediction? What is the workflow?

CS.D.sp_USDRUB.TODAY.IP: Price change 0.45% CS.D.AUDGBP.TODAY.IP: Price change 0.23% CS.D.USDTWD.TODAY.IP: Price change 0.35% CS.D.GBPZAR.TODAY.IP Day Price Change 1.85% :- spread not ok -200.00<=-2.00 CS.D.GBPTRY.TODAY.IP Day Price Change -0.61% :- spread not ok -70.00<=-2.00 CS.D.SGDJPY.TODAY.IP: Price change -0.29% CS.D.AUDSGD.TODAY.IP: Price change 0.32% CS.D.USDMXN.TODAY.IP Day Price Change 0.76% :- spread not ok -50.00<=-2.00 CS.D.GBPPLN.TODAY.IP: Price change 0.27% CS.D.USDMYR.TODAY.IP: Price change 0.01% CS.D.USDCAD.TODAY.IP: Price change 0.35% CS.D.NZDEUR.TODAY.IP: Price change 0.21% CS.D.USDNOK.TODAY.IP: Price change 0.07% CS.D.AUDUSD.TODAY.IP: Price change 0.05% CS.D.USDSGD.TODAY.IP: Price change 0.27% sleeping for 30s, since we've hit the end of the epic list CS.D.CHFJPY.TODAY.IP: Price change -0.45% CS.D.AUDCAD.TODAY.IP: Price change 0.41% CS.D.EURCHF.TODAY.IP: Price change 0.17% CS.D.CADNOK.TODAY.IP: Price change -0.27% Charles Glah. ASIP Founder Divergence Capital Ltd Social Impact Investing

Divergencecapital.com

On 28 May 2019, at 19:37, tg12 notifications@github.com wrote:

OK, CST error is nearly always a problem on the IG Index side, So things like Incorrect password/ mis match between DEMO and LIVE API keys. I would ask further on the Discord. This has come up alot of times before.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOCKUS3IWDMLLFBIFPDPXV3VZA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNBP4Q#issuecomment-496637938, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZODWBMI6752IJGLBJ5DPXV3VZANCNFSM4HQFXR3Q.

DICAP1 commented 5 years ago

Hi…further to my workflow question, what is the EPIC list? Is this the list of all instruments the code is scanning?

If I only want to look at specific instruments can I do this?

On 28 May 2019, at 19:37, tg12 notifications@github.com wrote:

OK, CST error is nearly always a problem on the IG Index side, So things like Incorrect password/ mis match between DEMO and LIVE API keys. I would ask further on the Discord. This has come up alot of times before.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOCKUS3IWDMLLFBIFPDPXV3VZA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNBP4Q#issuecomment-496637938, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZODWBMI6752IJGLBJ5DPXV3VZANCNFSM4HQFXR3Q.

tg12 commented 5 years ago

Hi Charles, With all due respect if you are going to use this for commercial gain you should really be contributing back to the project somehow. Not that I am insisting you do but it's only fair. There are a handful of people who contributed code to this for nothing in return except for the good of the project. Whilst I do not have an issue with anyone using the code at all, After all I did release it. I cannot support this on a commercial basis. Nor should you be using it as basis for commercial enterprise (Ethically or technically). There are no guarantees of this.

What do you mean by "workflow" exactly?

Linear Regression is a standard formula used in a number of things, I suggest you do some further reading on this.

https://en.wikipedia.org/wiki/Linear_regression

The version you are using there it is searching through all the Forex Currency Pairs. So yes it is searching for a trade. What is your level of trading knowledge? You seem to be founder of a trading company right? If you are you should know that the spread it and why it is important to get a low spread.

Any reference to "epic" is IG's internal way of saying "ticker" as in Stock Ticker. They use epic to denote an instrument, Any trading instrument whether it be Forex, Stocks, or Commodities. In this version the EPIC list is not updated automatically, It is in other versions of the code. You can find them if you wish.

Good luck,, But any further support would have to be community based (Check the discord, However I expect you would be met with a frosty reception if you are using this for commercial gain as it is not intended this way) or if it is from me personally I will have to insist on a donation of good will.

DICAP1 commented 5 years ago

Hi there

Thank you for the explanation

I have no plans to use this for commercial gain. I am rather interested in data science, a use case for me to practice python.

Yes I understand linear regression I was just wondering where the predicted price was output too.

My plan is to add a technical and fundamental analysis pattern recognition file to this code,

Thanks so much,

Charles

On 28 May 2019, at 20:07, tg12 notifications@github.com wrote:

Hi Charles, With all due respect if you are going to use this for commercial gain you should really be contributing back to the project somehow. Not that I am insisting you do but it's only fair. There are a handful of people who contributed code to this for nothing in return except for the good of the project. Whilst I do not have an issue with anyone using the code at all, After all I did release it. I cannot support this on a commercial basis. Nor should you be using it as basis for commercial enterprise (Ethically or technically). There are no guarantees of this.

What do you mean by "workflow" exactly?

Linear Regression is a standard formula used in a number of things, I suggest you do some further reading on this.

https://en.wikipedia.org/wiki/Linear_regression https://en.wikipedia.org/wiki/Linear_regression The version you are using there it is searching through all the Forex Currency Pairs. So yes it is searching for a trade. What is your level of trading knowledge? You seem to be founder of a trading company right? If you are you should know that the spread it and why it is important to get a low spread.

Any reference to "epic" is IG's internal way of saying "ticker" as in Stock Ticker. They use epic to denote an instrument, Any trading instrument whether it be Forex, Stocks, or Commodities. In this version the EPIC list is not updated automatically, It is in other versions of the code. You can find them if you wish.

Good luck,, But any further support would have to be community based (Check the discord, However I expect you would be met with a frosty reception if you are using this for commercial gain as it is not intended this way) or if it is from me personally I will have to insist on a donation of good will.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOEA7GQWEEVAZKZNVHLPXV7GTA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNEAMI#issuecomment-496648241, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZOA3WR25YDJ7YWVHCF3PXV7GTANCNFSM4HQFXR3Q.

tg12 commented 5 years ago

OK sure, No problem then.

I would suggest you run it in DEMO first. Then you can see how it works. There is some debugging in there so you should be able to see where the variables exist.

Good luck!

DICAP1 commented 5 years ago

Thanks so much. I will explore.

On 28 May 2019, at 20:19, tg12 notifications@github.com wrote:

OK sure, No problem then.

I would suggest you run it in DEMO first. Then you can see how it works. There is some debugging in there so you should be able to see where the variables exist.

Good luck!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/22?email_source=notifications&email_token=ALKNZOGNO3VYH2SXDVVAQI3PXWAUHA5CNFSM4HQFXR32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWNE7YA#issuecomment-496652256, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKNZOF7KC5CPRAKPBW5273PXWAUHANCNFSM4HQFXR3Q.