question

Upvotes
Accepted
5 2 2 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 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
13.7k 61 39 63

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 512.0 KiB each and 1.0 MiB total.

Dear @nick.zincone, your answer was really helpful for me.

But for Arrivals, how can you rewrite the filter?

capture.png

capture.png (30.6 KiB)
Upvotes
5 2 2 3

Hi @nick.zincone.1, thank you.

icon clock
10 |1500

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