# Excel and RTD function

Start from version 1.39 FundX supports **Real-Time Data (RTD)** for sending data and other market information to Microsoft Excel®. This feature opens up many opportunities for creating custom displays and other ways to better manage your workflow.

RTD is a newer protocol that offers several advantages over DDE, including more flexibility and better performance and reliability.

We prepared the spreadsheet that outlines the basic syntax of RTD formulas with details more complex formulas. Included is a collection of popular RTD formulas, which you can simply copy and paste into your own spreadsheet. [**Download the sample file**](https://updates.quantower.com/misc/RTD/rtd_samples.xlsx)**.**

Here is the General Syntax for getting symbol info via RTD function:

![](https://1574671354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQAglKSOJnxCrGxFyuplO%2Fuploads%2Fgit-blob-61de66114387c3c4054f3f2ba79c63633bcd83c8%2Fscreenshot_128%20\(1\).png?alt=media)

{% embed url="<https://www.youtube.com/watch?v=k1pbtSadX8I>" %}

## **How to activate RTD function in FundX platform**

{% hint style="warning" %}
For the function to work properly, **FundX platform and Excel must have the same version — 64 or 32 bit**
{% endhint %}

Launch Excel and after open the Task Manager to check the version of Excel (32-bit or 64-bit). The platform should have the same version in order to work with RTD function correctly.

![](https://1574671354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQAglKSOJnxCrGxFyuplO%2Fuploads%2Fgit-blob-2a27c64105f90e5a5a8a404cfdc09d8ac64940ce%2Fimage%20\(150\).png?alt=media)

Go to the [**General Settings**](https://funded-futures-network.gitbook.io/fundx/general-settings/general-settings-1) of the platform, then to *section **Excel RTD*** and tick off ***"Enable Microsoft Excel RTD"***

![Activation of RTD function in FundX](https://1574671354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQAglKSOJnxCrGxFyuplO%2Fuploads%2Fgit-blob-013df103aa001f22d4dd1db0fec0937bc1d4eea0%2Fassets_-ld6fsrvq3jgwjig6o7r_-lme4wbmrbk0ai3rafld_-lmeyazmdvqpbsftpr9b_rtd.png?alt=media)

Also in the settings, there are two important settings:

* **Custom RTD formula name** — depending on the language of your operating system, the name of the RTD function in Excel may be called differently. The original name of the function in the English version of Excel is RTD, but for the Russian version it's called "ДРВ".
* **Custom argument separator** — the separator that participates in the formula. It depends on the localization of your operating system. Get to know [how to check argument separator in your system](#how-to-check-argument-separator).

## How to get the instrument data from FundX?

### 1. Getting data through copying a formula

The easiest way to get data to Excel is to copy the necessary data through the panel context menu. For example, after activating RTD, an additional item in the context menu will appear in the Watchlist panel — **Copy RTD Formula**.

* Select a necessary symbol or multiple symbols, right-click and select **Copy RTD Formula**. You can copy formulas for specific columns or for all columns.

![](https://1574671354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQAglKSOJnxCrGxFyuplO%2Fuploads%2Fgit-blob-35ec52d8fcbb2442ab59a9552d89506b2c9270f5%2Frtd-watchlist.png?alt=media)

* Go to Excel and paste the copied formulas. Now the data will be updated automatically.

![Boadcasting real-time data to Excel](https://1574671354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQAglKSOJnxCrGxFyuplO%2Fuploads%2Fgit-blob-ee70cc4c2b7d72750a044bdfda8abdb1e337828b%2Frtd-quick-copying.gif?alt=media)

{% hint style="info" %}
You may notice that the data is updated with some delay. This is a throttling interval that is set by default in Excel (2000 milliseconds). If you want to [increase the speed of updating data, read the instructions on how to do it](https://help.quantower.com/miscellaneous-panels/excel-rtd-trading/changing-rtd-throttle-interval-in-excel).
{% endhint %}

### 2. Getting data through writing a formula

When retrieving instrument data using RTD, you need to specify the ID of the instrument and the properties you want to retrieve.

RTD formula uses the following basic structure:

```
=RTD("TradingPlatform";"";"Param1";"Param2";"Param3";....")
```

{% hint style="info" %}
The second parameter is the name of the external server running the RTD Server. As the FundX RTD Server always runs locally, you must omit a value for the second parameter or supply an empty string (“”). However, you must account for the parameter in the formula.
{% endhint %}

### Examples of the most popular RTD formulas with description

Examples of the most popular RTD formulas are described below with description of the basic syntax by the example of Binance exchange. Using them, you can get exactly the data you need for analysis and paste into your spreadsheet. You can also download these examples from this Excel file.

### 1.GetSymbolInfo - information about a specific symbol

{% hint style="success" %}
Provides access to specific symbol information such as Description, **ExchangeName, NettingType and others**. You can simply copy/paste this formula for use in Excel files or get it directly from the Symbol Information panel for the selected symbol. Right-click on the panel and select the menu option: "**Copy RTD Formula**" -> "Value".
{% endhint %}

```
=ДРВ("tradingplatform";"";"GetSymbolInfo";"1INCHBTC";"Name";"Binance Spot")

=ДРВ("tradingplatform";"";"GetSymbolInfo";"1000LUNCBUSD";"Name";"Binance USDT-M Futures")

=ДРВ("tradingplatform";"";"GetSymbolInfo";"1INCHUSDT_SPOT";"Name";"Bybit")

=ДРВ("TradingPlatform";"";"GetSymbolInfo";"10000NFTUSDT_SWAP";"Name";"Bybit")

=ДРВ("TradingPlatform";"";"GetSymbolInfo";"BTCUSDT";"SymbolType";"Binance Spot")
```

#### Options

| Options                      | Description                                                                                                                                         |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"TradingPlatform"**        | FundX RTD server name. You can use it in all formulas.                                                                                              |
| **"GetSymbolInfo"**          | Name of method                                                                                                                                      |
| **"BTCUSDT"**                | The ID of the symbol for which you want to get data. You can get it from the SymbolInfo panel.                                                      |
| **"SymbolType"**             | Specifies the type of data you want to receive. For example: Name, Description.                                                                     |
| **"Binance USDT-M Futures"** | The name of the connection you want to use to search for the desired character. You can leave this parameter blank if you only have one connection. |

![](https://gblobscdn.gitbook.com/assets%2F-M__G3zsA7jr_pKwIdiz%2F-MdD7Xd-0rMcvc9PCdnw%2F-MdDAb_29__xMcMGoTaX%2F%D0%B5%D0%BA%D1%81%D0%B5%D0%BB%D1%8C%20%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D0%BE1.gif?alt=media\&token=f409533f-8cb3-4ed5-b7dd-1fd04a677bdf)

![](https://gblobscdn.gitbook.com/assets%2F-M__G3zsA7jr_pKwIdiz%2F-MdDEfWoJWngCgyWqWIJ%2F-MdDFjuvLdNdsY-i1mSp%2F%D0%B5%D0%BA%D1%81%D0%B5%D0%BB%D1%8C%20%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D0%BE%20%D1%81%D1%82%D0%B0%D1%82%D1%83%D1%81.gif?alt=media\&token=113f6eba-d2c3-4fa4-888a-63275f006a1b)

### 2. GetAccounInfo - information about a particular account <a href="#id-2-getaccouninfo-informaciya-o-konkretnoi-uchetnoi-zapisi" id="id-2-getaccouninfo-informaciya-o-konkretnoi-uchetnoi-zapisi"></a>

{% hint style="success" %}
Provides access to specific account information such as name, balance, NettingType, and others. You can simply copy/paste this formula for use in Excel files or get it directly from the Account Information panel for the selected account. Right-click on the pane and select the menu option: "Copy RTD Formula" -> "Value".
{% endhint %}

```
=ДРВ("tradingplatform";"";"GetAccountInfo";"binance";"Balance";"Binance USDT-M Futures")

=ДРВ("tradingplatform";"";"GetAccountInfo";"binance";"DOTavailableBalance";"Binance USDT-M Futures")

=ДРВ("tradingplatform";"";"GetAccountInfo";"binance";"hedgeMode";"Binance USDT-M Futures")

=ДРВ("tradingplatform";"";"GetAccountInfo";"3111865";"Balance";"Bybit")

=ДРВ("tradingplatform";"";"GetAccountInfo";"3111865";"openPositions";"Bybit")

=ДРВ("tradingplatform";"";"GetAccountInfo";"3111865";"Id";"Bybit")
```

### **3. GetMarketData -** Bid, Ask, Last, Open, High

```
=ДРВ("tradingplatform";"";"GetMarketData";"1INCHUSDT_SPOT";"Last";"Bybit")

=ДРВ("tradingplatform";"";"GetMarketData";"10000NFTUSDT_SWAP";"Last";"Bybit")

=ДРВ("tradingplatform";"";"GetMarketData";"BTCUSDT";"Last";"Binance Spot")

=ДРВ("tradingplatform";"";"GetMarketData";"1000LUNCBUSD";"Last";"Binance USDT-M Futures")

=ДРВ("tradingplatform";"";"GetMarketData";"1INCHUSDT_SPOT";"ChangePercentage";"Bybit")

=ДРВ("tradingplatform";"";"GetMarketData";"10000NFTUSDT_SWAP";"ChangePercentage";"Bybit")

=ДРВ("tradingplatform";"";"GetMarketData";"1INCHBUSD";"ChangePercentage";"Binance Spot")

=ДРВ("tradingplatform";"";"GetMarketData";"1000LUNCBUSD";"ChangePercentage";"Binance USDT-M Futures")

```

| ***Options***                | Description                                                                                                                                         |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"TradingPlatform"**        | FundX RTD server name. You can use it in all formulas.                                                                                              |
| **"GetMarketData"**          | Name of method                                                                                                                                      |
| **"BTCUSDT"**                | The ID of the symbol for which you want to get data. You can get it from the SymbolInfo panel.                                                      |
| **"Bid"**                    | Specifies the type of data you want to receive. For example: Bid, Ask, Last, Open, High                                                             |
| **"Binance USDT-M Futures"** | The name of the connection you want to use to search for the desired character. You can leave this parameter blank if you only have one connection. |

![](https://gblobscdn.gitbook.com/assets%2F-M__G3zsA7jr_pKwIdiz%2F-MdDYvNg3fltYBR__rmI%2F-MdDdK5vki_349k34zfM%2FGetMarketData%20-%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5%20%D1%81%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%B0.gif?alt=media\&token=b7653eb0-9b6d-42d6-8f99-df221d76a6ad)

### 4. GetLevel2Data - Level2 <a href="#id-4-getlevel-2-data-level2-dannye-glubiny-rynka" id="id-4-getlevel-2-data-level2-dannye-glubiny-rynka"></a>

Provides access to Tier 2 data for a specific symbol. You can simply copy/paste this formula and use it in your Excel files.

```
 =ДРВ("tradingplatform";"";"GetLevel2Data";"BTCUSDT";"BidSize";"0";"Binance Spot")

=ДРВ("tradingplatform";"";"GetLevel2Data";"BTCUSDT";"BidSize";"0";"Binance USDT-M Futures")

=ДРВ("tradingplatform";"";"GetLevel2Data";"BTCUSDT_SPOT";"BidSize";"0";"Bybit")

=ДРВ("tradingplatform";"";"GetLevel2Data";"10000NFTUSDT_SWAP";"BidSize";"0";"Bybit")
```

***Options***

| ***Options***                | Description                                                                                                                                         |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"TradingPlatform"**        | FundX RTD server name. You can use it in all formulas.                                                                                              |
| **"GetLevel2Data"**          | Name of method                                                                                                                                      |
| **"BTCUSDT"**                | The ID of the symbol for which you want to get data. You can get it from the SymbolInfo panel.                                                      |
| **"BidSize"**                | Указанный тип данных, которые вы хотите получать. Например: Bid, Ask, BidSize, AskSize.                                                             |
| **"0"**                      | The sequence number of the level in the Depth of Market. Starts with 0.                                                                             |
| **"Binance USDT-M Futures"** | The name of the connection you want to use to search for the desired character. You can leave this parameter blank if you only have one connection. |

![](https://gblobscdn.gitbook.com/assets%2F-M__G3zsA7jr_pKwIdiz%2F-MdDeP1om5YlPw02mvCy%2F-MdDpQrD1zm6GSE_ZR-C%2FGetLevel2Data%20-%20Level2%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5%20%D0%B3%D0%BB%D1%83%D0%B1%D0%B8%D0%BD%D1%8B%20%D1%80%D1%8B%D0%BD%D0%BA%D0%B0%20.gif?alt=media\&token=b50021c3-179a-49e1-b8d0-6294abce718f)

### 5. GetHistory - history for the specified symbol <a href="#id-5-gethistory-istoriya-dlya-ukazannogo-simvola" id="id-5-gethistory-istoriya-dlya-ukazannogo-simvola"></a>

Returns the history for the specified character, aggregation and date range. You can simply copy/paste this formula and use it in your Excel files.

```
=ДРВ("tradingplatform";"";"GetHistory";"BTCUSDT";"1Day";"Low";"10Day";"0";"Last";"Binance Spot")

=ДРВ("tradingplatform";"";"GetHistory";"BNBUSDT";"1Minute";"Close";"30Minute";"0";"Last";"Binance USDT-M Futures")

=ДРВ("tradingplatform";"";"GetHistory";"BTCUSDT";"5Minute";"Open";"300Minute";"0";"Last";"Binance USDT-M Futures")

=ДРВ("tradingplatform";"";"GetHistory";"ADAUSDT";"1Hour";"Low";"24Hour";"0";"Last";"Binance Spot")

=ДРВ("tradingplatform";"";"GetHistory";"BTCUSDT_SPOT";"1Hour";"Low";"24Hour";"0";"Last";"Bybit")

=ДРВ("tradingplatform";"";"GetHistory";"10000NFTUSDT_SWAP";"1Hour";"Low";"24Hour";"0";"Last";"Bybit")
```

***Options***

| ***Options***                | *Описание*                                                                                                                                          |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"TradingPlatform"**        | FundX RTD server name. You can use it in all formulas.                                                                                              |
| **"GetHistory"**             | Name of method                                                                                                                                      |
| **"BTCUSDT"**                | The ID of the symbol for which you want to get data. You can get it from the SymbolInfo panel.                                                      |
| **"1Day"**                   | Aggregation type: 1 day, 3 days, 5 minutes, etc. Available aggregates:Tick, Second, Minute, Hour, Day, Week, Month, Year.                           |
| **"Close"**                  | Specifies the type of data you want to receive. For example: Open, High, Low, Close, Volume, Bid, Ask.                                              |
| **"10Day"**                  | Required history range: 10 days, 300 minutes, etc. Available ranges: Minute, Hour, Day, Month, Year.                                                |
| **"0"**                      | The index of the bar / tick in the returned history array. 0 means the newest bar.                                                                  |
| **"Last"**                   | Bid, Ask, Last history type. Leave the field empty to get the default history for the specified character.                                          |
| **"Binance USDT-M Futures"** | The name of the connection you want to use to search for the desired character. You can leave this parameter blank if you only have one connection. |

![](https://gblobscdn.gitbook.com/assets%2F-M__G3zsA7jr_pKwIdiz%2F-MdE86l5W8HjMUupdd2P%2F-MdE8AgutchiL75g8edf%2FGetHistory%20-%20%D0%B8%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%83%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%BD%D0%BE%D0%B3%D0%BE%20%D1%81%D0%B8%D0%BC%D0%B2%D0%BE%D0%BB%D0%B0.png?alt=media\&token=e8008edd-a627-47b0-81c2-060c6963014f)

### **Frequently Asked Questions**

### **How to check argument separator?**

For Windows 10:

* go to **Start >type Control Panel and press enter > Region**
* click **Additional Settings**
* for **List Separator** check the argument. It must be the same as in RTD settings.

![](https://1574671354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQAglKSOJnxCrGxFyuplO%2Fuploads%2Fgit-blob-641c1729e024c0e044545ecced50e8f7a4d11f42%2Fregional_settings.png?alt=media)

![](https://1574671354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQAglKSOJnxCrGxFyuplO%2Fuploads%2Fgit-blob-8e9d2f1e85b161590b79bc7d1bc77274c8915d50%2Fregional2.jpg?alt=media)
