<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Charlotte Eli on Medium]]></title>
        <description><![CDATA[Stories by Charlotte Eli on Medium]]></description>
        <link>https://medium.com/@tchatcha?source=rss-40197bef8966------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HlNY8SBHRk22a7hESet3IA.png</url>
            <title>Stories by Charlotte Eli on Medium</title>
            <link>https://medium.com/@tchatcha?source=rss-40197bef8966------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:18:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tchatcha/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to create a robust Price Feed?]]></title>
            <link>https://medium.com/stabl-blog/how-to-create-a-robust-price-feed-3e3dbbcc6e62?source=rss-40197bef8966------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e3dbbcc6e62</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[fintech]]></category>
            <dc:creator><![CDATA[Charlotte Eli]]></dc:creator>
            <pubDate>Thu, 23 Nov 2017 14:21:24 GMT</pubDate>
            <atom:updated>2018-01-31T16:02:31.697Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qgxkgxMpudSSPDVtmEDNKw.jpeg" /></figure><p><strong><em>TLDR; </em></strong><em>This article gives the following details regarding our Price Feed implementation:</em></p><ul><li><em>4 exchanges, 4 prices? How to explain and overcome those differences</em></li><li><em>Aggregation strategy, and smoothing of Kraken source (due to its specificities)</em></li><li><em>Characteristics of our Price Feed</em></li><li><em>Pricefeed As A Service (PaaS)</em></li></ul><p><em>VariabL is the first Derivatives Trading Platform built on Ethereum. With VariabL, you can open leveraged </em><a href="https://blog.variabl.io/variabl-eth-usd-derivatives-and-stable-tokens-529839a91ba4"><em>positions</em></a><em> on the ETH/USD pair. VariabL originates from ConsenSys, one of the largest global blockchain specialists worldwide.</em></p><p>In our current product, a contract can be closed at two different points in time and the quantity of ETH held on deposit will be redistributed to both parties according to the price evolution:</p><ul><li>At the expiration date.</li><li>Before the expiration date, if the price goes too low or too high to protect both parties from insolvency.</li></ul><p>Finding the <strong>right price</strong> that describes the current situation across the main ETH/USD exchanges is therefore <strong>crucial</strong> to our product. As the <a href="https://github.com/ethereum/wiki/wiki/White-Paper#financial-derivatives-and-stable-value-currencies">Ethereum white paper </a>correctly identifies, the biggest challenge for financial derivatives is the elaboration of a “trusted source” on the blockchain for the ETH/USD price. This refers mostly to the challenge of building a trusted or decentralized oracle but the fairness or accuracy of this oracle source is an essential aspect.</p><p>As we aim to create fair products and help our users to have some intuition on how our price feed evolves in relation to the different individual prices on the exchanges, our price feed needs to be a descriptive statistic of all major exchanges but not too sensitive to recent volatilities on one particular exchange.</p><p><strong>Four Platforms, Four Prices?</strong></p><p>The graph below shows Ether prices for September 19th, 2017, starting at around 1pm and ending at around 1pm the next day. There is approximately a point every 300ms, resulting from asynchronous requests on web APIs of Gdax, Bitfinex, Gemini and Kraken.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fTzxAcL0exDafPhX." /></figure><p>There are differences in prices among platforms that can possibly be explained (not exclusively and/or exhaustively) by:</p><ul><li><strong>Specific characteristics of the exchange</strong>: users profile and localisation, risk premium that may reflect trust in the exchange and its solvability…</li><li><strong>Lack of arbitrage trader</strong>: Ether should not cost a different price across each exchange. Arbitrage simply brings the exchanges together to an average price. As ether’s market grows, the gap between exchanges will narrow, as the rate at which people arbitrage increases.</li><li><strong>Lack of liquidity</strong>: in one of the platform (also a consequence of lack of arbitrage trader).</li></ul><p>In addition to price differences among platform, we noticed a difference in behaviour between Kraken and the other three platforms. We noticed that Kraken exhibits 2 to 6 times higher volatility levels than its peers. This is not obvious on the graph above but can be more apparent from time to time for example on August 4th.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oeaIOQTVKFCxni6r." /><figcaption><em>Gdax, Bitfinex, Gemini and Kraken’s Prices on 4th August</em></figcaption></figure><p>We explain this difference by the existence of <strong>dark pools</strong> on Kraken. The Kraken dark pool is an order book not visible to the rest of the market, in which each trader only knows their own orders.</p><p><strong>How to Aggregate Them?</strong></p><p>Our objective was to build a <strong>robust price feed</strong> but not too sophisticated. Indeed, our price feed needs to be easily understandable to be trusted. In this regard, we believe that a highly sophisticated price feed wouldn’t add any value to our product.</p><p>We wanted a price feed that :</p><ul><li>Is not too sensitive to <strong>outliers</strong></li><li>Handles <strong>Kraken’s specifics</strong></li><li>Takes into account each platform’ <strong>volume </strong>and thus the adequate weight that should be given to its current price</li></ul><p>It requires three steps:</p><ol><li>We spot <strong>outlier</strong> prices using typical statistical tools and don’t take them into account when computing our price feed. Moreover, if one platform stops responding, we replace its price by the last price available but only if it is not older than one minute. Otherwise, we exclude the platform from our computation until it comes live again. This aims at <strong>avoiding artificial spike or drop in our price feed</strong> if one platform stops responding temporarily thus affecting the final price feed computation.</li><li>We smooth Kraken’s price by using a <strong>moving-average filter </strong>if necessary. The moving average filter is a widely used indicator that helps smooth out prices by filtering out the “noise” from random price fluctuations. We then use Kraken’s smoothed price in our calculation.</li></ol><p><strong><em>Illustration of a moving average smoothing on Kraken</em></strong></p><p>Below is an illustration of a smoothing on Kraken on August 4th using a moving average of 20 minutes to obtain a price at current time. It is not an optimal time length and not the one we are using but it was chosen for illustration purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9rreHbGCqHDxR9wt." /><figcaption><em>20 min Moving Average Filter Kraken’s</em></figcaption></figure><p>We choose our time length so that the volatility of Kraken’s Moving Average is in line with the other platforms’ volatility. Currently, we use a 10 seconds moving average but this is subject to changes. After applying a 10 seconds moving-average to Kraken’s price, we obtain the following volatility levels as of September 20th:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*UYK6TaEyIOoJs5Zm." /></figure><p>We are conscious of the fact that this filtering technique has some limitations. It might not always be relevant especially if there is a change in Kraken’s behavior and thus should be closely monitored and adjusted and even cancelled if necessary.</p><p>3) Finally, we use a <strong>volume-weighted average price,</strong> meaning we average the price of each platform weighted by the volume traded on the platform over a particular time horizon (usually 24 hours). For example, given the current volumes (as of September 20th), the weight would be :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*FTGxifFo_4zoHZAi." /></figure><p><strong>VariabL Price Feed in a nutshell</strong></p><p>All in all, we obtain a price feed that we believe is robust, parsimonious and representative for the main ETH/USD exchanges.</p><p>It has the following properties:</p><ul><li>It doesn’t take into account outliers</li><li>It is not sensitive to any platform’s momentary blackout</li><li>It handles Kraken’s specifics</li><li>It takes into account platforms’ volume, thus the pertinence of the price provided</li><li>It has volatility levels in line with other platforms’ volatilities. As of September 20th :</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/0*jRbCvu_9rO7f_yky." /></figure><p>It is the purple line displayed on the graph below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YVFhyUYuRXrgBded." /><figcaption><em>VariabL Price Feed</em></figcaption></figure><p>We plan to set our Pricefeed As A Service (PaaS) and potentially open source it to other projects and developers. In the future, dApps could use our API as a reference and serve as an oracle.</p><p>We are looking forward to making it functional and opening it to the community. Meanwhile, let us know what you think of our Price Feed model and feel free to <a href="https://bit.ly/VariabLSlackJanFeb">contact us on slack</a> if you want to discuss more.</p><blockquote>Register on <a href="https://variabl.io/exchange">variabl.io/exchange </a>and check it out yourself!</blockquote><p><em>Subscribe to our</em><a href="http://bit.ly/VariabLNewsletter"><em> newsletter</em></a><em>, follow us on our social medias (</em><a href="http://bit.ly/VariablTwitter"><em>Twitter</em></a><em>, </em><a href="http://bit.ly/VariablFacebook"><em>Facebook</em></a><em>) and do not hesitate to </em><a href="/service/mailto:contact@variabl.io"><em>contact us directly</em></a><em> should you require any further information.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e3dbbcc6e62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/stabl-blog/how-to-create-a-robust-price-feed-3e3dbbcc6e62">How to create a robust Price Feed?</a> was originally published in <a href="https://medium.com/stabl-blog">VariabL Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>