BackCheck Streaming API

How To Check Your Streaming API Key Using Browser Extension

05 January 2023


Many users prefer obtaining forex data via WebSockets, as they need lightning-fast, real-time price feeds. Your WebSocket Key or Streaming API Key is the primary requirement to access real-time data feed. We will learn how to get a Streaming API Key and how to check if it works by using a browser extension. 

Simple Steps to Check if Streaming API Key Works

Let us begin by understanding how you can obtain your Streaming API Key by starting your 14-day free WebSocket trial:

Sign-Up To Get Started

You can sign-up by clicking on https://tradermade.com/signup.

After logging in using your credentials, you will be taken to our dashboard. It serves as a single-point reference for your REST API Key, Streaming API Key, your WebSocket data or other subscription plans, Trials, and purchases from our portal.

Dashboard

Image 1: User Dashboard

Get Your Streaming API Key

As you log in using your credentials, you can see your dashboard, similar to the image above. To get your Streaming API Key, click the START STREAMING DATA TRIAL button (marked in red in the above screenshot). You will be redirected to our WebSocket Subscription page, which looks like this:

WS_Sub_Page

Image 2: WebSocket Subscription Page

You need to click on the SEND CONFIRMATION EMAIL button. 

You will receive an automated confirmation email. As you click on the Confirm email link within that email, you will be redirected to the WebSocket Subscription page like this:

WebSocket_Trial

Image 3: WebSocket Trial

Then, you need to click the START YOUR WEBSOCKET TRIAL button marked in red in the above image. 

You will be automatically redirected to the page shown below. You can get the Streaming API Key from this page (Marked in red in the image below). Usually, the Streaming API Key appears on your dashboard in the area marked in blue in Image 1 above.

Stream_API-Key

Image 4: Streaming API Key on Dashboard

Download the Required Chrome Extension

To check if your WebSocket Key is working, install the Smart WebSocket Client chrome extension available on the Chrome Web Store. You can click on the link to open the Smart WebSocket Client extension. As you open this webpage in your browser, please click the Add to Chrome button to download the Chrome extension.

Smart-WebSocket-Client

Image 5: Smart WebSocket Client Extension

To move further, please keep the Smart WebSocket Client chrome extension and our WebSocket Documentation page open in your browser. 

Steps to Check Your WebSocket Key

Now, let us understand some simple steps to check your WebSocket Key in your browser. As mentioned above, as you open the Smart WebSocket Client, it looks like this:

WebSocket-Extension-Page

Image 6: Smart WebSocket Client Extension Page on Browser

Establish a Connection

As you open our WebSocket documentation page, you can find the WebSocket Address (URL), as shown below:

WS_URL1

Image 7: WebSocket URL on Documentation Page

Enter the URL with the protocol as shown below. Use the box denoted by the blue arrow in image 6 above. Then, click the Connect button to connect with the TraderMade server.


wss://marketdata.tradermade.com/feedadv


You will see a Connected message in the row denoted by the green arrow in Image 6 above.

Connected

Image 8: Connected Message on Smart WebSocket Client

Send Your Request

You can find the command line you need to send as a request on our WebSocket Documentation page, marked in red in the below image:

WS_Request3

Image 9: Command for Request on WebSocket Documentation Page

You need to enter your Streaming API Key obtained earlier, replacing streaming_api_key. Similarly, you can choose the desired currency pair symbols to check if you get real-time rates. I am using EURUSD and GBPUSD for this example.

Importantly, you need to type the following command line (with your Streaming API Key and desired currency pairs) in the row denoted by the red arrow in Image 6 above. Then, click the Send button.


{"userKey":"streaming_api_key", "symbol":"EURUSD,GBPUSD"}


Get Real-Time Forex Prices

As you click the Send button, you should receive a response showing lightning-fast real-time Bid, Ask, and Mid price feed of the currency pairs you entered in the request, similar to as marked in red in the below image. Please note that the response appears from the row denoted by the green arrow in Image 6 above.

RealTimeRates1

Image 10: Real-Time Forex Rates

If you get the real-time rates, it implies that your WebSocket Key is working. Please note that you should click the Disconnect button before sending another request. 

We hope you can conveniently check your WebSocket Key following the simple steps covered in this tutorial. 

For any technical queries and suggestions, please feel free to contact us through email or live chat. Our market data experts are keen to hear from you and happy to resolve your queries.