How to implement a Nadex autotrading bot?

0101 picture 0101 · Aug 15, 2016 · Viewed 7.9k times · Source

I have been searching for a way to autotrade on Nadex

https://www.nadex.com

and came across this script https://github.com/FreeTheQuarks/NadexBot

It is an old script and I am not that experienced in Python.

Q1: Is this a good way to go about, thus since it is not a official API and is probably scraping data from the site, which would mean slower requests and trade execution?


There is also an unofficial API client https://github.com/knoguchi/nadex/tree/master/nadex

But again, not sure if good for live trading.

Q2: Is there better ways to go about this and if so where should I start?

Answer

Kenji Noguchi picture Kenji Noguchi · Dec 5, 2016

I'm the author of the Nadex unofficial API Python client. I still maintain it. Recently the streamer support was added. However, I suggest that you use JavaScript from nadex.com. It's always up-to-date and works just like the official web site, obviously.

The JS code is professionally written. Very readable. There are 100 JavaScript files but essential ones for the API access are only handful.

Nadex is a part of IG Group. Hence the JS has lots of IG namespace. IG offers API and documents for developers. Nadex message format is a little different from IG's but the design is same. Once you learn the document, all the JavaScript code is really easy to understand.