Skip to main content

Spot Price Example

To fetch the spot price for MGO (Marine Gas Oil) at the Singapore port (port ID: "sgsin"), you can use the following query. The JavaScript and Python tabs assume you already have an access token (accessToken in JavaScript, access_token in Python) from the Authentication guide.

query spotPrice {
latestSpotPrices(input: { portIds: ["sgsin"], fuelGradeIds: ["mgo"] }) {
port {
id
name
}
fuelGrade {
id
description
}
latestPrices {
publishedDate
price
band68Lower
band68Upper
}
}
}

This query fetches the latest MGO spot price for Singapore, including the published date, and returns the confidence band (band68Lower / band68Upper) around the price when one is available - otherwise these fields are null.