About VortexaSDK Endpoints
The endpoints module allows you to query Vortexa's data.
The VortexaSDK currently contains the following endpoints:
- Cargo Movements
- Voyages
- Charterers
- Geographies
- Products
- Vessels
- Cargo Time Series
- EIA Forecasts
- Tonne-miles
- Vessel Availability
- Crude Onshore Inventories
- Freight Pricing
- Vessel Summary
- Vessel Positions
- Canal transit
- Canal transit Time Series
Each endpoint offers either one, or both, of two different functionalities:
- Lookup by ID. Retrieve an object matching a certain id. In sql speak this is the equivalent of
SELECT * FROM vessels WHERE id = 12345;
- Search. Retrieve a number of objects matching given search parameters. In sql speak this is the equivalent of
SELECT * FROM vessels WHERE name ~* 'ocean' AND vessel_class = 'vlcc';
Let's explain with some examples:
Find all aframax vessels
from vortexasdk import Vessels
df = Vessels().search(vessel_classes='oil_aframax').to_df()
Find the vessel that has with id 12345
vessel = Vessels().reference(id='12345')