First let's import our requirements
from datetime import datetime, timedelta, time
import vortexasdk as v
Lets use the CanalTransitTimeseries endpoint to answer the following question:
search_result = v.CanalTransitTimeseries().search(
metric="count_of_vessels",
timeseries_frequency="day",
time_max=datetime.combine(datetime.now(), time.max),
time_min=datetime.combine(datetime.now() - timedelta(days=1), time.min),
timeseries_activity="started_waiting"
)
df = search_result.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