# What happens if bitcoinavearage service goes down?

**URL:** <https://bisq.community/t/what-happens-if-bitcoinavearage-service-goes-down/284>\
**Category:** Uncategorized\
**Created:** [July 10, 2016, 2:01pm UTC](https://bisq.community/t/what-happens-if-bitcoinavearage-service-goes-down/284 "2016-07-10T14:01:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leo](https://bisq.community/letter_avatar/leo/32/6_22734026db12803ebb3e059622ac3534.png) [@leo](https://bisq.community/u/leo)\
**Post date:** [July 10, 2016, 2:01pm UTC](https://bisq.community/t/what-happens-if-bitcoinavearage-service-goes-down/284/1 "2016-07-10T14:01:10Z")

</div>

Hi,

I see bitsquare use bitcoinavearage service api to provide fiat market price. What happens if this service goes down temporarily or permanent?  
How bitsquare deal with it?

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [July 11, 2016, 2:24pm UTC](https://bisq.community/t/what-happens-if-bitcoinavearage-service-goes-down/284/2 "2016-07-11T14:24:59Z")

</div>

Yes that is an open issue, though it would only affect the offers using % based price.  
We should add several price feed providers. But then the calculation of the price used get more tricky (there might be somr of those offline…). So its not that trivial…

---

<div class="post-metadata">

**Author:** ![jorijnsmit](https://bisq.community/user_avatar/bisq.community/jorijnsmit/32/127_2.png) [@jorijnsmit](https://bisq.community/u/jorijnsmit)\
**Post date:** [July 21, 2016, 11:15am UTC](https://bisq.community/t/what-happens-if-bitcoinavearage-service-goes-down/284/3 "2016-07-21T11:15:19Z")

</div>

- TradeBlock provides the [XBX Bitcoin Index](https://tradeblock.com/markets/index).
- [BitPay’s BBB](https://bitpay.com/bitcoin-exchange-rates#bbb) ([API](https://bitpay.com/api/rates)).
- …?

BitSquare could calculate an average of those averages. When one or two of these services go offline it could then still maintain a workable and reliable number.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [July 21, 2016, 12:34pm UTC](https://bisq.community/t/what-happens-if-bitcoinavearage-service-goes-down/284/4 "2016-07-21T12:34:40Z")

</div>

Yes something like that is planned. Though the complexity is that both users need to have the similar view (within a min. tolerance range as it can never be 100% synced in a P2P system). So if user A gets 3 providers and makes its average and user B has only connection to 2 providers then you get a different result. But the probability that the provider is not reachable to all users is high and therefore that problem should be not too critical to solve.
