Post
Topic
Board Project Development
Re: goxgui - a Graphical Bitcoin Trading Tool for MtGox
by
mrlithium
on 15/05/2013, 00:38:53 UTC
The genBTC fork lags terribly for me now during periods of high activity. The last genBTC version (where the API Key/Secret were stored in the top of the UI rather than under preferences) was fine though.
I made some performance optimizations: I've speeded it up by a factor of 2, So instead of using 5-10% CPU, it should only use 2-5%
Sample Proof:
https://raw.github.com/genbtc/goxgui/master/performance.png
Running 3 instances at the same time, each with different code, I found some ways to speed it up.
The numbers below are for twice the length of time as the picture, just to smooth any errors out.
Version:  CPU Usage Time
older Main Fork (w/ total column, "Before"): 2:40
genBTC fork (with total column,    "After")  : 1:10
Newest Main (no total column,  "Removed) : 0:30

Changes are live on the git.

Everytime I check the box named Activate Stop Loss Bot i get the following error:

23:29:50.760 Traceback (most recent call last):
  File "C:\Users\EOFL\My Documents\GitHub\goxgui\build\pyi.win32\goxgui\out00-PYZ.pyz\goxapi", line 304, in __call__
  File "C:\Users\EOFL\My Documents\GitHub\goxgui\build\pyi.win32\goxgui\out00-PYZ.pyz\stoploss", line 24, in slot_trade
AttributeError: Gox instance has no attribute 'stopOrders'

This shouldn't happen. I'm not sure why that path got inserted in there when I compiled the .exe, I've removed any reference to those now, and the new version is on the github. If you are getting those errors of course the stop loss isnt gonna work. Also, I have invented a way to do the "Stop-Gain" - Buy if price is above certain price.. Just enter the amount of BTC as negative, and the price as the trigger price to buy. "Negative BTC" means do Stop-Gain Buy @ target price.