166
General Discussion / Re: Subsidizing Market Liquidity
« on: April 08, 2016, 02:26:24 am »I see. But that's not something that have to be included in the basic snapshot data. It's an intermediate result while calculating with the formula.For UIAs just ignore the feed_price field. It doesn't matter. Final scores depend on the formula.
The formula depends on distance from the market price. That can be the feed price in the case of BitAssets. But for UIAs, it would need to be something like the midpoint of the best bid and best ask. See what I mean?
The distance calculation result doesn't need to be in the snapshot data...but the price that will be used later for that calculation needs to be. For BitAssets, that price comes from the feed, which you have a field for. For UIAs, it needs to be something else, probably midpoint of best bid and best ask. You don't have to calculate that midpoint, but you'll have to include the best bid and best ask so the midpoint can be calculated later. See what I mean now?
Quote from: tboneYes.A snapshot is taken every time when there is a change in the market. The links I provided are live & real data pushing.
* live BTS/bitEUR market snapshots: https://data.sparkfun.com/bitshares_bts_eur_market_snapshot
* live BTS/bitUSD median feed price history: https://data.sparkfun.com/bitshares_usd_price
Oh I see. So that means that in an active market, the snapshot may be happening as often as every block?
Ok, that's great.