First let's import our requirements
from datetime import datetime
import vortexasdk as v
Ton days supply (ballast) of vessels originating from the Middle East by daily frequency over the last 7 days, by origin_country
breakdown.
You'll need to enter your Vortexa API key when prompted.
df = v.FleetUtilisationCapacityTimeseries().search(
filter_vessel_status="vessel_status_ballast",
filter_time_min=datetime(2021, 1, 11),
filter_time_max=datetime(2021, 1, 18),
timeseries_frequency="day",
filter_origins="80aa9e4f3014c3d96559c8e642157edbb2b684ea0144ed76cd20b3af75110877",
timeseries_property="origin_country"
).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