Search content
Sort by

Showing 20 of 48 results by 5an1ty
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 10/05/2015, 15:30:12 UTC
I will look into it later today, but my Java experience is very limited.
I think i only changed the amount value (in file ..tradingagent.js)
will test to round both to 3 decimal, but i dont think anymore that this is the issue.
The examples from BTC-E exteed the 3 decimals and Gekko bot uses 8 decimals as well...

I also found API Example from BTCE site:
Sample request:
https://btc-e.com/api/3/trades/btc_usd

{"type":"bid","price":243.141,"amount":0.015,"tid":54711701,"timestamp":1431264485}
{"type":"ask","price":242.412,"amount":0.01002,"tid":54711707,"timestamp":1431264511}

according to this the type should be bid/ask...
while in the documentation they (BTCE) say the type is buy/sell

i think in your code it is buy sell too. Now the more i look into it the less i underestand  Huh

Is there an easy way to write the actual API request for buy sell in the logfile (the exact same thing as is send to btce api)?  
Because then the problem should be found easy i guess.




EDIT:It just successfully bought and sold
...just did rounded to 3 decimals for both price and amount in tradingagent.js
for exampel: "this.orderDetails.price = tools.round(lowestAskWithSlippage, 3);"

but i think the amount can be up to 8 decimals, its should just be the price rounded to 3 decimals.

Glad you figured it out, when I get the time I'll make the changes upstream.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 10/05/2015, 14:15:29 UTC
Currently you don't see the raw request but in the btc-e exchange file I execute:

    if(type === 'buy') {

      this.btce.trade(pair, 'buy', price, amount, this.errorHandler(this.placeOrder, args, retry, 'placeOrder', handler, finished));

    } else if (type === 'sell') {

      this.btce.trade(pair, 'sell', price, amount, this.errorHandler(this.placeOrder, args, retry, 'placeOrder', handler, finished));

    } else {

      cb(new Error('Invalid order type!'), null);

    }

and I use a third party btc-e api wrapper you can find here:

https://github.com/pskupinski/node-btc-e

In that module you can see the required parameters for the Trade method:

BTCE.prototype.trade = function(pair, type, rate, amount, callback) {
  this.makeRequest('Trade', {
    'pair': pair,
    'type': type,
    'rate': rate,
    'amount': amount
  }, callback);
};

I provide them correctly, so not sure what's wrong.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 10/05/2015, 12:56:29 UTC
Great Work 5an1ty!
Just played around with it a little and I like it.

However the real trading for BTC-E seems not to work.
The BTC-E API always returns: ERROR: You incorrectly entered one of fields. (like in the previous post)

The Order volumes was defenitly larger than the minimum of 0.01 BTC.
I changed the max decimal places from 8 to 3 (because the BTCE API says: "decimal_places":3,") but that does not seem to help...

Also the Bot seems retrying to place the order every 15 seconds without a timelimit or a count limit. I suggest stoppting this after x failed attempts or something.


Beside this little problems i realy like how flexible this Bot is.

Im now trying to get some basic JS knowledge.  Grin

I'm trying to figure that BTC-E issue out but it doesn't really make sense. I currently don't have a BTC-E account to play with so it's hard to test.

Did you try and change the rounding before it submits the order to 3 decimals in this file in your local copy:
https://github.com/5an1ty/BitBot/blob/master/services/tradingagent.js

this.orderDetails.price
this.orderDetails.amount

apply Math.Round for 3 decimals on these 2 variables.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 27/04/2015, 19:00:37 UTC
Hi,

I'm trying to use BitBot which seems very good, but I have some errors in real, but in this simulation okay.

[25-04-2015 18:14:51] - INFO: Downloader started!
[25-04-2015 18:14:53] - INFO: Advice: buy (0.10834456)
[25-04-2015 18:14:57] - INFO: Preparing to place a buy order! (BTC Balance: 0.02013323 USD Balance: 0.00700479 Trading Fee: 0.2)
[25-04-2015 18:14:57] - INFO: Lowest Ask: 226.5 Lowest Ask With Slippage: 226.7265
[25-04-2015 18:15:00] - ERROR: placeOrder Exchange API returned the following error:
[25-04-2015 18:15:00] - ERROR: Value BTC must be greater than 0.01 BTC.
[25-04-2015 18:15:00] - ERROR: Retrying in 15 seconds!


I thank any suggestions



What exchange are you using?
But this makes sense, it's trying to place a buy order, but you have not enough USD balance to buy a significant enough BTC amount. The exchange won't accept an order smaller than 0.01 BTC.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 28/03/2015, 18:30:26 UTC
Hello,

The settings that are provided are just examples and shouldn't be used without knowledge of what happens when the bot uses those settings.
I don't think we can expect the bot to profit using those settings and 5 minute candlesticks because the amount of transactions would be this high that you would lose money with paying the transaction fees every time.

You need to do some research into what MACD actually does (http://en.wikipedia.org/wiki/MACD) and what candlesticks (http://en.wikipedia.org/wiki/Candlestick_chart) are in order to be able to properly configure your settings.

You need to realize that automated trading is something very complicated and that it is not a money making machine (earning money with bots isn't something that magically works).

BitBot is set up to be modular so in principle you could write your own indicator that is more likely to fit your needs.

Also simulating on a very small historical dataset might not give you a correct idea of how the selected indicator settings actually perform.
Keep on running bitbot with real trading disabled for a while to gather more historical data and then find settings that you like.

Best of luck!
5an1ty
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 20/02/2015, 08:36:22 UTC
Well, I managed to set up MongoDB, works fine, BitBot works well too, but when I make a backtest run, I get -46% profit. Is that because I didn't set it with the best setting or because he had not run long enough? Thanks for any help.

The Backtester will run on the data you have collected up until now, so that might be a very small timeframe and if you are unlucky a profit of -46% is very possible. The default settings I provided are just the most commonly used settings for that indicator. It's up to you to find settings that work for you.

Play around with the indicator settings and candlestick size until you are happy with the back testing result.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 20/02/2015, 08:30:48 UTC
Hi 5an1ty,

I have tried to get your bot running on Win7x86, but node.js and the mongo is a bi..h in Windows environment - so I finally give up with Bills crap System...  Huh

I have a technical background but on Linux, Software Development and coding I have to learn a lot.

Now I want to give it a try on a Raspberry PI with Raspbian as OS. I have ordered the brand new Raspberry Pi 2 Model B (900MHz quad-core ARM Cortex-A7 CPU, 1GB RAM).

Is this possible and can you give me some tips to run your bot on the RPI with Raspbian (especially for the MongoDB)?.




I think a friend of mine got bitbot to work on raspbian, I'll ask him for some tips.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 19/01/2015, 23:55:37 UTC
 v0.9.7 Trading disabled mode now simulates trades
- All remaining BTC-E bugs should be fixed
- When running with trading disabled, BitBot will generate fake trades and manage a fake balance.

Can someone that is using BTC-E please try BitBot and let me know if there are still issues with the API calls?
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 19/01/2015, 23:43:58 UTC
I'd like to test it on Cryptsy's.
Any schedule for that?

Working on lots of stuff right now (web interface is in the works :-)), I'll look into adding Cryptsy as soon as I get the rest done.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 02/01/2015, 16:30:33 UTC
Hello Mr 5an1ty.

First of all, to wish you all the best for 2015.

My questions are :

I've set up and configured everything, I mean mongodb and the config file.

When I start the bot, I stay stucked on the following

[31-12-2014 12:36:06] - INFO: ------------------------------------------
[31-12-2014 12:36:06] - INFO: Starting BitBot v0.9.4
[31-12-2014 12:36:06] - INFO: Real Trading Enabled = false
[31-12-2014 12:36:06] - INFO: Working Dir = C:\Users\jfvarin\Desktop\Bots\BitBot
[31-12-2014 12:36:06] - INFO: ------------------------------------------
[31-12-2014 12:36:06] - INFO: Downloader started!

It doesn't connect to the database.
I checked the db connection using dbhealth and regardless to the errors due to an empty db, I can see the connection with the db monitor.

Any ideas or hints ?

Otherwise, do you have plans to implement cryptsy or should I try to integrate it by myself ?

Anyway, thanks in advance for your answers.

Jofo


That's strange, can you PM me your configuration settings? Don't forget to mark out any sensitive information like for example API keys.

why did you choose javascript and runs on Node.JS.?

btw, this is a really nice project, gonna look into it Smiley

Thanks, I'm always glad to see that someone appreciates my work.

Well I was interested in automated trading, but when I saw the available options (paid and free) I found them all lackluster.
When I started working on BitBot I didn't have a lot of coding experience and I saw this as an opportunity to start learning.

As for my choice of Node.JS: I was already familiar with JS and I really like the way it writes. Oh and I love the package manager: NPM
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 31/12/2014, 12:12:18 UTC
Hello Mr 5an1ty.

First of all, to wish you all the best for 2015.

My questions are :

I've set up and configured everything, I mean mongodb and the config file.

When I start the bot, I stay stucked on the following

[31-12-2014 12:36:06] - INFO: ------------------------------------------
[31-12-2014 12:36:06] - INFO: Starting BitBot v0.9.4
[31-12-2014 12:36:06] - INFO: Real Trading Enabled = false
[31-12-2014 12:36:06] - INFO: Working Dir = C:\Users\jfvarin\Desktop\Bots\BitBot
[31-12-2014 12:36:06] - INFO: ------------------------------------------
[31-12-2014 12:36:06] - INFO: Downloader started!

It doesn't connect to the database.
I checked the db connection using dbhealth and regardless to the errors due to an empty db, I can see the connection with the db monitor.

Any ideas or hints ?

Otherwise, do you have plans to implement cryptsy or should I try to integrate it by myself ?

Anyway, thanks in advance for your answers.

Jofo


That's strange, can you PM me your configuration settings? Don't forget to mark out any sensitive information like for example API keys.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 09/12/2014, 20:37:08 UTC
Do you have any problem with mongo in mac?

node app.js
[08-12-2014 20:11:19] - INFO: ------------------------------------------
[08-12-2014 20:11:19] - INFO: Starting BitBot v0.9.4
[08-12-2014 20:11:19] - INFO: Real Trading Enabled = true
[08-12-2014 20:11:19] - INFO: Working Dir = /Users/leonardo/Sites/BitBot
[08-12-2014 20:11:19] - INFO: ------------------------------------------
[08-12-2014 20:11:19] - INFO: Downloader started!

/Users/user/Sites/BitBot/node_modules/mongojs/node_modules/mongodb/lib/mongodb/mongo_client.js:409
          throw err
                ^
Error: failed to connect to [localhost:27017]

I tried localhost, 127.0.0.1. Sometimes the bot works, sometimes doesn't work. Any idea?

I have never encountered that before, are you sure the MongoDB service is still running and that it doesn't crash?
I don't believe this is an issue with the bot, but more likely an issue with your MongoDB setup.

How did you install MongoDB on OSX? Via Homebrew?
Is the machine permanently on or would it try to hibernate or shut down disk after a period of inactivity?
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 07/12/2014, 22:29:28 UTC
I don't know this bot, but maybe it want's to sell x percent and x percent of 0.22 btc is less than the minimum trade amount? At least that was one of the problems of my bots.

That is configurable, you can set that if you want, but I don't think that's the problem. I changed a couple of things around in the exchange wrapper code in the latest commit, I hope this solves a couple of problems that users might be experiencing.

But keep in mind a lot of exchanges have a minimum order size configured... 0.22 BTC shouldn't be a problem, but amounts as small as 0.05 BTC might be.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 03/12/2014, 22:10:01 UTC
it always trying to say that i dont have enough btc..

Quote
It is not enough BTC in the account for sale.

my btc in btce is 0.005 BTC..is it not enough?

I currently only go as far as 2 decimals, so that's why you get that error message.
You need at least 0.01 BTC for now, but I'll look into supporting smaller quantities.

I also get "It is not enough BTC in the account for sale."

0.22 available in my btc-e account Sad

Can you PM me some more detailed logs. 0.22 should be sufficient to trade so I wonder what's going on.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 13/11/2014, 14:25:37 UTC
Any feature requests you guys have in mind? I'm thinking about creating a small web interface for the bot.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 06/11/2014, 23:44:09 UTC
v0.9.3 Released!

This update changes the expected structure for your config.js file. Makes sure config.js is structured EXACTLY as config.sample.js
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 31/10/2014, 11:12:08 UTC
dem...why you didnt tell me earlier...lol

My apologies, I totally forgot about that limit.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 31/10/2014, 08:36:37 UTC
it always trying to say that i dont have enough btc..

Quote
It is not enough BTC in the account for sale.

my btc in btce is 0.005 BTC..is it not enough?

I currently only go as far as 2 decimals, so that's why you get that error message.
You need at least 0.01 BTC for now, but I'll look into supporting smaller quantities.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A Crypto-Currency trading bot and Backtesting platform (FREE)
by
5an1ty
on 30/10/2014, 14:17:42 UTC
Logs

This is indeed the BTC-E API not responding or responding slowly.

As long as these errors don't happen constantly, there is no problem as BitBot will automatically retry it's API requests. In your example there is sometimes a minute between errors and by default BitBot fetches data every 10 seconds, meaning that there were a couple of successful requests in between the errors.
Post
Topic
Board Project Development
Re: [ANN] BitBot - A COMPLETELY FREE trading bot and Backtesting platform (Node.JS)
by
5an1ty
on 30/10/2014, 11:23:48 UTC
v0.9.2 released: BTC-E Support added (Experimental)

Don't forget to star the repository on GitHub if you enjoy using BitBot :-).

@aidi_hex: I would appreciate if you report back here if you have success running the bot on BTC-E.