Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base currency configurable - feature request #17

Open
SmartLayer opened this issue Jun 30, 2013 · 9 comments
Open

base currency configurable - feature request #17

SmartLayer opened this issue Jun 30, 2013 · 9 comments

Comments

@SmartLayer
Copy link

I noticed in your program everything has to be converted to USD.

def convert_to_usd(self)

that you hard wired the base currency to function name.

It is possible to avoid using the concept of base currency at all. This is how to achieve it:

  1. When displaying price difference, cross reference prices in both ccurrency;
  2. When measuring profit, measure it directly using bitcoin.

e.g. output can be:

There is 1BTC profit to be made!
Sell 10 BTC on Intersango @ 110EUR (worth 8800CNY) and buy 11BTC on MtGox @800CNY (worth 100EUR)

In the above example, since USD is not involved, it is not used at all. USD is not necessarily involved in the trade, but bitcoin must, thus profit is better measured in BTC than in USD.

@maxme
Copy link
Owner

maxme commented Jul 4, 2013

You are right USD is not necessarily involved, it was just easier to write it like that (call me lazy).
I'm really busy these days, I keep the issue open.

@ghost
Copy link

ghost commented Oct 21, 2013

Hey Max, thanks for writing this bot. The code's clean and easy to read, though a little light on documentation for my tastes. I went ahead and sent you $5 in bitcoin as a token of appreciation. Get yourself some coffee or a pint or something. :-)

@maxme
Copy link
Owner

maxme commented Oct 21, 2013

Hey thank you @ryepdx 👍 - first time an issue reply brings me money ;) - BTW, you're right, documentation and testing are seriously lacking.

@ghost
Copy link

ghost commented Oct 27, 2013

I'm working on both this issue and on improving the documentation and testing in my fork. I'm also doing a major overhaul of the whole thing to allow for multi-market trade chains that leave you with more of the currency you began with. I'm particularly interested in this because it'll allow users to take advantage of inter-crypto arbitrage opportunities.

That said, is there any reason you're passing weighted_buyprice and weighted_sellprice around everywhere? I see that you're logging it to different places, but they don't appear to be doing anything beyond that.

@roryj78
Copy link

roryj78 commented Nov 24, 2013

Hi - I'm new to github and new to python (but hopefully enough experience of other languages to get on fairly quickly). I'm in the UK, so agree the USD bias is a bit strong. After a few hours have got all your code up and running, and added MtGox GBP - should I add this to the repository? would anyone be interested?

@JonathanReeve
Copy link

Please do add MtGox GBP if you get a chance.

On Sun, Nov 24, 2013 at 8:01 AM, roryj78 [email protected] wrote:

Hi - I'm new to github and new to python (but hopefully enough experience
of other languages to get on fairly quickly). I'm in the UK, so agree the
USD bias is a bit strong. After a few hours have got all your code up and
running, and added MtGox GBP - should I add this to the repository? would
anyone be interested?


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-29154867
.

@ghost
Copy link

ghost commented Nov 24, 2013

Roryj78, you should probably create a fork of this project, push your changes to the fork, and the issue a pull request for your changes. That'll give us a chance to review your code.

@roryj78
Copy link

roryj78 commented Nov 24, 2013

I will give it a go

On 24 November 2013 18:38, Ryan [email protected] wrote:

Roryj78, you should probably create a fork of this project, push your
changes to the fork, and the issue a pull request for your changes. That'll
give us a chance to review your code.


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-29162307
.

@roryj78
Copy link

roryj78 commented Nov 24, 2013

I think I have managed to create a fork (
github.com/roryj78/bitcoin-arbitrage) and issed a pull request... Let me
know if i've done it correctly!

I've also been looking at CampBX feed - but it comes back as "order book
expired". Is this because there isn't a date in the returned data, or
because we are parsing the data incorrectly. It pulls data from:
http://campbx.com/api/xdepth.php
which appears to be correctly formatted and up to date...?

On 24 November 2013 18:45, Rory Johnston [email protected] wrote:

I will give it a go

On 24 November 2013 18:38, Ryan [email protected] wrote:

Roryj78, you should probably create a fork of this project, push your
changes to the fork, and the issue a pull request for your changes. That'll
give us a chance to review your code.


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-29162307
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants