Bitcoin Forum
September 23, 2024, 09:08:08 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Trading Discussion / Re: Tulpenmanie, an exchange client 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.
2  Economy / Trading Discussion / Re: Tulpenmanie, an exchange client 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
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.
3  Economy / Trading Discussion / Re: Tulpenmanie, an exchange client on: September 13, 2012, 02:21:36 AM
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.
4  Economy / Trading Discussion / Re: Tulpenmanie, an exchange client 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.
5  Economy / Trading Discussion / Re: Tulpenmanie, an exchange client 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
ERROR:tulpenmanie.provider_modules.mtgox:SSL handshake failed

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.
6  Economy / Trading Discussion / Re: Tulpenmanie, an exchange client 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):
 ...
ValueError: invalid literal for int() with base 10: ''


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.
7  Economy / Trading Discussion / Re: Tulpenmanie, an exchange client 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.
8  Economy / Trading Discussion / Tulpenmanie, an exchange client 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

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:
  • Bitstamp
  • BTC-e
  • CambBX
  • MtGox
I'll be adding more, queued by volume.

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.
9  Economy / Service Discussion / Re: MtGox yubikey policy on: August 09, 2012, 12:10:36 AM
Quote
Mt. Gox shall not replace any key lost by a Member.
So what happens if you lose one?

You pay them for another one, I guess.  This to me reads like "if you lose it, we're not paying to replace it".

If only it were that simple. You see they replaced mine at no cost to me, then said they couldn't send one at all. One way or another, they did not follow their terms of services, but instead made stuff up as they went along.
Quote
Thank you for contacting us. Please be aware that in cases of a lost Yubikey, we can only resend a new Yubikey to the same address as before due to security reasons. We will request our management group to unlink your Yubikey from your account. Unfortunately, we can not issue a refund since you did not pay for the replacement Yubikey which was complimentary from us.
First they told me they'd send it to a new address, it gets refused at my old address, then they wont send it back again to the old address.

My point is it's really not safe to assume MtGox's inconsistencies in services and policies will work out in your favor.
10  Economy / Service Discussion / MtGox yubikey policy on: August 08, 2012, 11:51:46 PM
What does MtGox's terms of service say about yubikeys?
Quote
Mt. Gox shall not replace any key lost by a Member.
So what happens if you lose one?
Quote
We also reserve the right to cancel unconfirmed Accounts or Accounts that have been inactive for a period of 6 months or more, or to modify or discontinue our Site or Platform. Members agree that Mt. Gox will not be liable to them or to any third party for termination of their Account or access to the Site.

The fact is MtGox has no clear policy on accounts with yubikeys. The terms of service do not seem to clarify the meaning of "inactive", "cancel account", or "termination of account". If you lose your yubikey, MtGox might be nice and violate their own terms of service, or they might repeat "We apologize for any inconvenience caused" until your six months are up.

If you do have an account with a yubikey take your money someplace with competitive service policies in place as fast a possible, lest you get robbed like me.
11  Other / Beginners & Help / Re: Hyperdeflation, own half the world by headstart - don't you care at all? on: March 20, 2012, 02:21:09 PM
Early adopters are making a risky investment and doing work that if successful, later participants will benefit from at little or no cost to themselves. Keep in mind this is all voluntary, if the central banks of prevailing currencies want alter the money supply, participants don't have much say or much of an exit. With bitcoin the inflation is known to participants from the offset, and no one has to use bitcoin.
12  Other / Beginners & Help / Re: Whitelist Requests (Want out of here?) on: February 12, 2012, 10:55:13 PM
I want out of here, please.

https://github.com/3M3RY/python-mtgox

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!