Inventories Cushing Drone

Note

available on platform : Platform.Liquids

class kpler.sdk.resources.inventories_cushing_drone.InventoriesCushingDrone(configuration, column_ids=True, log_level=None)[source]

The InventoriesCushingDrone endpoint returns crude inventories of Cushing for a specific periodicity over a chosen period of time.

get(start_date=None, end_date=None, period=None)[source]
Parameters
  • start_date – Optional[date] Start of the period (YYYY-MM-DD)

  • end_date – Optional[date] End of the period (YYYY-MM-DD)

  • period – Optional[Enum] InventoriesDronePeriod

Examples

>>> from datetime import date
... from kpler.sdk.resources.inventories_cushing_drone import InventoriesCushingDrone
... from kpler.sdk.enums import InventoriesDronePeriod
... inventories_tank_levels_client=InventoriesCushingDrone(config)
... inventories_tank_levels_client.get(
...     start_date=date(2021,6,14),
...     end_date=date(2021,8,14),
...     period=InventoriesDronePeriod.EiaWeeks
... )

Date

Level (kb)

Capacity (kb)

Capacity Utilization

2021-06-18

45695

96947

0.471

2021-06-25

44200

96947

0.456

2021-07-02

43685

96947

0.451

2021-07-09

42424

96947

0.438

2021-07-16

40684

96947

0.420

2021-07-23

39366

97353

0.404

2021-07-30

39993

97353

0.401

2021-08-06

39652

97353

0.407

2021-08-13

37919

97569

0.389

class kpler.sdk.enums.InventoriesDronePeriod(value)[source]
Days = 'days'
EiaWeeks = 'eia'
MidWeeks = 'midweeks'