First let's import our requirements
from datetime import datetime
import vortexasdk as v
Ton days demand of vessels from the Middle East over the last 7 days.
You'll need to enter your Vortexa API key when prompted.
df = v.FleetUtilisationQuantityTimeseries().search(
filter_time_min=datetime(2021, 1, 11),
filter_time_max=datetime(2021, 1, 18),
filter_vessel_status="vessel_status_laden_known",
filter_origins="80aa9e4f3014c3d96559c8e642157edbb2b684ea0144ed76cd20b3af75110877",
timeseries_property="quantity",
timeseries_frequency="day",
timeseries_unit="t"
).to_df()
df.head()
That's it! You've successfully loaded data using the Vortexa SDK. Check out https://vortechsa.github.io/python-sdk/ for more examples