BitShares Forum

Main => Technical Support => Topic started by: Shentist on October 29, 2015, 06:29:29 am

Title: BTS 2.0 USD Feedprice
Post by: Shentist on October 29, 2015, 06:29:29 am
we is the feedprice 245 US when in BTC the price is 302 US on coinmarketcap?? Are all the witnesses providing wrong feedprices or did i miss here something?
Title: Re: BTS 2.0 USD Feedprice
Post by: puppies on October 29, 2015, 07:11:08 am
I think we are all currently running xerocs script.  I am not sure what the reason for the discrepancy is.  It might be calculating USD BTC differently than cmc.

edit.  thats not it.  bts btc price also seems low.

Maybe that is it.  I need to sleep.  Goodnight.
Title: Re: BTS 2.0 USD Feedprice
Post by: xeroc on October 29, 2015, 07:52:19 am
The reason for this could be that my script takes the median of all enabled exchanges independent of the actual volume. and the reason for this is that the volume can be easily manipulated.

I could add a trigger and let the witness decide whether to use the median or the weighted price
Title: Re: BTS 2.0 USD Feedprice
Post by: emski on October 29, 2015, 07:58:57 am
The reason for this could be that my script takes the median of all enabled exchanges independent of the actual volume. and the reason for this is that the volume can be easily manipulated.

I could add a trigger and let the witness decide whether to use the median or the weighted price

Volume should always be included into calculations.
Title: Re: BTS 2.0 USD Feedprice
Post by: xeroc on October 29, 2015, 09:35:14 am
here we go:
https://github.com/xeroc/python-graphenelib/commit/bd3b095e56553f50226bf9b255646ab25ef2a9b3
Title: Re: BTS 2.0 USD Feedprice
Post by: cube on October 29, 2015, 10:13:34 am
The reason for this could be that my script takes the median of all enabled exchanges independent of the actual volume. and the reason for this is that the volume can be easily manipulated.

I could add a trigger and let the witness decide whether to use the median or the weighted price

Volume should always be included into calculations.

I agree.  We should have a strict rule for a minimum volume to be considered valid or not.  Discard those sources with low volumes or we end up with very distorted prices.
Title: Re: BTS 2.0 USD Feedprice
Post by: xeroc on October 29, 2015, 10:43:53 am
The reason for this could be that my script takes the median of all enabled exchanges independent of the actual volume. and the reason for this is that the volume can be easily manipulated.

I could add a trigger and let the witness decide whether to use the median or the weighted price

Volume should always be included into calculations.

I agree.  We should have a strict rule for a minimum volume to be considered valid or not.  Discard those sources with low volumes or we end up with very distorted prices.
If you weight them by volume you don't need to discard them .. :)