C# code to retrieve Vessel information by Name or Vessel Code

Hello Friend

Good day

I wanna ask how to code in C# to retrieve the Vessel data by name or by vessel code.

Example is I want find the vessel information like type, previous port, current location, destination, etc from this parameter: vessel name = Clipper Freeport or vessel code = C}KY7309846678

May be some of sample code to download and try.

Thanks

regards,

THEN ARIFIN

Best Answer

Answers

  • Ok thanks, Zhenya

  • Or may be someone have sample code or what parameters I should key-in to retrieve list of information like previous port, current location, destination, etc

    Thanks

  • Ok thanks, Zhenya

  • The best way to discover field names and parameters is by using Data Item Browser app in Eikon or Formula Builder in Eikon Excel. Use C}KY7309846678 as instrument and browse or search for the fields available and the parameters applicable for each field. E.g. for the data items you mentioned use field names TR.AssetLocation, TR.AssetDestinationPort, TR.AssetPreviousPort.
    In the example from the tutorial mentioned by @Zhenya Kovalyov you can use these inputs in Step #3: Asset Class: C}KY7309846678, Field List: TR.AssetLocation;TR.AssetDestinationPort;TR.AssetPreviousPort.

  • Thanks @Alex Putkov. Very clear explanation. Thank you.