IG Index Scalping/Scraping Bot, Written in Python3/Cross Platform/REST API
Discussion here - https://www.reddit.com/r/UKInvesting/comments/7lx03l/python_ig_index_bot/
USE AT YOUR OWN RISK!!!
Thing's to note.
This has been "Hacked" to work on Spot Gold, It have been tested on Bitcoin and because of the massive swings it is highly profitable. Not sure about Spot Gold, However I wanted to use it with something that has "Low Barriers to entry" Bitcoin and IG index, Well frequently they disable Buying etc and the margin's required and spread's are horrendous (Not limited to IG though so not their fault). This is meant to be for beginners so you can invest a small amount and grow it over time.
I wrote this in Notepad++, I am telling you this because It nicely shows the line numbers so ask if you have a query about a particular bit. Plus it's nice to format code and commenting and commenting stuff is a doddle.
https://notepad-plus-plus.org/
The code is here, It will output some debugging stuff to the console currently.
Line(s) 28/39 - Change your Username/Password and API Key and if you want to use Real money (YOUR OWN RISK!!) or DEMO.
Line 327 - This is how far to look back to get an idea of market direction. You can change this, I use 2 hours, I have tested it as high as 3 hours and as low as a minute (Which is pretty useless).
Bitcoin Cash (BCH) - qpz32c4lg7x7lnk9jg6qg7s4uavdce89myax5v5nuk
Ether (ETH) - 0x843d3DEC2A4705BD4f45F674F641cE2D0022c9FB
Litecoin (LTC) - Lfk5y4F7KZa9oRxpazETwjQnHszEPvqPvu
Bitcoin (BTC) - 14Dm7L3ABPtumPDcj3REAvs4L6w9YFRnHK