### Try out the VortexaSDK¶

First let's import our requirements

In [ ]:
from datetime import datetime
import vortexasdk as v


Lets use the CargoTimeSeries endpoint to answer the following question:

• What was the monthly average barrels per day of crude loaded from Rotterdam over the last year?

First we'll find the IDs corresponding to Rotterdam and Crude

In [ ]:
rotterdam = [g.id for g in v.Geographies().search("Rotterdam", exact_term_match=True).to_list()]

In [ ]:
crude = [p.id for p in v.Products().search("Crude", exact_term_match=True).to_list()]

In [ ]:
search_result = v.CargoTimeSeries().search(
timeseries_unit='bpd',
timeseries_frequency='month',
filter_origins=rotterdam,
filter_products=crude,

df = search_result.to_df()

df.head()