dsc-dsc-dsc / btc-e_Trade_bot

A Bitcoin trading bot for btc-e
MIT License
54 stars 27 forks source link

Not trading anything #15

Open rchimale opened 10 years ago

rchimale commented 10 years ago

It shows numbers of balance and more correctly, and everything but never trades anything, I've set the pair ltc_usd, no errors shown in window or log. Ran for more that one hour, and nothing happend is that normal? Config file has the API keys and API secret, default values for trading.

Regards,

Ruben

rchimale commented 10 years ago

I mean that I can see the trades on the bot but nothing on the website btc-e and the balances never change, no transactions, nothing. Thanks!

ilikenwf commented 10 years ago

Same here.

On Sat, Dec 7, 2013 at 9:46 PM, rchimale notifications@github.com wrote:

I mean that I can see the trades on the bot but nothing on the website btc-e and the balances never change, no transactions, nothing. Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/mcfundash/btc-e_Trade_bot/issues/15#issuecomment-30074379 .

2rei commented 10 years ago

I have the same the bot on i see balance pair ltc_usd no error but no transaction

frollard commented 10 years ago

Same problem here...shows that threshold reached then promptly does nothing...error log shows a bunch of problems parsing the JSON response...

2rei commented 10 years ago

so i donny how to solve it doesnt sell or buy

AngryTony commented 10 years ago

Same prob here. my log shows trades. Buy and sell on the ltc/btc pairing. But on my btce account there is no actual trades happening. Simulation is off.

lejacobroy commented 10 years ago

Same here, BUYING === 0.02754374 SELLING === 0.02787626 AVERAGE === 0.02771 CURRENT === 0.02771

LAST ACTION sell @ 0.0 TRADE AMOUNT === 0.013743

No errors or trades in logs, nor on btc-e

ilikenwf commented 10 years ago

Any news on this? It's not much of a bot if all it does is simulations.

dsc-dsc-dsc commented 10 years ago

Not sure why this is at all, I can't really think of anything that wouldn't give an error and I can't reproduce it myself. Hopefully someone with the problem can fork it and fix it :/

ilikenwf commented 10 years ago

What python version you running? Linux or windows?

Any libraries required that I may not have?

I'm on 2.7.6

On Mon, Mar 31, 2014 at 2:38 PM, Dash Scarborough notifications@github.comwrote:

Not sure why this is at all, I can't really think of anything that wouldn't give an error and I can't reproduce it myself. Hopefully someone with the problem can fork it and fix it :/

— Reply to this email directly or view it on GitHubhttps://github.com/Sprylitol/btc-e_Trade_bot/issues/15#issuecomment-39131651 .

dsc-dsc-dsc commented 10 years ago

I did all the dev on linux, though I tested it on a windows system and it seemed to work fine, I don't think theres any libraries that you would be missing, all part of the default python package aside from the api which I included

avult78 commented 10 years ago

Figured I would give this trade bot a try again and I am still experiencing the no trade issue that all of the above are seeing. Anyone figure this out yet?

soneric commented 7 years ago

Hello,

i´m starting to see this work, i faced the same problem and i go to ErrorLog in the folder and find this:

Traceback (most recent call last): File "auto.py", line 270, in refresh_price() File "auto.py", line 258, in refresh_price check_if_changed(trade_threshold, last) File "auto.py", line 202, in check_if_changed make_trade("buy") File "auto.py", line 164, in make_trade api.trade(pair, "buy", ceil(price*100000)/100000.0, tradex) File "C:\Users\dev\Desktop\btc-e_Trade_bot-master\btc-e_Trade_bot-master\btceapi\btceapi\trade.py", line 238, in trade return TradeResult(self._post(params)) File "C:\Users\dev\Desktop\btc-e_Trade_bot-master\btc-e_Trade_bot-master\btceapi\btceapi\trade.py", line 148, in _post % (params["method"], result.get(u'error'))) Exception: Trade call failed with error: Value BTC must be greater than 0.001 BTC.

and than i modified the code only to force the trade:

def make_trade(trade, tradex = tradex): TLog = open('TradeLog.txt', 'a') price = average_price() tradeInfo = str(trade) +","+ str(price) tradeInfo = str(tradeInfo) + "\n" print tradeInfo if trade == "buy": print "buying", tradex if SimMode == "off": print ("ceil: " + str(ceil(price100000)/100000.0)) print ("tradex: " + str(tradex)) if tradex > 0.001: api.trade(pair, "buy", ceil(price100000)/100000.0, tradex) else: api.trade(pair, "buy", ceil(price100000)/100000.0, 0.001) print "not buying value is less than 0.001 ", tradex TLog.write(tradeInfo) if SimMode == "off": save_old() save_state("buy",price) print "writing", tradeInfo TLog.close() if trade == "sell": print "selling", tradex if SimMode == "off": print("ceil: " + str(ceil(price100000)/100000.0)) print ("tradex: " + str(tradex)) if tradex > 0.001: api.trade(pair, "sell", ceil(price100000)/100000.0, tradex) else: api.trade(pair, "sell", ceil(price100000)/100000.0, 0.001) print "not selling price is less than 0.001 ", tradex TLog.write(tradeInfo) if SimMode == "off": save_old() save_state("sell",price) print "writing", tradeInfo TLog.close()

early = average_price()

in using btc_usd

I hope I have helped

halsoi commented 7 years ago

@soneric Hi, could you please provide your auto.py with changes? I try to change it, something went wrong

soneric commented 7 years ago

hi @halsoi the code is: auto.txt

change to py the extension. just to remember this code is only my test, be careful. and is with a lot of changes like, verification to the last action and others. i recomend to wait the next commit of this project.