Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Unable to sell after period of time #217

Closed
mazhead opened this issue Feb 27, 2014 · 2 comments
Closed

Unable to sell after period of time #217

mazhead opened this issue Feb 27, 2014 · 2 comments

Comments

@mazhead
Copy link
Contributor

mazhead commented Feb 27, 2014

Running the latest gekko for longer time, trades are processed correctly, but yesterday I noticed that the last sell did not complete:

2014-02-26 21:51:29 (DEBUG): Processed trades, sleeping for a minute...
2014-02-26 21:52:17 (DEBUG): Requested BTC/USD trade data from BTC-e ...
2014-02-26 21:52:18 (DEBUG): Fetched 150 new trades, from 2014-02-26 20:51:30 UTC to 2014-02-26 20:52:15 UTC
2014-02-26 21:52:18 (DEBUG): minimum trade treshold: 2014-02-26 20:51:30 UTC
2014-02-26 21:52:18 (DEBUG): processing 144 trade(s)
2014-02-26 21:52:18 (DEBUG): from 2014-02-26T20:51:33+00:00 to 2014-02-26T20:52:15+00:00
2014-02-26 21:52:18 (DEBUG): Skipping creation of already loaded database 2014-02-26
2014-02-26 21:52:18 (DEBUG): inserting candle 1251 (2014-02-26 20:51:00 UTC) volume: 36.87776518
2014-02-26 21:52:18 (INFO): calculated MACD properties for candle:
2014-02-26 21:52:18 (INFO): short: 566.04712568
2014-02-26 21:52:18 (INFO): long: 563.79386207
2014-02-26 21:52:18 (INFO): macd: 2.25326361
2014-02-26 21:52:18 (INFO): signal: 2.60702116
2014-02-26 21:52:18 (INFO): macdiff: -0.35375755
2014-02-26 21:52:18 (INFO): In downtrend since 1 candle(s)
2014-02-26 21:52:18 (INFO): Trader Received advice to go short Selling BTC

2014-02-26 21:52:18 (INFO): We have new trading advice!
2014-02-26 21:52:18 (INFO): Position to take: short
2014-02-26 21:52:18 (INFO): Market price: 560.5
2014-02-26 21:52:18 (INFO): Based on market time: 2014-02-26 21:52:15

2014-02-26 21:52:18 (DEBUG): Processed trades, sleeping for a minute...
2014-02-26 21:52:18 (INFO): attempting to SELL 0.03973041 BTC at BTC-E
2014-02-26 21:52:19 (ERROR): unable to sell:

[Error: You incorrectly entered one of fields.]
2014-02-26 21:53:06 (DEBUG): Requested BTC/USD trade data from BTC-e ...
2014-02-26 21:53:06 (DEBUG): Fetched 150 new trades, from 2014-02-26 20:52:13 UTC to 2014-02-26 20:53:04 UTC
2014-02-26 21:53:06 (DEBUG): minimum trade treshold: 2014-02-26 20:52:15 UTC
2014-02-26 21:53:06 (DEBUG): processing 122 trade(s)
2014-02-26 21:53:06 (DEBUG): from 2014-02-26T20:52:16+00:00 to 2014-02-26T20:53:04+00:00
2014-02-26 21:53:06 (DEBUG): Skipping creation of already loaded database 2014-02-26

The error message is kind of misleading since all other trades are completed ok.

I did not notice any other errors around this.

I have checked the btc-e and there was no order created, after restart the sell is ok, so I do not suppose it is related to the error we had earlier (long numbers).

@askmike
Copy link
Owner

askmike commented Feb 27, 2014

[Error: You incorrectly entered one of fields.]

Darn, BTC-e basically always returns this error whenever something is wrong (to small order amount, to many digits, generic error).

Once Gekko encounters such an error it should recreate it, however I'll re look into this code...

@askmike
Copy link
Owner

askmike commented Jun 5, 2016

This should be fixed since d38bcbe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants