Querying Spot Prices
Spot prices are retrieved with the latestSpotPrices query. It returns the latest available price for every port and fuel grade combination. Prices are updated every hour, and publishedDate shows when each price was published. The query accepts an optional input to narrow the results:
latestSpotPrices(input: PriceQueryInputs): [FuelPortProfilePricePoint!]!
PriceQueryInputs lets you filter the results:
fuelGradeIds- one or more fuel grade IDs such asmgoorvlsfo(see Fuel Grades for the full list;biofuelreturns all three biofuel blends). Omit to get all fuel grades.portIds- one or more port IDs (lowercase UN/LOCODE, e.g.sgsinfor Singapore). Omit to get all ports.
Each result includes the port, the fuelGrade, and the latestPrices for that combination - the published date and price, plus the optional confidence band (band68Lower / band68Upper).
See the samples page for ready-to-run queries, including how to filter by fuel grade, by port, by both at once, additional useful fields, and how to list ports.