> This page is for Excel.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ibkrcampus.com/docs/llms.txt.

# Modifying RTD Request Code

## Introduction

Some customers may find that as opposed to generic ticks or live streaming data, they may want to remove or reduce the number of ticks. It is even possible to change RTD to report snapshot data instead. This section will document the process to change these underlying values requested.

Keep in mind, RTD is based on underlying C# code. As such, a working knowledge of C# is required. These modifications will also require a C# compiler and interpreter are installed on your windows machine.

## Open The Solution File

Navigate to the TwsRtdServer source directory and launch the solution file.

This can be found at `{TWS API}\source\CSharpClient\TwsRtdServer\TwsRtdServer.sln`

![Source directory of RTD](/docs/_fern-files/_img/bcf2b3c72f69477c32b8be8747053467a22d243f93acd533e256ea0386f347af.webp)

## Find The Request

Within the solution file, you will need to navigate to the TwsRtdServerMktDataRequest.cs file. This file contains the request for [EClient.reqMktData](/docs/tws-api/doc/md/streaming-data#request-watchlist-data), which effects the underlying behavior. The request is on line 73.

![ReqMktData request in solution file](/docs/_fern-files/_img/1c3329fdaa5ec9b9fe595cbcc9fde8b1b6defdbdd64066a0ebf4be18cf083824.webp)

## Update GenericTicks, Snapshot, or RegulatorySnapshot

By default, all generic ticks are requested in the RTD sample. For those who only need minimum values, such as Bid, Ask, Last, and their respective sizes, may want to change the genericTicks variable from monitoring the sample-provided values, and instead return an empty list.

![A modified version of the reqMktData request without genericTicks](/docs/_fern-files/_img/d71a6fc69ef527bdb9a1b141395079fbc96e19c4747004532f147f33eb555f3a.webp)

## Compile the C# Code

In your platform of choice, you will need to compile your code to be built moving forward. Compiling in debug is recommended for testing, though compiling for Release will provide the best performance once in production.

![Build the RTD code](/docs/_fern-files/_img/ab5cf419aad6c26a5b601c867366cfb31c69ad77770bfda8bd5dba9eb82290f1.webp)

## Test The Result

It is then recommended to test any changes made. Depending on the software used to compile changes, users may be automatically launched into a new file to test with. It is encouraged to test any changes made to see that expected changes are changed correctly, while no other actions are effected.

![Run the modified RTD code in a sample sheet](/docs/_fern-files/interactive-brokers-585439.docs.buildwithfern.com/ab65417fc262f23e6d3820ba44e84f957459701de9446e8df40fea8b9e511764/docs/assets/media/rtdTestRun.png)