From 23c8213fc3e6a4f495f45c9f6c4d21c70b3e7016 Mon Sep 17 00:00:00 2001 From: svisstack Date: Wed, 8 May 2024 12:58:25 +0000 Subject: [PATCH] update openapi file --- data-api/coinapi-marketdata-rest.yaml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/data-api/coinapi-marketdata-rest.yaml b/data-api/coinapi-marketdata-rest.yaml index 09c0d62b6..e2606a8b9 100644 --- a/data-api/coinapi-marketdata-rest.yaml +++ b/data-api/coinapi-marketdata-rest.yaml @@ -700,7 +700,7 @@ paths: examples: Example response: value: { - "time": "2024-05-08T12:39:57.8740226Z", + "time": "2024-05-08T12:58:12.9054894Z", "asset_id_base": "BTC", "asset_id_quote": "USD", "rate": 10000.0 @@ -711,7 +711,7 @@ paths: examples: Example response: value: { - "time": "2024-05-08T12:39:57.8740226Z", + "time": "2024-05-08T12:58:12.9054894Z", "asset_id_base": "BTC", "asset_id_quote": "USD", "rate": 10000.0 @@ -722,7 +722,7 @@ paths: examples: Example response: value: { - "time": "2024-05-08T12:39:57.8740226Z", + "time": "2024-05-08T12:58:12.9054894Z", "asset_id_base": "BTC", "asset_id_quote": "USD", "rate": 10000.0 @@ -733,7 +733,7 @@ paths: examples: Example response: value: { - "time": "2024-05-08T12:39:57.8740226Z", + "time": "2024-05-08T12:58:12.9054894Z", "asset_id_base": "BTC", "asset_id_quote": "USD", "rate": 10000.0 @@ -1820,14 +1820,6 @@ paths: type: array items: $ref: '#/components/schemas/v1.IndexTimeseriesItem' - /v1/metadata: - get: - tags: - - Metadata - summary: Base url of the API. - responses: - '200': - description: Success /v1/metrics/listing: get: tags: @@ -7560,8 +7552,6 @@ security: tags: - name: Exchange Rates description: "\r\n\r\nExchange rate is defined as (VWAP-24H) last 24 hour (rolling window over time) Volume Weighted Average Price across multiple data sources listed on our platform. We are selecting and managing the data sources that are used in the calculation based on multiple factors to provide data of highest quality. \r\n\r\nAlgorithm is described below:\r\n\r\n 1. Exchange rates are produced from quotes, trades, and metadata datasets.\r\n 1. Symbols that are not data_type = \"SPOT\" are excluded from the calculation.\r\n 1. Symbols from the data sources that were marked by us as not legitimate are excluded from the calculation.\r\n 1. Quotes data where the spread is outside the range of ```<0$; 67%>``` are discarded. `spreadPrc = (ask - bid) / ((ask + bid) / 2)`\r\n 1. The midpoint from the quote data is used as a pricing reference and it's weighted by the passive cumulative volume resting on the best prices.\r\n 1. Volume from the trades is used to weight the midpoint prices in the VWAP24 algorithm.\r\n 1. Midpoint data that has not been updated in the last 5 minutes and 1 second is discarded.\r\n 1. The last 24-hour volume for each symbol is updated every 4 hours when approximately 20% of the data in the sliding window changes (also, the list of eligible markets is updated at the same time).\r\n 1. Everywhere in the algorithm below, we are using asset pairs only from exchanges that have the highest legitimacy rank, and the rest of the exchanges are discarded. As we establish the highest-ranking exchanges that have this data for each asset pair, we ensure that the highest quality data is used for each of them. The rank used for asset pairing is carried over to the following steps.\r\n 1. Every 1 second, we update VWAP24 data for every asset pair across all data sources.\r\n 1. For each asset pair, we also discard data that is outside the 3 sigma range if there are at least 3 exchanges for this asset pair.\r\n 1. From the VWAP24 data, we are creating a tree structure where node/vertex = asset and edge = rate.\r\n 1. By traversing the tree structure using the BFS algorithm and our secret sauce, we are able to establish the final exchange rates.\r\n " - - name: Metadata - description: - name: Order Book L3 description: "\n\nThis section describes calls related to order book data, also known as books or passive level 3 data." - name: Order Book