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? image

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @neri.wong01,

    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:

    image

Answers