First let's import our requirements
from datetime import datetime import vortexasdk as v
Now let's look at the breakdown by origin terminal of cargoes departing from the port of origin over the last 5 days, in tonnes.
You'll need to enter your Vortexa API key when prompted.
df = v.OriginBreakdown()\ .search(filter_activity="loading_end", breakdown_geography="terminal", breakdown_unit="t", breakdown_size=5, filter_time_min=datetime(2019, 11, 10), filter_time_max=datetime(2019, 11, 15) ).to_df()