question

Upvotes
Accepted
5 0 1 3

How can I get historical vessel activity in ports using RDP API Playground?

Attached report has historical data. Is there another view in RDP for that?

rdp-apihistorical
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
9.7k 49 38 60

Hi @neri.wong,

You can use the Refinitiv Data Libraries to retrieve vessel data from RDP. For example, the following Python code snippet is using the Search endpoint:

start_date = datetime.now() + relativedelta(days=-30)
df=rdp.search(
    view = rdp.SearchViews.VesselPhysicalAssets,
    query = "Rio Grande",
    filter = f"OriginDepartureDateTime gt {start_date.strftime('%Y-%m-%d')}",
    order_by = "OriginDepartureDateTime",
    select = "HullType, OriginDepartureDateTime, VesselStatus, IMO, Draft, DestinationPort, AssetName",
    top = 10
)

The output will look like this:


ahs.png (41.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
5 0 1 3

Hi @nick.zincone.1, thank you.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea