Bitcoin: Luno (BitX) trading bot?

Thread bump - I've got some funds setup in Luno, and also plan to start growing my BTC balance using a trading bot.

From my initial research, Gekko looks to be a good starting point - its not a trading bot per se, but an open-sourced trading and backtesting platform based on NodeJS. It comes with a few trading strategies out of the box (you can also add custom trading strategies), and it offers historical data backtesting.
It's not a high frequency platform, i.e trading at less than 1min intervals (for that you would need an online paid solution). The custom trading strategies seems like a great option to test and experiment with, especially since we will likely be seeing volatility in the BitCoin with the looming segwit updates to the blockchain on Aug 1st (which is great for trading).

On a side note: I've been struggling to import historical data from Luno (bitx) -- the importer is written in NodeJS, which is part of my development stack at work. I'll investigate and add a post if I manage to get it fixed.
 
Thread bump - I've got some funds setup in Luno, and also plan to start growing my BTC balance using a trading bot.

From my initial research, Gekko looks to be a good starting point - its not a trading bot per se, but an open-sourced trading and backtesting platform based on NodeJS. It comes with a few trading strategies out of the box (you can also add custom trading strategies), and it offers historical data backtesting.
It's not a high frequency platform, i.e trading at less than 1min intervals (for that you would need an online paid solution). The custom trading strategies seems like a great option to test and experiment with, especially since we will likely be seeing volatility in the BitCoin with the looming segwit updates to the blockchain on Aug 1st (which is great for trading).

On a side note: I've been struggling to import historical data from Luno (bitx) -- the importer is written in NodeJS, which is part of my development stack at work. I'll investigate and add a post if I manage to get it fixed.

Cool! I'm definitely going to have a look at Gekko...
Yip, think there is going to be quite a dip in price with the whole SegWit debacle.
 
Cool! I'm definitely going to have a look at Gekko...
Yip, think there is going to be quite a dip in price with the whole SegWit debacle.

Cryptocurrency traders can do anything to any coin at any time. Since this is the trading bot thread, this is how the many pump and dump groups operate. On neutral grounds, LTC had great success with the SegWit adoption and has since doubled in value. BTC may or may not receive the same attraction as LTC did.

I use Zenbot, but v4 is currently unreliable. I used it to trade on Poloniex, Kraken and Bittrex. You also need to run it on Linux, OSX or Docker.
 
Wrote a simple bot that buys and sells in relation to the highs and lows over short periods. Have to run for a couple of weeks to see if it works. Overall trend is downward since 11 June so some of the sell orders are not being met. Next up is PAMR which is not too far removed from what I'm doing now, it focuses more on the median over a period.
 
Also check out FX differences. Luno seems to be a little off occasionally compared to the spot rate.

That's assuming you've got access to FX at good rates though.
 
Wrote a simple bot that buys and sells in relation to the highs and lows over short periods. Have to run for a couple of weeks to see if it works. Overall trend is downward since 11 June so some of the sell orders are not being met. Next up is PAMR which is not too far removed from what I'm doing now, it focuses more on the median over a period.

My 'go' bot ran into similar problems, generally runs fine for weeks, but from time to time slumps out. I've now put in a check to only sell after purchase is confirmed, basically, it never places sell orders until its confirmed a purchase and the trend over last few minutes is going up. Its not full proof, but working so far. My objective isn't to generate cash, purely to generate btc from the little I have for future, which isn't going too bad, even with 'slump' check, can easily do 100 transactions a day, each adding a little btc to my 'btc savings pool', at the same time selling less btc for more than I paid, to keep my purchase balance available.
 
I'm currently writing a bot from scratch.. I haven't been able to post an order using the Post Market Order API call.. It seems to be broken.
 
I have come to the conclusion that the only way different exchanges can so quickly balance out price differences must be through bots. Gonna try an arbitrage bot sometime.
 
I have come to the conclusion that the only way different exchanges can so quickly balance out price differences must be through bots. Gonna try an arbitrage bot sometime.

That's a good idea!! Arbitrage is difficult to check yourself - this is where a bot could be of great assistance :)
 
Not aware of any issues on our end :)
Anything standing out in the logs?

It just says invalid order type.. See JSON response below:

{"error":"Invalid order type.","error_code":"ErrInvalidOrderType"}

I've tried it with a few different permutations of parameters already. My understanding from the documentation is that for type SELL you base_volume and base_account_id is optional. I've tried this with with and without base_account_id and it just results in the error above.

I got the account ID using the get balances API call..
 
It just says invalid order type.. See JSON response below:

{"error":"Invalid order type.","error_code":"ErrInvalidOrderType"}

I've tried it with a few different permutations of parameters already. My understanding from the documentation is that for type SELL you base_volume and base_account_id is optional. I've tried this with with and without base_account_id and it just results in the error above.

I got the account ID using the get balances API call..

The list orders API call also doesn't return data.. I've even tried it with different API keys (one that had view orders and create orders permission, and one that has all permissions)

I've also tried it with and without parameters, it always returns

{
"orders": null
}
 
Luno API is working fine. I have a bot that I am currently developing. it posts both sell and buy orders without any problem. I am still looking into an efficient way strategies can be implemented into the robot. below is the couple of ideas that I have:
1.MACD: uses historical data to make decision on whether to buy or sell
2. Spread: I have realised that in Luno, BTC looses its value quicker than other popular exchanges (ex. Bittrex, that I use as well), I have few examples in which BTC looses value oft R4000 in less than 10sec ( last week I saw BTC going from R119000 down to R1140000 in less than 10 secs).
3. Events: this strategy must use machine learning techniques to make decision based on what is currently happening on the platform(LUNO.COM), if people are buying, the robot detects the BUYING EVENT and make decision accordingly, if people are SELLING, the borot does the same thing.

I am a developer and would be glad to work with another developer to develop a robust robot and make some money.
 
Not aware of any issues on our end :)
Anything standing out in the logs?

Any idea on how to assess historical data for testing purposes?
I have checked the API documentation and I didn't find any relevant info.
 
Any idea on how to assess historical data for testing purposes?
I have checked the API documentation and I didn't find any relevant info.

Bump this question - I am also looking for historical data...
 
Top
Sign up to the MyBroadband newsletter
X