Search content
Sort by

Showing 10 of 10 results by leela
Post
Topic
Board Trading Discussion
Re: goxtool bot: portfolio rebalancing
by
leela
on 23/12/2013, 01:04:55 UTC
So you're telling me this has nothing to do with balancer.py from https://github.com/caktux/goxtool ?  Hmmmm.
Thats a fork of my original bot. I don't know what was changed in this fork and how to use it, I can only recommend my original as it is found in the link on page 1.

Yes, I see, I'm studying the diff now. I didn't realise he imported your code into goxtool and made a few changes around the place (hence my confusion). It seems he did this relatively recently too.
Post
Topic
Board Trading Discussion
Re: goxtool bot: portfolio rebalancing
by
leela
on 23/12/2013, 00:57:36 UTC
So you're telling me this has nothing to do with balancer.py from https://github.com/caktux/goxtool ?  Hmmmm.
Post
Topic
Board Trading Discussion
Re: goxtool bot: portfolio rebalancing
by
leela
on 23/12/2013, 00:31:49 UTC
I'm trying to get this to run on my linux box. I'm not normally a noob (been using linux since mid 90s) but I am a Python noob. If this was written in perl or something, no problem. Tongue

First problem was python-crypto wasn't installed. Second problem was python-simplejson wasn't installed.

 1807  apt-get install python-crypto
 1808  apt-get install python-simplejson

So after that, we have a new problem. (sorry for the spam, but this is how the output came out. I did delete screenfulls of blank lines at least.)


:~/goxtool$ ./goxtool.py --strategy=balancer.py
enter passphrase for secret:
testing secret...
testing key...
ok :-)

Price: 0.000000 - 0.000000 | Market: BTCUSD | Account: No info (yet)
sum_bid: 0 USD | sum_ask: 0 BTC | ratio: - USD/BTC | lag:  / 0.000 s (order / socket)

                                                                   
### shutdown...                                                     
                                                                   


*** error(s) in curses_loop() that caused unclean shutdown:

                                                           Traceback (most recent call last):
                                                                                               File "./goxtool.py", line 1592, in curses_loop
             strategy_manager = StrategyManager(gox, strat_mod_list)
                                                                      File "./goxtool.py", line 1476, in __init__
                                                                                                                     self.reload()
                                                                                                                                    File "./goxtool.py", line 1490, in reload
                                             strategy_module = __import__(name)
                                                                                 File "/home/leela/goxtool/balancer.py", line 16, in
              conf = json.load(open("user.conf"))
                                                 IOError: [Errno 2] No such file or directory: 'user.conf'

                                                                                                          Traceback (most recent call last):
          File "./goxtool.py", line 1679, in curses_loop
                                                            strategy_manager.unload()
                                                                                     UnboundLocalError: local variable 'strategy_manager' referenced before assignment


Exception in thread Thread-1 (most likely raised during interpreter shutdown):
                                                                              Traceback (most recent call last):
                                                                                                                  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
                                                      File "/usr/lib/python2.7/threading.py", line 757, in run
                                                                                                                File "/usr/lib/python2.7/threading.py", line 403, in wait
                                       File "/usr/lib/python2.7/threading.py", line 267, in wait
                                                                                                : list.remove(x): x not in list
                         :~/goxtool$


Okay, so lets create user.conf.


:~/goxtool$ touch user.conf
:~/goxtool$ ./goxtool.py --strategy=balancer.py
enter passphrase for secret:
testing secret...
testing key...
ok :-)


Price: 0.000000 - 0.000000 | Market: BTCUSD | Account: No info (yet)
sum_bid: 0 USD | sum_ask: 0 BTC | ratio: - USD/BTC | lag:  / 0.000 s (order / socket)

                                                                   
### shutdown...                                                     
                                                                                                                 

*** error(s) in curses_loop() that caused unclean shutdown:

                                                           Traceback (most recent call last):
                                                                                               File "./goxtool.py", line 1592, in curses_loop
             strategy_manager = StrategyManager(gox, strat_mod_list)
                                                                      File "./goxtool.py", line 1476, in __init__
                                                                                                                     self.reload()
                                                                                                                                    File "./goxtool.py", line 1490, in reload
                                             strategy_module = __import__(name)
                                                                                 File "/home/leela/goxtool/balancer.py", line 16, in
              conf = json.load(open("user.conf"))
                                                   File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 357, in load
    use_decimal=use_decimal, **kw)
                                    File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 413, in loads
                                                                                                                          return _default_decoder.decode(s)
                         File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 402, in decode
                                                                                                               obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                              File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 420, in raw_decode
                                                                                                                        raise JSONDecodeError("No JSON object could be decoded", s, idx)
                                                    JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)

                                                                                                                              Traceback (most recent call last):
                              File "./goxtool.py", line 1679, in curses_loop
                                                                                strategy_manager.unload()
                                                                                                         UnboundLocalError: local variable 'strategy_manager' referenced before assignment


Exception in thread Thread-1 (most likely raised during interpreter shutdown):
                                                                              Traceback (most recent call last):
                                                                                                                  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
                                                      File "/usr/lib/python2.7/threading.py", line 757, in run
                                                                                                                File "/usr/lib/python2.7/threading.py", line 403, in wait
                                       File "/usr/lib/python2.7/threading.py", line 267, in wait
                                                                                                : list.remove(x): x not in list
                          Exception in thread Thread-2 (most likely raised during interpreter shutdown):
                                                                                                        Traceback (most recent call last):
        File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
                                                                                File "/usr/lib/python2.7/threading.py", line 759, in run
      File "/home/leela/goxtool/goxapi.py", line 431, in _fire
                                                                 File "/home/leela/goxtool/goxapi.py", line 371, in __call__
                                                                                                                               File "/usr/lib/python2.7/threading.py", line 121, in acquire
                                                       : 'NoneType' object is not callable
                                                                                                                       :~/goxtool$



Urghh.

The code in balancer.py has:


# Load user.conf
conf = json.load(open("user.conf"))

# Set defaults
conf.setdefault('balancer_simulate', True)
conf.setdefault('balancer_distance', 7)
conf.setdefault('balancer_fiat_cold', 0)
conf.setdefault('balancer_coin_cold', 0)
conf.setdefault('balancer_marker', 7)
conf.setdefault('balancer_compensate_fees', False)
conf.setdefault('balancer_target_margin', 1)


So I assume it would use those as defaults if there's nothing in the conf file...

Anyway, I don't know if I've pulled some new version from git or what because there's no instructions in this thread or the goxtool website about needing this conf file or what to put in it...
Post
Topic
Board Exchanges
Re: MtGox withdrawal delays [Gathering]
by
leela
on 07/11/2013, 03:29:03 UTC
Bitstamp has higher price than MTGox  Shocked  Cheesy

Now is the time to move your BTC over without any loss Smiley

Planning to do it, already told MtGox to cancel my USD withdrawl from several months ago... but in the last couple hours the price has gone ballistic.

I except the bubble to pop and there to be a crash soon.
Post
Topic
Board Exchanges
Re: MtGox withdrawal delays [Gathering]
by
leela
on 29/10/2013, 21:52:28 UTC
Alrighty. Been reading this thread for about a month or more, been unable to register for the past month and when I finally DID manage to register I had to hang around for 4 hrs and post 5 posts in the newbie section first. OMG so many roadblocks in place it feels like a MtGox conspiracy to stop people from posting their withdrawal woes on this thread, I swear. I mean could they have made it any harder and made me wait any longer???

I imagine there's a lot of people in my situation who've been unable to post to this thread or haven't been as determined as me. So the majority of people never get to post and we are missing out on an incredible amount of data points that we otherwise could have.

  • On August 7 I made a withdrawl for over $6000 USD using SWIFT to my US currency account down in New Zealand. (Yes I deliberately wanted my money in USD)
  • Every few weeks I'd contact them and ask what the hell is up, still no money, usual backlog 2 weeks blah blah response.
  • Eventually after 2+ months I started googling MtGox USD withdrawal and found this thread. Been reading it since and frustarted as hell I couldn't post.
  • On October 21 finally fed up and seeing people requesting the 5% urgent manual withdrawal option I do the same. (I figured it was safer than buying bitcoins and transferring elsewhere at a loss and doing a withdrawal there.)
  • After a reponse saying please stand by while we research, a day later I get another post from them stating they can withdrawal to me using NZD instead.
  • So I replied okay, FINE, I really wanted USD not NZD but whatever, money is better than no money, right? So I replied and state that the bank account I specified was a USD currency account and i'd have to give them my NZD currency account number instead. This is when they replied with clarification. They can cancel my USD withdrawal and I have to buy bitcoins in USD and sell them in NZD and then do a withdrawal to the correct NZD account.

