Bitcoin Forum
November 05, 2024, 06:12:47 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 »  All
  Print  
Author Topic: Tulpenmanie, an exchange client  (Read 8351 times)
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
September 11, 2012, 01:19:05 PM
 #21

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
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1008


1davout


View Profile WWW
September 11, 2012, 01:30:49 PM
 #22

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

bitcoinspot.nl
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile WWW
September 11, 2012, 01:46:35 PM
 #23

so emery, are you from the netherlands? tulpenmanie sounds kinda dutch Smiley

- bitcoinspot.nl - Alles over bitcoin! -
armodar
Newbie
*
Offline Offline

Activity: 25
Merit: 0



View Profile
September 11, 2012, 02:03:37 PM
 #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
unclescrooge
aka Raphy
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1000


View Profile
September 11, 2012, 03:13:43 PM
 #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 :/
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
September 11, 2012, 03:37:28 PM
 #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

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
unclescrooge
aka Raphy
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1000


View Profile
September 11, 2012, 03:39:38 PM
 #27

Thanks, did you set a debug mode or something when launching from the console?

I did it but the ouput is absolutely empty.
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
September 11, 2012, 03:57:58 PM
 #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

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
Emery (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0



View Profile
September 13, 2012, 02:21:36 AM
 #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.
armodar
Newbie
*
Offline Offline

Activity: 25
Merit: 0



View Profile
September 13, 2012, 08: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.
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
September 13, 2012, 10: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

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
Emery (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0



View Profile
September 16, 2012, 05: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.
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
September 16, 2012, 05: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

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
unclescrooge
aka Raphy
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1000


View Profile
September 24, 2012, 01:00:11 PM
 #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
unclescrooge
aka Raphy
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1000


View Profile
September 27, 2012, 03:40:52 PM
 #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
Emery (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0



View Profile
October 18, 2012, 03:18:33 PM
 #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.
repentance
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1000


View Profile
October 18, 2012, 10:10:31 PM
 #37

LOL at it being called "Tulip Mania".

All I can say is that this is Bitcoin. I don't believe it until I see six confirmations.
unclescrooge
aka Raphy
Hero Member
*****
Offline Offline

Activity: 868
Merit: 1000


View Profile
October 19, 2012, 10: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
xeverse
Full Member
***
Offline Offline

Activity: 124
Merit: 100



View Profile
March 09, 2013, 03:23:03 PM
 #39


I've come across this project.

The title is simply awesome.

Is it still being developed?
xeverse
Full Member
***
Offline Offline

Activity: 124
Merit: 100



View Profile
April 03, 2013, 07:46:51 AM
Last edit: April 03, 2013, 05:10:22 PM by Xenius
 #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?
Pages: « 1 [2] 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!