Pages:
Author

Topic: Tulpenmanie, an exchange client (Read 8391 times)

legendary
Activity: 1512
Merit: 1000
May 20, 2013, 04:29:20 AM
#43
The original project seems to be abandoned but I've found a fork here:

https://aur.archlinux.org/packages/tulpenmanie-git/
full member
Activity: 124
Merit: 100
April 24, 2013, 12:28:57 PM
#42
Is the project closed?
Hmmm.. very much so..
The guy said on github he has abandoned it.
Anyway welcome abroad!
newbie
Activity: 28
Merit: 0
April 24, 2013, 10:28:35 AM
#41
Is the project closed?

https://github.com/3M3RY/tulpenmanie returns a 404 error
full member
Activity: 124
Merit: 100
April 03, 2013, 02:46:51 AM
#40
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?
full member
Activity: 124
Merit: 100
March 09, 2013, 10:23:03 AM
#39

I've come across this project.

The title is simply awesome.

Is it still being developed?
hero member
Activity: 868
Merit: 1000
October 19, 2012, 05:17:06 AM
#38
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 Smiley
hero member
Activity: 868
Merit: 1000
October 18, 2012, 05:10:31 PM
#37
LOL at it being called "Tulip Mania".
newbie
Activity: 12
Merit: 0
October 18, 2012, 10:18:33 AM
#36
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.
hero member
Activity: 868
Merit: 1000
September 27, 2012, 10:40:52 AM
#35
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
DEBUG:tulpenmanie.model.base:loading commodities
DEBUG:tulpenmanie.model.base:loading markets
DEBUG:tulpenmanie.exchange:loading Bitstamp settings
DEBUG:tulpenmanie.exchange:loading Bitstamp markets
DEBUG:tulpenmanie.exchange:loading BTC-e settings
DEBUG:tulpenmanie.exchange:loading BTC-e markets
DEBUG:tulpenmanie.exchange:loading CampBX settings
DEBUG:tulpenmanie.exchange:loading CampBX markets
DEBUG:tulpenmanie.exchange:loading MtGox settings
DEBUG:tulpenmanie.exchange:loading MtGox markets
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/tapi
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/tapi
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/tapi
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/tapi
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/ltc_btc/ticker
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/btc_usd/ticker
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/generic/currency
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/generic/currency
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/generic/private/orders
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/generic/private/orders
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/btc_usd/ticker
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/generic/currency
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/generic/currency
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/ltc_btc/ticker
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/generic/private/orders
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/generic/private/orders
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/generic/currency
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/generic/currency
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/btc_usd/ticker
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/generic/private/info
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/generic/private/info
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/ltc_btc/ticker
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/generic/private/info
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/generic/private/info
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/BTCEUR/ticker
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/BTCEUR/ticker
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/btc_usd/ticker
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/BTCEUR/ticker
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/BTCEUR/ticker
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/ltc_btc/ticker
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/tapi
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/BTCUSD/ticker
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/BTCUSD/ticker
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/tapi
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/BTCUSD/ticker
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/BTCUSD/ticker
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/btc_usd/ticker
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/BTCEUR/ticker
INFO:tulpenmanie.network:received reply to https://mtgox.com/api/1/BTCEUR/ticker
DEBUG:tulpenmanie.exchange_modules.btc-e:POST to https://btc-e.com/api/2/ltc_btc/ticker
INFO:tulpenmanie.network:POST to https://mtgox.com/api/1/BTCEUR/ticker

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
hero member
Activity: 868
Merit: 1000
September 24, 2012, 08:00:11 AM
#34
Ok I got it running with the new modification you did to your code.

It looks very very promising Emery, I love it already Smiley
legendary
Activity: 924
Merit: 1004
Firstbits: 1pirata
September 16, 2012, 12:15:35 PM
#33
@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
ERROR:tulpenmanie.provider_modules.mtgox:SSL handshake failed
DEBUG:tulpenmanie.provider_modules.mtgox:POSTing to https://mtgox.com/api/1/generic/private/info
ERROR:tulpenmanie.provider_modules.mtgox:SSL handshake failed

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
which contains known certificates for signing SSL certificates, of which contains the Verisign certificate that signs the MtGox certificate.

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
newbie
Activity: 12
Merit: 0
September 16, 2012, 12:12:29 PM
#32
@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
ERROR:tulpenmanie.provider_modules.mtgox:SSL handshake failed
DEBUG:tulpenmanie.provider_modules.mtgox:POSTing to https://mtgox.com/api/1/generic/private/info
ERROR:tulpenmanie.provider_modules.mtgox:SSL handshake failed

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
which contains known certificates for signing SSL certificates, of which contains the Verisign certificate that signs the MtGox certificate.

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.
legendary
Activity: 924
Merit: 1004
Firstbits: 1pirata
September 13, 2012, 05:38:15 AM
#31
@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
ERROR:tulpenmanie.provider_modules.mtgox:SSL handshake failed
DEBUG:tulpenmanie.provider_modules.mtgox:POSTing to https://mtgox.com/api/1/generic/private/info
ERROR:tulpenmanie.provider_modules.mtgox:SSL handshake failed
newbie
Activity: 25
Merit: 0
September 13, 2012, 03:18:31 AM
#30
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.
newbie
Activity: 12
Merit: 0
September 12, 2012, 09:21:36 PM
#29
anyone try this on mac OSX 10.8?
I stopped right at sudo

that is sad, you shouldn't need sudo to install this type of software
Could probably run it without sudo'ing but I'm a complete noob at python

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
will install to ~/.local . That's how I install it actually, but you'll need some $PATH foolery or do a
Code:
~/.local/bin/tulpenmanie
to run the thing.

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 :/
I think I know what is going on, the MtGox API takes amounts and prices in integers, so a 1.00000000 bitcoin order amount is requested as 100000000. This is to prevent rounding errors because of the incompatibility of decimal division and binary hardware. So, rather than hardcode these multiplication factors for each market pair, they are requested from MtGox when the program starts. This way a change on MtGox's end doesn't make your ask prices ten times smaller than you thought.

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?

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... Smiley
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.

so emery, are you from the netherlands? tulpenmanie sounds kinda dutch Smiley
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.
legendary
Activity: 924
Merit: 1004
Firstbits: 1pirata
September 11, 2012, 10:57:58 AM
#28
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
hero member
Activity: 868
Merit: 1000
September 11, 2012, 10:39:38 AM
#27
Thanks, did you set a debug mode or something when launching from the console?

I did it but the ouput is absolutely empty.
legendary
Activity: 924
Merit: 1004
Firstbits: 1pirata
September 11, 2012, 10:37:28 AM
#26
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
hero member
Activity: 868
Merit: 1000
September 11, 2012, 10:13:43 AM
#25
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 :/
newbie
Activity: 25
Merit: 0
September 11, 2012, 09:03:37 AM
#24
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
Pages:
Jump to: