What can you do with sentiment data?

In this article, find some easy ways to explore FXCM’s sentiment data using Python and Pandas.

First download the sentiment data from FXCM’s website into a Pandas DataFrame:

import datetime
import pandas as pd
url = ‘https://sampledata.fxcorporate.com/sentiment/EURUSD.csv.gz
data = pd.read_csv(url, compression=‘gzip’, index_col=‘DateTime’, parse_dates=True)

Now you can begin the data exploration process by printing descriptive statistics and creating charts to visualize the data. In the article we also look at downloading corresponding candlestick data to compare prices to sentiment. Read the full article below!