manu354 / cryptocurrency-arbitrage

A cryptocurrency arbitrage opportunity calculator. Over 800 currencies and 50 markets.
GNU General Public License v3.0
1.19k stars 336 forks source link

BTC is currently not being displayed in results since it is always the neutral pair #3

Open manu354 opened 7 years ago

manu354 commented 7 years ago

Not sure what the best way to fix this is,

All cryptocurrency prices are converted to BTC - even BTC. Which means the price of 1BTC is always 1. Because of this you can't see any arbitrage opportunities for BTC.

Possible solutions;

  1. Convert every single cryptocurrency into the price of a fiat - most likely USD.
  2. only convert BTC to USD for every exchange.

Basically do we wantl prices to be in USD or in BTC?

kroitor commented 7 years ago

You probably want an average weighted price for each pair (which can be calculated across all exchanges in all currencies independently) and to find standard deviations from that. If you rate pairs in dollars, you won't be able to do arbitrage within USD.

lukwinski commented 7 years ago

I think I don't get the problem. How about treating usd as it was cryptocurrency?

Primly commented 7 years ago

would the solution be to peg BTC to USD and everything else to BTC?

manu354 commented 7 years ago

@Primly I think that's what I will most likely do. Adding to roadmap v1.5.1