Title: Tulpenmanie, an exchange client Post by: Emery on September 05, 2012, 06:52:26 PM Are you tired of in-browser trading? Garish graphic designs got your inter-pipes clogged with cookies? Should you hit refresh or wait for that trade page to load? Is hand formating API calls because you lost your yubikey becoming tedious?
Then for you I present tulpenmanie, a multi-market exchange client: https://github.com/3M3RY/tulpenmanie (https://github.com/3M3RY/tulpenmanie) https://i.minus.com/idA9mesgKENwI.png It displays tickers, makes limit and market orders, cancels orders, and can initiate bitcoin transfers between exchanges. Right now I'm working on supporting streaming exchange APIs which looks like I'll be overhauling the exchange module system. I get that done and I can move on to things like charts and depth tables. Supported exchanges:
Requires Python-2.7 and PyQt4. Unless you're on Gentoo it's manual install only for now. Gentoo install instructions Code: USE="git" emerge -u layman && layman -a bitcoin && emerge -av tulpenmanie I've got it to run on windows, and I plan to make an installer. Please be patient, I don't have a windows install anywhere. Rest assured that I am making every effort to maintain cross-platform compatibility. First I need to stabilize what I have before I can deal with OS's that I never use. Getting it to work on pre-intel OSx is almost impossible. As for later versions I don't know. Consider it in beta for now. If there are questions or problems I lurk in the #bitcoin channel when I can, nick EM3RY. If it seems like there questions below that are answered above, it is because I previously didn't address those questions in this message and have made an edit. Title: Re: Tulpenmanie, an exchange client Post by: bitcoinspot.nl on September 06, 2012, 09:35:05 AM probably a noob question, but i will ask anyway :)
does this run on windows? roland. Title: Re: Tulpenmanie, an exchange client Post by: Emery on September 06, 2012, 09:33:12 PM does this run on windows? It should be fully cross-platform but I have not tested it on windows or OSX yet. I don't know what is involved in getting it running on windows but I plan on looking into it. I should note that passwords and API key/secrets are stored plaintext, so keep that in mind if you run one of those crappy backdoored OSes or don't encrypt to disk. Title: Re: Tulpenmanie, an exchange client Post by: eja on September 06, 2012, 09:40:26 PM I tried but I don't seem to get it too work completely.. I added my BTC-e api keys and on the console I can see it fetching ticker data from btc and mtgox (or at least trying to). But I don't see them on the market screen. Am I missing something ?
+1 for the name though :) Title: Re: Tulpenmanie, an exchange client Post by: paraipan on September 06, 2012, 09:50:38 PM I get this error when trying to run it:
Code: Traceback (most recent call last): Title: Re: Tulpenmanie, an exchange client Post by: eja on September 06, 2012, 10:01:30 PM You probably need to install python-qt4-sql package.
Title: Re: Tulpenmanie, an exchange client Post by: paraipan on September 06, 2012, 10:11:11 PM You probably need to install python-qt4-sql package. Thanks dude, that was the issue Edit: Now i'm all set-up but after closing the app and trying to open again it gives this in the console: Code: Traceback (most recent call last): Title: Re: Tulpenmanie, an exchange client Post by: Emery on September 07, 2012, 05:59:39 PM You probably need to install python-qt4-sql package. Thanks dude, that was the issue Edit: Now i'm all set-up but after closing the app and trying to open again it gives this in the console: Code: Traceback (most recent call last): That extraneous QtSql dependency has been removed, and that precision problem is fixed. Pull from git and reinstall and that should fix it. I tried but I don't seem to get it too work completely.. I added my BTC-e api keys and on the console I can see it fetching ticker data from btc and mtgox (or at least trying to). But I don't see them on the market screen. Am I missing something ? You will have to enable the market, the exchange, and the account from the two settings dialogs and then restart the program, I'm working on having the settings change the display dynamically right now. Title: Re: Tulpenmanie, an exchange client Post by: paraipan on September 07, 2012, 06:09:30 PM You probably need to install python-qt4-sql package. Thanks dude, that was the issue Edit: Now i'm all set-up but after closing the app and trying to open again it gives this in the console: Code: Traceback (most recent call last): That extraneous QtSql dependency has been removed, and that precision problem is fixed. Pull from git and reinstall and that should fix it. ... Now we're talking, yeah :) Edit: Another issue here. I have the mtgox api key entered but what is "secret" for? I think it has something to do with it because I don't get updates and the console gives me this: Code: RROR:tulpenmanie.provider_modules.mtgox:SSL handshake failed Title: Re: Tulpenmanie, an exchange client Post by: Emery on September 08, 2012, 08:54:56 PM I have the mtgox api key entered but what is "secret" for? I think it has something to do with it because I don't get updates and the console gives me this: Code: DEBUG:tulpenmanie.provider_modules.mtgox:POSTing to https://mtgox.com/api/1/BTCUSD/ticker MtGox API authentication uses a key and secret, the key identifies you, and the secret is for signing requests. You only see the secret when you create the key/secret pair, so you'll probably need to create a new pair. As for the SSL handshake error, I would think that would only happen if MtGox's SSL certificate couldn't be verified. Title: Re: Tulpenmanie, an exchange client Post by: paraipan on September 10, 2012, 03:41:24 PM I have the mtgox api key entered but what is "secret" for? I think it has something to do with it because I don't get updates and the console gives me this: Code: DEBUG:tulpenmanie.provider_modules.mtgox:POSTing to https://mtgox.com/api/1/BTCUSD/ticker MtGox API authentication uses a key and secret, the key identifies you, and the secret is for signing requests. You only see the secret when you create the key/secret pair, so you'll probably need to create a new pair. As for the SSL handshake error, I would think that would only happen if MtGox's SSL certificate couldn't be verified. Got it, thanks, hope it works right today :) Title: Re: Tulpenmanie, an exchange client Post by: armodar on September 10, 2012, 03:47:08 PM I would REALLY like to know how to install this on windows...
Title: Re: Tulpenmanie, an exchange client Post by: Akka on September 10, 2012, 03:54:34 PM Me too. Seems really cool. But I don't get it to work in windows.
But I'm probaply just to much of a non geek. Getting P2Pool to work was the only Python thing I did so far and that did me take hours. Title: Re: Tulpenmanie, an exchange client Post by: Deafboy on September 10, 2012, 04:04:12 PM Are you going to implement some simple rules (if price higher than X, sell.. etc.) or at least possibility to create bots as plugins? Btw. dividing app to server/client part would be awesome.
My first speculation profit is going to your donation address anyway... thanks. Title: Re: Tulpenmanie, an exchange client Post by: Emery on September 11, 2012, 12:46:23 AM Are you going to implement some simple rules (if price higher than X, sell.. etc.) or at least possibility to create bots as plugins? Btw. dividing app to server/client part would be awesome. I think it'd be cool to have a little interpreter and a set of predefined variables and functions to implement stop-loss and bot logic, which could be stored as scripts. That is easier said than done but I'm working on charting for now which should any statistical analysis readily available. Title: Re: Tulpenmanie, an exchange client Post by: gweedo on September 11, 2012, 01:19:42 AM anyone try this on mac OSX 10.8?
Title: Re: Tulpenmanie, an exchange client Post by: unclescrooge on September 11, 2012, 12:16:28 PM You're the man Emery, I'm gonna try this now :)
Title: Re: Tulpenmanie, an exchange client Post by: davout on September 11, 2012, 12:43:02 PM anyone try this on mac OSX 10.8? I stopped right at sudoTitle: Re: Tulpenmanie, an exchange client Post by: HDSolar on September 11, 2012, 12:47:01 PM This is cool, keep it up and a windows deployment would be sweet.
Title: Re: Tulpenmanie, an exchange client Post by: unclescrooge on September 11, 2012, 12:50:40 PM What is the unit for refresh rate of the exchanges settings?
Also, I tried to look at the source code and did not find nothing "suspicious" (sorry Emery but I won't set secret/api access in unknown software without checking it first). But I'm not a programmer so if anyone want to cross check... :) Title: Re: Tulpenmanie, an exchange client Post by: gweedo on September 11, 2012, 01:19:05 PM anyone try this on mac OSX 10.8? I stopped right at sudothat is sad, you shouldn't need sudo to install this type of software Title: Re: Tulpenmanie, an exchange client Post by: davout on September 11, 2012, 01:30:49 PM anyone try this on mac OSX 10.8? I stopped right at sudothat is sad, you shouldn't need sudo to install this type of software Title: Re: Tulpenmanie, an exchange client Post by: bitcoinspot.nl on September 11, 2012, 01:46:35 PM so emery, are you from the netherlands? tulpenmanie sounds kinda dutch :)
Title: Re: Tulpenmanie, an exchange client Post by: armodar on September 11, 2012, 02:03:37 PM I still cant get it to work...
i set everything up, i see where the numbers should go, but it just does not fetch data for some reason Title: Re: Tulpenmanie, an exchange client Post by: unclescrooge on September 11, 2012, 03:13:43 PM I still cant get it to work... i set everything up, i see where the numbers should go, but it just does not fetch data for some reason +1 I seem to have everything set up, but no data, and bid and ask button are inactive. No debug output either :/ Title: Re: Tulpenmanie, an exchange client Post by: paraipan on September 11, 2012, 03:37:28 PM I still cant get it to work... i set everything up, i see where the numbers should go, but it just does not fetch data for some reason +1 I seem to have everything set up, but no data, and bid and ask button are inactive. No debug output either :/ Launch it from console, mine doesn't work either but the error I get is failed SSL auth with mtgox Title: Re: Tulpenmanie, an exchange client Post by: unclescrooge on September 11, 2012, 03:39:38 PM Thanks, did you set a debug mode or something when launching from the console?
I did it but the ouput is absolutely empty. Title: Re: Tulpenmanie, an exchange client Post by: paraipan on September 11, 2012, 03:57:58 PM Thanks, did you set a debug mode or something when launching from the console? I did it but the ouput is absolutely empty. Running on Ubuntu LTS here, so when I launch a python app from console I can see all it's output, no special mode needed Title: Re: Tulpenmanie, an exchange client Post by: Emery on September 13, 2012, 02:21:36 AM anyone try this on mac OSX 10.8? I stopped right at sudothat is sad, you shouldn't need sudo to install this type of software Yes sudo'ing because someone from some forums told you to is bad, I put a note in the README about installs with user permissions. Code: python setup.py install --user Code: ~/.local/bin/tulpenmanie About the no debug output, I put in a -d debug flag, -h will explain the options. I still cant get it to work... i set everything up, i see where the numbers should go, but it just does not fetch data for some reason +1 I seem to have everything set up, but no data, and bid and ask button are inactive. No debug output either :/ To compound that, MtGox specifies 10 seconds between API requests. I've set the minimum request period to 5 seconds because 10 is a little ridiculous if you are trying to do interactive stuff. So, when the program starts you have an API request for the bitcoin multiplication factor, a request for your counter currency multiplication factor, a request for your account balance, and probably a request for the ticker. That means 10 or 15 seconds before your bid/ask buttons are enabled and 20 seconds before the tickers register prices. So I would try it again and wait and see what happens. What is the unit for refresh rate of the exchanges settings? Refresh rate is in seconds, and if I were looking over the code I would start by looking at all the import statements to see which libraries and capabilities get pulled in and where.Also, I tried to look at the source code and did not find nothing "suspicious" (sorry Emery but I won't set secret/api access in unknown software without checking it first). But I'm not a programmer so if anyone want to cross check... :) so emery, are you from the netherlands? tulpenmanie sounds kinda dutch :) No, north america. Originally I thought I'd try and make a program that would multiplex exchange accounts and dwolla accounts, so the thing was going to be called dreiklene.Title: Re: Tulpenmanie, an exchange client Post by: armodar on September 13, 2012, 08:18:31 AM I am using the BTC-e exchange and no ticker/order info.
And for some reason -d does not seem to show anything...but then again I am acomplete linux noob so I could be doing something wrong. Title: Re: Tulpenmanie, an exchange client Post by: paraipan on September 13, 2012, 10:38:15 AM @Emery this looks promising dude so I'm eager to try it, but please can you tell how can I solve this SSL issue when connecting to mtgox?
Code: DEBUG:tulpenmanie.provider_modules.mtgox:POSTing to https://mtgox.com/api/1/generic/currency Title: Re: Tulpenmanie, an exchange client Post by: Emery on September 16, 2012, 05:12:29 PM @Emery this looks promising dude so I'm eager to try it, but please can you tell how can I solve this SSL issue when connecting to mtgox? Code: DEBUG:tulpenmanie.provider_modules.mtgox:POSTing to https://mtgox.com/api/1/generic/currency That is odd, first check that MtGox works in a browser and shows that SSL is verified. I would think that you are using some sort of network that hijacks web traffic like a coffe shop or a college. If that's not that it could be that somewhere on your system the chain of certificates for signing is screwed up. On my box I have this package: Code: app-misc/ca-certificates: Common CA Certificates PEM files So I would try it the MtGox site in a browser, then try and find the certificates package in your package manager and reinstall that. Title: Re: Tulpenmanie, an exchange client Post by: paraipan on September 16, 2012, 05:15:35 PM @Emery this looks promising dude so I'm eager to try it, but please can you tell how can I solve this SSL issue when connecting to mtgox? Code: DEBUG:tulpenmanie.provider_modules.mtgox:POSTing to https://mtgox.com/api/1/generic/currency That is odd, first check that MtGox works in a browser and shows that SSL is verified. I would think that you are using some sort of network that hijacks web traffic like a coffe shop or a college. If that's not that it could be that somewhere on your system the chain of certificates for signing is screwed up. On my box I have this package: Code: app-misc/ca-certificates: Common CA Certificates PEM files So I would try it the MtGox site in a browser, then try and find the certificates package in your package manager and reinstall that. Will do, thanks Title: Re: Tulpenmanie, an exchange client Post by: unclescrooge on September 24, 2012, 01:00:11 PM Ok I got it running with the new modification you did to your code.
It looks very very promising Emery, I love it already :) Title: Re: Tulpenmanie, an exchange client Post by: unclescrooge on September 27, 2012, 03:40:52 PM Hi Emery,
For some reason, while the mtgox module works fine (filled orders not cleared but that a minor bug), I've never been able to make BTC-E display anything. The API key and secret are fine, have all the right on BTC-E but nothing is displayed. Here is a sample of the output of "tulpenmanie -d": Code: $ tulpenmanie -d No errors at all. No apparent problem. If I manually go to api pages like "https://btc-e.com/api/2/btc_usd/ticker" the page load fine. Do you have any idea what's wrong? Thanks Title: Re: Tulpenmanie, an exchange client Post by: Emery on October 18, 2012, 03:18:33 PM For some reason, while the mtgox module works fine (filled orders not cleared but that a minor bug), I've never been able to make BTC-E display anything. The API key and secret are fine, have all the right on BTC-E but nothing is displayed. Sorry for the late reply, I went back through git revisions and couldn't reproduce the error. That is weird that the log would show requests but no responses. I suppose I'll move the internal logging points around bit so in the future I'll know if replies are being received but dropped internally, which seem the most plausible explanation. Title: Re: Tulpenmanie, an exchange client Post by: repentance on October 18, 2012, 10:10:31 PM LOL at it being called "Tulip Mania".
Title: Re: Tulpenmanie, an exchange client Post by: unclescrooge on October 19, 2012, 10:17:06 AM Hi Emery, thanks for the answer.
The problem was solved by an update from your Git. I'll never know what was wrong. Thanks for your awesome work anyway :) Title: Re: Tulpenmanie, an exchange client Post by: xeverse on March 09, 2013, 03:23:03 PM I've come across this project. The title is simply awesome. Is it still being developed? Title: Re: Tulpenmanie, an exchange client Post by: xeverse on April 03, 2013, 07:46:51 AM I managed to run the code on win32..
But "Invalid request method for this api" keeps bugging me. I've changed the gox api url itself to data but it must be smth else.. Who can look at the code and figure it all out? Title: Re: Tulpenmanie, an exchange client Post by: xerces8 on April 24, 2013, 03:28:35 PM Is the project closed?
https://github.com/3M3RY/tulpenmanie returns a 404 error Title: Re: Tulpenmanie, an exchange client Post by: xeverse on April 24, 2013, 05:28:57 PM Is the project closed? Hmmm.. very much so..The guy said on github he has abandoned it. Anyway welcome abroad! Title: Re: Tulpenmanie, an exchange client Post by: Snail2 on May 20, 2013, 09:29:20 AM The original project seems to be abandoned but I've found a fork here:
https://aur.archlinux.org/packages/tulpenmanie-git/ |