ARRRGHHH!H#!@#!! I HATE YOU MTGOX.


Nevermind I can't do that even if I WANTED to because NO BODY trades bitcoin in NZD on MtGox. AUD is maybe an option but not NZD as NZ already has a better bitcoin exchange operated locally within the country. I COULD buy bitcoins on MtGox and sell on the local exchange in NZ for NZD but it has very little trades too and I fear it'll take forever to cash out without dropping the price here too much.

Don't know what to do anymore. I really really hate MtGox now.
Post
Topic
Board Beginners & Help
Re: It's stupid that newbies must make 5 posts and browse for 4 hours. Here's why
by
leela
on 29/10/2013, 21:34:30 UTC
thanks for the explanations for the required posts for newbies

no problem.

Is this my post #5 yet?
Post
Topic
Board Beginners & Help
Re: It's stupid that newbies must make 5 posts and browse for 4 hours. Here's why
by
leela
on 29/10/2013, 02:50:38 UTC
+1.

Yes this is all very silly.

I've been dying to post in another thread about USD withdrawals for MtGox as i've been waiting on a USD withdrawal for like 3 months now. (https://bitcointalk.org/index.php?topic=179586.2200)

Not only have I had to wait like a month before registration on bitcointalk was FINALLY reenabled, I have to now waste time posting in the newbie forums... omg, it just feels like everyone is trying to put up artificial walls and barriers. I just wanted to post on that thread over a month ago D:

Not getting any less silly, guys.

The real sad part about this is that i've probably read 100 hrs of bitcointalk but none of that counts because i didn't have an account yet..... BECAUSE I COULDN'T MAKE ONE. Damn registrations being disabled for so long. *frustrated*

Someone's going to start a conspiracy theory, registrations disabled for a month and all these artificial walls to stop people complaining about mtgox and their ridiculously slow (or in many cases with USD, simply no withdrawals).
Post
Topic
Board Beginners & Help
Re: It's stupid that newbies must make 5 posts and browse for 4 hours. Here's why
by
leela
on 29/10/2013, 02:43:09 UTC
2 hours and 40 minutes of silly-time remaining for me. Should be getting a bit less silly now...

lol.

Waiting waiting waiting... might go get a coffee. It's a real slow afternoon at work, too.
Post
Topic
Board Beginners & Help
Re: It's stupid that newbies must make 5 posts and browse for 4 hours. Here's why
by
leela
on 29/10/2013, 02:33:10 UTC
+1.

Yes this is all very silly.

I've been dying to post in another thread about USD withdrawals for MtGox as i've been waiting on a USD withdrawal for like 3 months now. (https://bitcointalk.org/index.php?topic=179586.2200)

Not only have I had to wait like a month before registration on bitcointalk was FINALLY reenabled, I have to now waste time posting in the newbie forums... omg, it just feels like everyone is trying to put up artificial walls and barriers. I just wanted to post on that thread over a month ago D:

Not getting any less silly, guys.
Post
Topic
Board Beginners & Help
Re: It's stupid that newbies must make 5 posts and browse for 4 hours. Here's why
by
leela
on 29/10/2013, 02:09:16 UTC
+1.

Yes this is all very silly.

I've been dying to post in another thread about USD withdrawals for MtGox as i've been waiting on a USD withdrawal for like 3 months now. (https://bitcointalk.org/index.php?topic=179586.2200)

Not only have I had to wait like a month before registration on bitcointalk was FINALLY reenabled, I have to now waste time posting in the newbie forums... omg, it just feels like everyone is trying to put up artificial walls and barriers. I just wanted to post on that thread over a month ago D: