<?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 Syve AI on Medium]]></title>
        <description><![CDATA[Stories by Syve AI on Medium]]></description>
        <link>https://medium.com/@syve_ai?source=rss-d77e8fb57165------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_F8s4INIP4J1Dj3yAlBeRQ.jpeg</url>
            <title>Stories by Syve AI on Medium</title>
            <link>https://medium.com/@syve_ai?source=rss-d77e8fb57165------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:48:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@syve_ai/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[API Update: Historical OHLC Crypto Price Data Endpoint]]></title>
            <link>https://medium.com/@syve_ai/api-update-historical-ohlc-crypto-price-data-endpoint-b27db4857b01?source=rss-d77e8fb57165------2</link>
            <guid isPermaLink="false">https://medium.com/p/b27db4857b01</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Syve AI]]></dc:creator>
            <pubDate>Wed, 29 Nov 2023 13:39:46 GMT</pubDate>
            <atom:updated>2023-11-29T13:39:46.660Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdK2N_61jYw4JGjNTWnHWg.png" /><figcaption>Top: price_token_usd_robust_tick_1 Bottom: price_token_usd_robust_total_24h</figcaption></figure><p>In the last week our focus has been exclusively on improving the quality and user experience of our price data endpoint.</p><p>The aim was to address key issues and/or feedback that was given to us by users.</p><p>Key Issues Addressed:</p><ol><li><strong>Comparisons to other providers. </strong>Before this update our price data used the TradingView method of calculating OHLC candles. Given user feedback, we have now also extended our API to be able to return OHLC data similar to alternatives like Defined and DEXTools.</li><li><strong>Limited to WETH pools</strong>. It’s rare, but some tokens (especially near launch) can only be traded against a stable coin (e.g. USDT, USDC). Up until now our price data was only tracking WETH pools. The problem: no data was available for tokens that only traded against stable coins. One would have to wait for a WETH pool to be created until price data was available.</li><li><strong>Low volume micro cap tokens</strong>. To deal with outliers our OHLC endpoint offers the ability to calculate candles over volume weighted average price. In most cases this works fine. But it’s not robust in very low volume environments. If only one or two small trades happen in a period, there was a non negligible chance for those trades to be outliers, such that averaging over the period did not help.</li></ol><p>To address the above issues we made the following updates:</p><ul><li>Added new price type <strong>price_token_usd_robust_tick_1</strong></li><li>Added USDT and USDC pools</li><li>Added <strong>open_method</strong> query parameter</li></ul><p>Other updates:</p><ul><li>Maximum number of records per request</li><li>Added sorting</li></ul><h3>Added new price type</h3><p>The way our OHLC endpoint works is that you can select which price type to use when creating aggregating the underlying data into OHLC candles.</p><p>Each price type corresponds to a different method of calculating the price of a token. The table below (taken from <a href="https://syve.readme.io/reference/price_historical_ohlc">https://syve.readme.io/reference/price_historical_ohlc</a>) shows the available price types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*v7kI3PRnHSs1fYiMFA6x1Q.png" /></figure><p>The price type we added with the latest update is <strong>price_token_usd_robust_tick_1</strong>.</p><p>Instead of calculating an average across trades (like the other price types), we let <strong>price_token_usd_robust_tick_1 </strong>equal to <strong>price_token_usd_tick_1</strong>, but with extreme outliers removed.</p><p>Note: <strong>price_token_usd_tick_1 </strong>which we refer to as the “tick” price, is the the exact price at which a token was swapped.</p><p>Our current method of removing outliers is to discard trades with price larger than 2x the trailing 10 period volume weighted average.</p><p>This is approach is deliberately conservative. We have noticed that alternatives (like DEXTools) have a much more aggressive anomaly filter. In the future <strong>we intend on letting this threshold be determined by users</strong> themselves (by adding it as a query parameter).</p><p>The figure at the top of this article shows the price of $PEPE (address: 0x6982508145454ce325ddbe47a25d4ec3d2311933) on Uniswap V2 pool (address: 0xa43fe16908251ee70ef74718545e4fe6c5ccec9f).</p><p>The top chart uses the price_token_usd_robust_tick_1 price type, whereas the bottom chart uses price_token_usd_robust_total_24h.</p><p>NOTE: The charts were taken from this dashboard here: <a href="https://api.syve.ai/dashboards/price_downloader/">https://api.syve.ai/dashboards/price_downloader/</a>. You can use this dashboard to view and download the price of different tokens. You can also use it to try out different query parameters of our OHLC endpoint.</p><p>Benefits of price_token_usd_robust_tick_1:</p><ul><li><strong>More responsive</strong>. Past price observations have no effect on the latest price. This makes makes it a lot more responsive.</li><li><strong>More dense</strong>. The method of calculating a volume weighted average price required a minimum amount of trading volume to occur in a given period. For micro-cap tokens it’s not uncommon for there to be a lot of periods of very low volume (below our threshold). This resulted in an inability to calculate price over these periods. No such minimum volume threshold is imposed on price_token_usd_robust_tick_1.</li></ul><h3>Added USDT and USDC pools</h3><p>Tokens that are initially launched in a USDT or USDC pool are tracked earlier.</p><p>We now also track more pools. In cases where a token is traded on a WETH pool as well as a stable coin pool, you can return a denser OHLC price series, by virtue of being able to calculate OHLC data over more pools.</p><p>Note: The Syve API OHLC endpoint enables you to combine trades from multiple pools when calculating OHLC candles using pool_address=all as a query parameter.</p><h3>Added open_method query parameter</h3><p>Before this update we let the open price be based on the first trade that occurred within a period. However, we noticed that alternative APIs like Defined and DEXTools used a different method. In particular, they let the open price equal to the previous period close price.</p><p>To address the feedback we received of users wanting our price data to look more similar to alternatives, we have now also added a <strong>open_method</strong> query parameter to our OHLC endpoint.</p><p>There are two options. You can let <strong>open_method=prev_close</strong> which will let the current period open price be equal to the previous close (like Defined and DEXTools).</p><p>The other option is to use <strong>open_method=first_trade</strong> which lets the open price be equal to the price of the first trade in period. This method is actually used by TradingView in their charts. It’s also the method that we initially used ourselves.</p><h3>Other updates</h3><p>We added the ability to determine the order in which the data is returned. Before the default was to always return OHLC candles in ascending order (according to time). We have now added an order query parameter which lets you specify whether to return the data in ascending (<strong>order=asc</strong>) or descending format (<strong>order=desc</strong>).</p><p>The desc format provides faster response times. The asc format is more convenient when downloading historical data.</p><p>The other new parameter we added is<strong> max_size</strong>, which controls the number of candles to return. The default is 100, and the maximum number of records you can return in a single request is 2500.</p><p><em>If you have questions or want to give feedback you can contact us on Discord (</em><a href="https://discord.com/invite/rs5GPAZ7tG"><em>https://discord.com/invite/rs5GPAZ7tG</em></a><em>) or Twitter (</em><a href="https://twitter.com/syve_ai"><em>https://twitter.com/syve_ai</em></a><em>).</em></p><p><em>Feel free to also check out the rest of our API: </em><a href="https://syve.ai/"><em>https://syve.ai</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b27db4857b01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Release: Fully Diluted Value (FDV) Endpoint]]></title>
            <link>https://medium.com/@syve_ai/new-release-fully-diluted-value-fdv-endpoint-9438cd584f3d?source=rss-d77e8fb57165------2</link>
            <guid isPermaLink="false">https://medium.com/p/9438cd584f3d</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Syve AI]]></dc:creator>
            <pubDate>Fri, 10 Nov 2023 10:21:30 GMT</pubDate>
            <atom:updated>2023-11-10T10:21:30.790Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*jA8KNZR5gj8u-w-tad6noA.png" /></figure><p>Our latest API update introduces a new endpoint focused on delivering Fully Diluted Value (FDV) (also referred to as Fully Diluted Market Cap) data for all ERC20 tokens traded on Ethereum.</p><h3>Motivation</h3><p>The introduction of this feature is a direct response to user feedback. Many users have experienced difficulty in obtaining FDV figures. In particular:</p><ul><li>It’s difficult to obtain fully diluted market cap values for lesser-known, low-cap tokens.</li><li>The process of retrieving this data for large numbers of tokens is notably inefficient and costly with other providers.</li></ul><h3>What is FDV?</h3><p>Fully Diluted Value (or Fully Diluted Market Cap) is the value of a token assuming full circulation of its supply.</p><p>The formula for calculating FDV is simply the current market price of a token multiplied by it’s maximum supply.</p><p>Note: All tokens that adhere to the ERC20 standard have a<strong> totalSuppy </strong>function that return information about the maximum number of tokens that can be minted. (You can read more about it here: <a href="https://docs.openzeppelin.com/contracts/2.x/api/token/erc20">https://docs.openzeppelin.com/contracts/2.x/api/token/erc20</a>)</p><h3>Features of the New Endpoint</h3><ul><li><strong>Real-time Updates:</strong> The price information updates with the mining of each new Ethereum block, which occurs approximately every 12 seconds.</li><li><strong>Bulk Fetching Capability:</strong> Users can obtain FDV data for up to 10,000 tokens in a single request, significantly reducing the execution time and the cost for downloading FDV for a large number of tokens.</li><li><strong>Extensive Token Coverage:</strong> The current scope includes approximately 250,000 ERC20 tokens traded on Ethereum, and our database is continuously updated with new tokens as they enter the market and are traded.</li></ul><h3>How it works</h3><p>The endpoint is called: <a href="https://api.syve.ai/v1/price-api/batch-latest-fdv">https://api.syve.ai/v1/price-api/batch-latest-fdv</a></p><p><strong>Documentation</strong></p><p>Full documentation for this endpoint is here: <a href="https://syve.readme.io/reference/batch-latest-token-fdv">https://syve.readme.io/reference/batch-latest-token-fdv</a></p><p><strong>GET vs. POST request method</strong></p><p>You can make GET as well as POST requests. If you want to fetch (or download) FDV for a large number of tokens use POST.</p><p>The GET request is limited to fetching FDV for 25 tokens in a single request. Note: This is because GET requests have a 2048 character limit for the URL.</p><p><strong>Request parameters</strong></p><p>There are two requests parameters <strong>token_address</strong> and <strong>price_type</strong>. For GET requests these parameters are supplied as query parameters in the URL. For POST they are supplied as JSON in the body of the request.</p><p><strong>Example</strong></p><p>The below example uses Python to fetch FDV for $UNIBOT $PEPE and $SHIB tokens in a single request using the POST method.</p><pre>import requests<br>import json<br><br>url = &quot;https://api.syve.ai/v1/price-api/batch-latest-fdv&quot;<br><br>payload = json.dumps({<br>  &quot;token_address&quot;: [<br>    &quot;0xf819d9cb1c2a819fd991781a822de3ca8607c3c9&quot;,<br>    &quot;0x6982508145454ce325ddbe47a25d4ec3d2311933&quot;,<br>    &quot;0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce&quot;<br>  ]<br>})<br>headers = {<br>  &#39;Content-Type&#39;: &#39;application/json&#39;<br>}<br><br>response = requests.request(&quot;POST&quot;, url, headers=headers, data=payload)<br><br>print(response.text)</pre><p>You can try this example with different token addresses in Postman here: <a href="https://www.postman.com/dark-equinox-191074/workspace/syve-examples/request/11895150-1cfe550a-0b5a-4746-a0ee-25d37f3c7f51?ctx=documentation">https://www.postman.com/dark-equinox-191074/workspace/syve-examples/request/11895150-1cfe550a-0b5a-4746-a0ee-25d37f3c7f51?ctx=documentation</a></p><p><em>If you have questions or want to give feedback you can contact us on Discord (</em><a href="https://discord.com/invite/rs5GPAZ7tG"><em>https://discord.com/invite/rs5GPAZ7tG</em></a><em>) or Twitter (</em><a href="https://twitter.com/syve_ai"><em>https://twitter.com/syve_ai</em></a><em>).</em></p><p><em>Feel free to also check out the rest of our API: </em><a href="https://syve.ai/"><em>https://syve.ai</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9438cd584f3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>