#!/usr/bin/env python # coding: utf-8 # ### Try out the VortexaSDK # First let's import our requirements # In[ ]: from datetime import datetime import vortexasdk as v # Utilisation of laden vessels carrying Crude/Condensate, between Middle East and China over the last 7 days, by vessel_class breakdown. # You'll need to enter your Vortexa API key when prompted. # In[ ]: df = v.FleetUtilisationTimeseries().search( filter_time_min=datetime(2021, 1, 11), filter_time_max=datetime(2021, 1, 18), filter_vessel_status="vessel_status_laden_known", filter_products="54af755a090118dcf9b0724c9a4e9f14745c26165385ffa7f1445bc768f06f11", filter_origins="80aa9e4f3014c3d96559c8e642157edbb2b684ea0144ed76cd20b3af75110877", filter_destinations="934c47f36c16a58d68ef5e007e62a23f5f036ee3f3d1f5f85a48c572b90ad8b2", timeseries_property="vessel_class", timeseries_frequency="day", ).to_df() # In[ ]: 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