# BTC Inter Entity Flows

This namespace contains endpoints to retrieve inter entity flows data (e.g. flow between miners and exchanges). Data entries were collected from the first transaction between two entities. We constantly keep updating new entity wallets, which means that there can be slight modification in values especially for recent data points. The update is done in periodic and automatic way: Tuesday 00:00 UTC every week.

<br>

> **Note:** This endpoint does not support Point-In-Time (PIT) accuracy due to periodic updates to wallet address clustering. Historical data may change as new entity wallets are discovered, added, and validated.

<br>

## Exchange to Exchange

> This endpoint contains metrics related to token flows between exchanges. We provide several metrics, \`flow\_total\`, the total number of tokens transferred from one exchange to another, \`flow\_mean\`, the mean of tokens transferred, and \`transactions\_count\_flow\`, the number of transactions between exchanges.

```json
{"openapi":"3.0.0","info":{"title":"CryptoQuant Data API","version":"1.3.0"},"tags":[{"name":"BTC Inter Entity Flows","description":"This namespace contains endpoints to retrieve inter entity flows data (e.g. flow between miners and exchanges). Data entries were collected from the first transaction between two entities.\nWe constantly keep updating new entity wallets, which means that there can be slight modification in values especially for recent data points.\nThe update is done in periodic and automatic way: Tuesday 00:00 UTC every week.\n\n<br>\n\n> **Note:** This endpoint does not support Point-In-Time (PIT) accuracy due to periodic updates to wallet address clustering. Historical data may change as new entity wallets are discovered, added, and validated.\n\n<br>"}],"servers":[{"url":"https://api.cryptoquant.com/v1/","description":"Default server"}],"security":[{"Access Token":[]}],"components":{"securitySchemes":{"Access Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"For each API request, include this HTTP header:\n`Authorization` with the `Bearer {access_token}`. Bearer access token is the type of HTTP Authorization.  You have to include access token to the HTTP header and note that leading bearer is required.\nYou must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please [upgrade your plan](https://cryptoquant.com/pricing) to Professional or Premium plan. You'll be able to see your access token on the [API tab](https://cryptoquant.com/settings/api) of your profile page after the subscription."}},"parameters":{"from_entity_ex":{"description":"An exchange from the table that we support. [See here](#tag/BTC-Exchange-Flows).","explode":false,"in":"query","name":"from_exchange","required":true,"schema":{"type":"string"},"style":"form"},"to_entity_ex":{"description":"An exchange from the table that we support. [See here](#tag/BTC-Exchange-Flows). This should not be same as `from_entity`.","explode":false,"in":"query","name":"to_exchange","required":true,"schema":{"type":"string"},"style":"form"},"window_dbh":{"description":"Currently we support `day`, `hour`, and `block`.","explode":false,"in":"query","name":"window","schema":{"type":"string","default":"day"},"style":"form"},"from":{"description":"This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.","explode":false,"in":"query","name":"from","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"to":{"description":"This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.","explode":false,"in":"query","name":"to","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"limit":{"description":"The maximum number of entries to return before the latest data point (or before `to` if specified). This field ranges from 1 to 100,000.","explode":false,"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":100000},"style":"form"},"format":{"description":"A format type about return message type. Supported formats are json, csv.","explode":false,"in":"query","name":"format","required":false,"schema":{"type":"string","default":"json"},"style":"form"}},"responses":{"Exchange-to-exchange":{"description":"from_exchange, to_exchange, flow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Exchange-to-exchangeResponse"}}}}},"schemas":{"Exchange-to-exchangeResponse":{"type":"object","required":["status","result"],"properties":{"status":{"$ref":"#/components/schemas/Status"},"result":{"type":"object","required":["window","data"],"properties":{"window":{"$ref":"#/components/schemas/Window_DBH"},"data":{"type":"array","items":{"type":"object","required":["flow_total","flow_mean","transactions_count_flow"],"properties":{"blockheight":{"$ref":"#/components/schemas/Blockheight"},"date":{"$ref":"#/components/schemas/Date"},"datetime":{"$ref":"#/components/schemas/Datetime_H"},"flow_total":{"type":"decimal","description":"The total number of tokens transferred from one exchange to another."},"flow_mean":{"type":"decimal","description":"The mean of tokens transferred from one exchange to another."},"transactions_count_flow":{"type":"decimal","description":"The number of transactions from one exchange to another."}}}}}}}},"Status":{"type":"object","description":"The status object is return with most of requests and indicates if the request was successful. If it is not successful, error information is included.","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code"},"message":{"type":"string","description":"Text description of the error or success."}},"required":["code","message"]},"Window_DBH":{"type":"string","description":"The size of window. It can be day, hour, or block, and it depends on the user request."},"Blockheight":{"type":"string","description":"The height of the block. This optional field only appears when window=block is used."},"Date":{"type":"string","description":"The date in YYYY-DD-MM. This optional field only appears when window=day is used."},"Datetime_H":{"type":"string","description":"The date and time formatted as YYYY-MM-DD HH:MM:SS (UTC time). This field only appears when window=block or window=hour is used."}}},"paths":{"/btc/inter-entity-flows/exchange-to-exchange":{"get":{"tags":["BTC Inter Entity Flows"],"summary":"Exchange to Exchange","description":"This endpoint contains metrics related to token flows between exchanges. We provide several metrics, `flow_total`, the total number of tokens transferred from one exchange to another, `flow_mean`, the mean of tokens transferred, and `transactions_count_flow`, the number of transactions between exchanges.","operationId":"BTCgetExchangeToExchange","parameters":[{"$ref":"#/components/parameters/from_entity_ex"},{"$ref":"#/components/parameters/to_entity_ex"},{"$ref":"#/components/parameters/window_dbh"},{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/format"}],"responses":{"200":{"$ref":"#/components/responses/Exchange-to-exchange"}}}}}}
```

## Miner to Exchange

> This endpoint contains metrics related to token flows from mining pools to exchanges. We provide several metrics, \`flow\_total\`, the total number of tokens transferred from a mining pool to an exchange, \`flow\_mean\`, the mean of tokens transferred, and \`transactions\_count\_flow\`, the number of transactions from a mining pool to an exchange.

```json
{"openapi":"3.0.0","info":{"title":"CryptoQuant Data API","version":"1.3.0"},"tags":[{"name":"BTC Inter Entity Flows","description":"This namespace contains endpoints to retrieve inter entity flows data (e.g. flow between miners and exchanges). Data entries were collected from the first transaction between two entities.\nWe constantly keep updating new entity wallets, which means that there can be slight modification in values especially for recent data points.\nThe update is done in periodic and automatic way: Tuesday 00:00 UTC every week.\n\n<br>\n\n> **Note:** This endpoint does not support Point-In-Time (PIT) accuracy due to periodic updates to wallet address clustering. Historical data may change as new entity wallets are discovered, added, and validated.\n\n<br>"}],"servers":[{"url":"https://api.cryptoquant.com/v1/","description":"Default server"}],"security":[{"Access Token":[]}],"components":{"securitySchemes":{"Access Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"For each API request, include this HTTP header:\n`Authorization` with the `Bearer {access_token}`. Bearer access token is the type of HTTP Authorization.  You have to include access token to the HTTP header and note that leading bearer is required.\nYou must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please [upgrade your plan](https://cryptoquant.com/pricing) to Professional or Premium plan. You'll be able to see your access token on the [API tab](https://cryptoquant.com/settings/api) of your profile page after the subscription."}},"parameters":{"from_entity_mp":{"description":"A mining pool from the table that we support. [See here](#tag/BTC-Miner-Flows).","explode":false,"in":"query","name":"from_miner","required":true,"schema":{"type":"string"},"style":"form"},"to_entity_ex":{"description":"An exchange from the table that we support. [See here](#tag/BTC-Exchange-Flows). This should not be same as `from_entity`.","explode":false,"in":"query","name":"to_exchange","required":true,"schema":{"type":"string"},"style":"form"},"window_dbh":{"description":"Currently we support `day`, `hour`, and `block`.","explode":false,"in":"query","name":"window","schema":{"type":"string","default":"day"},"style":"form"},"from":{"description":"This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.","explode":false,"in":"query","name":"from","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"to":{"description":"This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.","explode":false,"in":"query","name":"to","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"limit":{"description":"The maximum number of entries to return before the latest data point (or before `to` if specified). This field ranges from 1 to 100,000.","explode":false,"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":100000},"style":"form"},"format":{"description":"A format type about return message type. Supported formats are json, csv.","explode":false,"in":"query","name":"format","required":false,"schema":{"type":"string","default":"json"},"style":"form"}},"responses":{"Miner-to-exchange":{"description":"from_miner, to_exchange, flow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Miner-to-exchangeResponse"}}}}},"schemas":{"Miner-to-exchangeResponse":{"type":"object","required":["status","result"],"properties":{"status":{"$ref":"#/components/schemas/Status"},"result":{"type":"object","required":["window","data"],"properties":{"window":{"$ref":"#/components/schemas/Window_DBH"},"data":{"type":"array","items":{"type":"object","required":["flow_total","flow_mean","transactions_count_flow"],"properties":{"blockheight":{"$ref":"#/components/schemas/Blockheight"},"date":{"$ref":"#/components/schemas/Date"},"datetime":{"$ref":"#/components/schemas/Datetime_H"},"flow_total":{"type":"decimal","description":"The total number of tokens transferred from a mining pool to an exchange."},"flow_mean":{"type":"decimal","description":"The mean of tokens transferred from a mining pool to an exchange."},"transactions_count_flow":{"type":"decimal","description":"The number of transactions from a mining pool to an exchange."}}}}}}}},"Status":{"type":"object","description":"The status object is return with most of requests and indicates if the request was successful. If it is not successful, error information is included.","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code"},"message":{"type":"string","description":"Text description of the error or success."}},"required":["code","message"]},"Window_DBH":{"type":"string","description":"The size of window. It can be day, hour, or block, and it depends on the user request."},"Blockheight":{"type":"string","description":"The height of the block. This optional field only appears when window=block is used."},"Date":{"type":"string","description":"The date in YYYY-DD-MM. This optional field only appears when window=day is used."},"Datetime_H":{"type":"string","description":"The date and time formatted as YYYY-MM-DD HH:MM:SS (UTC time). This field only appears when window=block or window=hour is used."}}},"paths":{"/btc/inter-entity-flows/miner-to-exchange":{"get":{"tags":["BTC Inter Entity Flows"],"summary":"Miner to Exchange","description":"This endpoint contains metrics related to token flows from mining pools to exchanges. We provide several metrics, `flow_total`, the total number of tokens transferred from a mining pool to an exchange, `flow_mean`, the mean of tokens transferred, and `transactions_count_flow`, the number of transactions from a mining pool to an exchange.","operationId":"BTCgetMinerToExchange","parameters":[{"$ref":"#/components/parameters/from_entity_mp"},{"$ref":"#/components/parameters/to_entity_ex"},{"$ref":"#/components/parameters/window_dbh"},{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/format"}],"responses":{"200":{"$ref":"#/components/responses/Miner-to-exchange"}}}}}}
```

## Exchange to Miner

> This endpoint contains metrics related to token flows from exchanges to mining pools. We provide several metrics, \`flow\_total\`, the total number of tokens transferred from a mining pool to an exchange, \`flow\_mean\`, the mean of tokens transferred, and \`transactions\_count\_flow\`, the number of transactions from an exchange to a mining pool.

```json
{"openapi":"3.0.0","info":{"title":"CryptoQuant Data API","version":"1.3.0"},"tags":[{"name":"BTC Inter Entity Flows","description":"This namespace contains endpoints to retrieve inter entity flows data (e.g. flow between miners and exchanges). Data entries were collected from the first transaction between two entities.\nWe constantly keep updating new entity wallets, which means that there can be slight modification in values especially for recent data points.\nThe update is done in periodic and automatic way: Tuesday 00:00 UTC every week.\n\n<br>\n\n> **Note:** This endpoint does not support Point-In-Time (PIT) accuracy due to periodic updates to wallet address clustering. Historical data may change as new entity wallets are discovered, added, and validated.\n\n<br>"}],"servers":[{"url":"https://api.cryptoquant.com/v1/","description":"Default server"}],"security":[{"Access Token":[]}],"components":{"securitySchemes":{"Access Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"For each API request, include this HTTP header:\n`Authorization` with the `Bearer {access_token}`. Bearer access token is the type of HTTP Authorization.  You have to include access token to the HTTP header and note that leading bearer is required.\nYou must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please [upgrade your plan](https://cryptoquant.com/pricing) to Professional or Premium plan. You'll be able to see your access token on the [API tab](https://cryptoquant.com/settings/api) of your profile page after the subscription."}},"parameters":{"from_entity_ex":{"description":"An exchange from the table that we support. [See here](#tag/BTC-Exchange-Flows).","explode":false,"in":"query","name":"from_exchange","required":true,"schema":{"type":"string"},"style":"form"},"to_entity_mp":{"description":"A mining pool from the table that we support. [See here](#tag/BTC-Miner-Flows).","explode":false,"in":"query","name":"to_miner","required":true,"schema":{"type":"string"},"style":"form"},"window_dbh":{"description":"Currently we support `day`, `hour`, and `block`.","explode":false,"in":"query","name":"window","schema":{"type":"string","default":"day"},"style":"form"},"from":{"description":"This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.","explode":false,"in":"query","name":"from","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"to":{"description":"This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.","explode":false,"in":"query","name":"to","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"limit":{"description":"The maximum number of entries to return before the latest data point (or before `to` if specified). This field ranges from 1 to 100,000.","explode":false,"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":100000},"style":"form"},"format":{"description":"A format type about return message type. Supported formats are json, csv.","explode":false,"in":"query","name":"format","required":false,"schema":{"type":"string","default":"json"},"style":"form"}},"responses":{"Exchange-to-miner":{"description":"from_exchange, to_miner, flow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Exchange-to-minerResponse"}}}}},"schemas":{"Exchange-to-minerResponse":{"type":"object","required":["status","result"],"properties":{"status":{"$ref":"#/components/schemas/Status"},"result":{"type":"object","required":["window","data"],"properties":{"window":{"$ref":"#/components/schemas/Window_DBH"},"data":{"type":"array","items":{"type":"object","required":["flow_total","flow_mean","transactions_count_flow"],"properties":{"blockheight":{"$ref":"#/components/schemas/Blockheight"},"date":{"$ref":"#/components/schemas/Date"},"datetime":{"$ref":"#/components/schemas/Datetime_H"},"flow_total":{"type":"decimal","description":"The total number of tokens transferred from an exchange to a mining pool."},"flow_mean":{"type":"decimal","description":"The mean of tokens transferred from an exchange to a mining pool."},"transactions_count_flow":{"type":"decimal","description":"The number of transactions from an exchange to a mining pool."}}}}}}}},"Status":{"type":"object","description":"The status object is return with most of requests and indicates if the request was successful. If it is not successful, error information is included.","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code"},"message":{"type":"string","description":"Text description of the error or success."}},"required":["code","message"]},"Window_DBH":{"type":"string","description":"The size of window. It can be day, hour, or block, and it depends on the user request."},"Blockheight":{"type":"string","description":"The height of the block. This optional field only appears when window=block is used."},"Date":{"type":"string","description":"The date in YYYY-DD-MM. This optional field only appears when window=day is used."},"Datetime_H":{"type":"string","description":"The date and time formatted as YYYY-MM-DD HH:MM:SS (UTC time). This field only appears when window=block or window=hour is used."}}},"paths":{"/btc/inter-entity-flows/exchange-to-miner":{"get":{"tags":["BTC Inter Entity Flows"],"summary":"Exchange to Miner","description":"This endpoint contains metrics related to token flows from exchanges to mining pools. We provide several metrics, `flow_total`, the total number of tokens transferred from a mining pool to an exchange, `flow_mean`, the mean of tokens transferred, and `transactions_count_flow`, the number of transactions from an exchange to a mining pool.","operationId":"BTCgetExchangeToMiner","parameters":[{"$ref":"#/components/parameters/from_entity_ex"},{"$ref":"#/components/parameters/to_entity_mp"},{"$ref":"#/components/parameters/window_dbh"},{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/format"}],"responses":{"200":{"$ref":"#/components/responses/Exchange-to-miner"}}}}}}
```

## Miner to Miner

> This endpoint contains metrics related to token flows between mining pools. We provide several metrics, \`flow\_total\`, the total number of tokens transferred from one mining pool to another, \`flow\_mean\`, the mean of tokens transferred, and \`transactions\_count\_flow\`, the number of transactions between mining pools.

```json
{"openapi":"3.0.0","info":{"title":"CryptoQuant Data API","version":"1.3.0"},"tags":[{"name":"BTC Inter Entity Flows","description":"This namespace contains endpoints to retrieve inter entity flows data (e.g. flow between miners and exchanges). Data entries were collected from the first transaction between two entities.\nWe constantly keep updating new entity wallets, which means that there can be slight modification in values especially for recent data points.\nThe update is done in periodic and automatic way: Tuesday 00:00 UTC every week.\n\n<br>\n\n> **Note:** This endpoint does not support Point-In-Time (PIT) accuracy due to periodic updates to wallet address clustering. Historical data may change as new entity wallets are discovered, added, and validated.\n\n<br>"}],"servers":[{"url":"https://api.cryptoquant.com/v1/","description":"Default server"}],"security":[{"Access Token":[]}],"components":{"securitySchemes":{"Access Token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"For each API request, include this HTTP header:\n`Authorization` with the `Bearer {access_token}`. Bearer access token is the type of HTTP Authorization.  You have to include access token to the HTTP header and note that leading bearer is required.\nYou must include your access token in HTTP header in every request you make. The token is unique, issued for each client, and regularly changed(once a year). To obtain an access token, please [upgrade your plan](https://cryptoquant.com/pricing) to Professional or Premium plan. You'll be able to see your access token on the [API tab](https://cryptoquant.com/settings/api) of your profile page after the subscription."}},"parameters":{"from_entity_mp":{"description":"A mining pool from the table that we support. [See here](#tag/BTC-Miner-Flows).","explode":false,"in":"query","name":"from_miner","required":true,"schema":{"type":"string"},"style":"form"},"to_entity_mp":{"description":"A mining pool from the table that we support. [See here](#tag/BTC-Miner-Flows).","explode":false,"in":"query","name":"to_miner","required":true,"schema":{"type":"string"},"style":"form"},"window_dbh":{"description":"Currently we support `day`, `hour`, and `block`.","explode":false,"in":"query","name":"window","schema":{"type":"string","default":"day"},"style":"form"},"from":{"description":"This defines the starting time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the earliest time.","explode":false,"in":"query","name":"from","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"to":{"description":"This defines the ending time for which data will be gathered, formatted as YYYYMMDDTHHMMSS (indicating YYYY-MM-DDTHH:MM:SS, UTC time). If window=day is used, it can also be formatted as YYYYMMDD (date). If window=block is used, you can also specify the exact block height (e.g. 510000). If this field is not specified, response will include data from the latest time.","explode":false,"in":"query","name":"to","required":false,"schema":{"YYYYMMDDTHHMMSS":{"type":"string"}},"style":"form"},"limit":{"description":"The maximum number of entries to return before the latest data point (or before `to` if specified). This field ranges from 1 to 100,000.","explode":false,"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100,"minimum":1,"maximum":100000},"style":"form"},"format":{"description":"A format type about return message type. Supported formats are json, csv.","explode":false,"in":"query","name":"format","required":false,"schema":{"type":"string","default":"json"},"style":"form"}},"responses":{"Miner-to-miner":{"description":"from_miner, to_miner, flow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Miner-to-minerResponse"}}}}},"schemas":{"Miner-to-minerResponse":{"type":"object","required":["status","result"],"properties":{"status":{"$ref":"#/components/schemas/Status"},"result":{"type":"object","required":["window","data"],"properties":{"window":{"$ref":"#/components/schemas/Window_DBH"},"data":{"type":"array","items":{"type":"object","required":["flow_total","flow_mean","transactions_count_flow"],"properties":{"blockheight":{"$ref":"#/components/schemas/Blockheight"},"date":{"$ref":"#/components/schemas/Date"},"datetime":{"$ref":"#/components/schemas/Datetime_H"},"flow_total":{"type":"decimal","description":"The total number of tokens transferred from one mining pool to another."},"flow_mean":{"type":"decimal","description":"The mean of tokens transferred from one mining pool to another."},"transactions_count_flow":{"type":"decimal","description":"The number of transactions from one mining pool to another."}}}}}}}},"Status":{"type":"object","description":"The status object is return with most of requests and indicates if the request was successful. If it is not successful, error information is included.","properties":{"code":{"type":"integer","format":"int32","description":"HTTP status code"},"message":{"type":"string","description":"Text description of the error or success."}},"required":["code","message"]},"Window_DBH":{"type":"string","description":"The size of window. It can be day, hour, or block, and it depends on the user request."},"Blockheight":{"type":"string","description":"The height of the block. This optional field only appears when window=block is used."},"Date":{"type":"string","description":"The date in YYYY-DD-MM. This optional field only appears when window=day is used."},"Datetime_H":{"type":"string","description":"The date and time formatted as YYYY-MM-DD HH:MM:SS (UTC time). This field only appears when window=block or window=hour is used."}}},"paths":{"/btc/inter-entity-flows/miner-to-miner":{"get":{"tags":["BTC Inter Entity Flows"],"summary":"Miner to Miner","description":"This endpoint contains metrics related to token flows between mining pools. We provide several metrics, `flow_total`, the total number of tokens transferred from one mining pool to another, `flow_mean`, the mean of tokens transferred, and `transactions_count_flow`, the number of transactions between mining pools.","operationId":"BTCgetMinerToMiner","parameters":[{"$ref":"#/components/parameters/from_entity_mp"},{"$ref":"#/components/parameters/to_entity_mp"},{"$ref":"#/components/parameters/window_dbh"},{"$ref":"#/components/parameters/from"},{"$ref":"#/components/parameters/to"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/format"}],"responses":{"200":{"$ref":"#/components/responses/Miner-to-miner"}}}}}}
```
