Pages:
Author

Topic: tAPI-bot - Automated crossover trade platform for BTC-e [INACTIVE 2013-10-15] (Read 36345 times)

full member
Activity: 209
Merit: 100
I'like this bot really!!!! I'hope you will find time to tune the bot ... for giving profit ...
hero member
Activity: 896
Merit: 532
Former curator of The Bitcoin Museum
I've figured out it's directly related to changing...
Code:
min_volatility = 1.0
# Min volatility sleep: time in seconds to sleep between min volatility checks when volatility is below threshold
volatility_sleep = 120
to
Code:
min_volatility = 0.8
# Min volatility sleep: time in seconds to sleep between min volatility checks when volatility is below threshold
volatility_sleep = 90

Is it possible that increasing the amount of times that the api is checked can induce an response that confounds the bot?
hero member
Activity: 896
Merit: 532
Former curator of The Bitcoin Museum
I'm getting this A LOT.  I think it only happens when it attempts to make a buy. bot was working pretty good until this started happening...

Code:
Volatility is 0.84%
Market trending up
Traceback (most recent call last):
  File "application.py", line 57, in
    runLoop()
  File "application.py", line 33, in runLoop
    trader.update()
  File "C:\tAPIbot-master\tapi\trader.py", line 113, in update
    self.evalOrder()
  File "C:\tAPIbot-master\tapi\trader.py", line 172, in evalOrder
    self.placeBid()
  File "C:\tAPIbot-master\tapi\trader.py", line 216, in placeBid
    amount = balance/rate
TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'
newbie
Activity: 27
Merit: 0
Edited thread title to inactive. Other projects have been consuming my time.

That saddens me   Embarrassed

Good luck with your other projects though  Wink

Thank you. I won't say the project is dead, I may revisit when I have the time to test and tune.

That would be great!! I'm currently learning python just so I can tweak this. Thanks for the code Smiley Looks like you put a decent amount of time into this!

A lot of time... I wrote this as a way of writing functional code I was interested in while learning Python basics myself.

A word of warning; most of the code is extremely amateur, and does not follow best practices. Frankly, it's a mess. There are many areas for improvement.

Best of luck! As others have stated, the biggest area of functional improvement is a better source of ticker data.

Thanks for the tip! I'm a first year networking student and have almost no experience with coding. I am basically learning from the ground up. Someone I know who trades 100's of BTC used this bot as a shell for the one that he wrote and he recommended this one to me. I can't even get this to run  Roll Eyes I'll get a hang of it though. I hope you don't mind if I message you every once in a while to ask you a question about it Smiley
newbie
Activity: 27
Merit: 0
Edited thread title to inactive. Other projects have been consuming my time.

That saddens me   Embarrassed

Good luck with your other projects though  Wink

Thank you. I won't say the project is dead, I may revisit when I have the time to test and tune.

That would be great!! I'm currently learning python just so I can tweak this. Thanks for the code Smiley Looks like you put a decent amount of time into this!
newbie
Activity: 27
Merit: 0
Edited thread title to inactive. Other projects have been consuming my time.

That saddens me   Embarrassed

Good luck with your other projects though  Wink
newbie
Activity: 33
Merit: 0
If anyone is testing this with PPC_BTC, add the following in trader.py:

def getPip(self):
        '''provides correct minimum pip for orders, BTC-e specific'''
        pair = self.config.pair
        if 'ltc' in pair or 'nmc' in pair or 'ppc' in pair:
            return 0.00001
        else:
            return 0.001
MCT
newbie
Activity: 6
Merit: 0
Anyone else has problems with placing orders on btc_usd?

Sometimes it just does nothing when it says market trending up and sometimes it says not enough usd.
legendary
Activity: 1610
Merit: 1000
Crackpot Idealist
Nice piece of code BUT you really have to fetch candles via bitcoincharts api. The last 150 trades are just a too small timeframe to build MAs on. I tried several options but only loosing money due to wrong signals.

Please consider at least to download the last ~100 hours of tradedata from the bitcoincharts api and calculate hourly close prices.

Then we could use crossing averages strategies on those pseudocandles.


The program is open source. Feel free to make changes. I've long wanted to properly abstract the API portion, but haven't found the time to do so. I will add this to my possible todo list though.


Nice to see you working on this again bud!
legendary
Activity: 2955
Merit: 1049
I tried several options but only loosing money due to wrong signals.
for me the same..
MCT
newbie
Activity: 6
Merit: 0
Nice piece of code BUT you really have to fetch candles via bitcoincharts api. The last 150 trades are just a too small timeframe to build MAs on. I tried several options but only loosing money due to wrong signals.

Please consider at least to download the last ~100 hours of tradedata from the bitcoincharts api and calculate hourly close prices.

Then we could use crossing averages strategies on those pseudocandles.


legendary
Activity: 2955
Merit: 1049
Edit: if you'd like to do some testing, uncomment either or both of the following from tapi/trader.py:

Code:
         
#amount = round((balance/rate),3)
Code:
    
#amount = amount - 0.00001


I have uncommented both an get the same again
Code:
Volatility is 1.86%
Market trending up
Order returned error:/n You incorrectly entered one of fields.
Signal Spread: 0.73%
legendary
Activity: 965
Merit: 1000
Arb is better methinks?
hero member
Activity: 900
Merit: 1000
Crypto Geek
Am I right in thinking that EMA is the only (reliable) bot method for btc?
legendary
Activity: 2955
Merit: 1049
thx
but now I get always
Code:
Order returned error:/n You incorrectly entered one of fields.
which field?
legendary
Activity: 2955
Merit: 1049
Code:
Traceback (most recent call last):
  File "Application.py", line 57, in
    runLoop()
  File "Application.py", line 33, in runLoop
    trader.update()
  File "/home/xxx/xx/trader.py", line 113, in update
    self.evalOrder()
  File "/home/xxx/xx/trader.py", line 177, in evalOrder
    self.placeAsk()
  File "/home/xxx/xx/
line 256, in placeAsk
    order = self.placeOrder('sell',rate,amount)
NameError: global name 'amount' is not defined
legendary
Activity: 965
Merit: 1000

No promises, but I'll try to set aside some time to make a few changes.

Edit: if you got the generic "Error parsing trades", that is likely the API failing to respond. I didn't/don't have great exception handling going on.

Check the HTTP response code. It's most likely 504 with some HTML from cloudflare, or so...
newbie
Activity: 5
Merit: 0
Since yesterday, I have the same problem. It just stop working: (
The configuration has not been changed, the software also unchanged.


EDIT:

Already running, it looks like it's a problem with btc-e api.
member
Activity: 102
Merit: 10
I keep getting error parsing trades error when I run application.py
legendary
Activity: 2955
Merit: 1049
feedback:
now I have run the bot for ~2 weeks with the default options
start was with
USD:  0.00
BTC:  1.00
now after xxx trades result is:

Code:
Available Balances:
USD: 0.02570973
BTC: 0.96450296
means, that there has to be some options to change
but which?
 Wink
Pages:
Jump to: