Schema
The schema is built around four concepts:
- Port - a bunkering location, identified by its UN/LOCODE (e.g.
sgsin). - Fuel grade - a fuel product such as
mgo,vlsfoorhsfo. - Fuel port profile - one port and fuel grade pair. This is the unit Tideform prices.
- Price symbol - a price series for a fuel port profile (spot or fixed forward), with its latest price and its history.
IDs are lowercase. The API returns port, fuel grade and price symbol IDs in lowercase (for example sgsin, mgo and bx-sgsin-mgo-spot-stable), so send them in lowercase too. latestSpotPrices, latestFixedForwardPrices, port and portsByIds also accept uppercase IDs, but fuelPortProfile, priceSymbol and eq filters (such as ports(filter: { portCode: { eq: "sgsin" } })) only match the exact lowercase ID.
For example, this is how they connect for MGO in Singapore:
Most queries start from a port, a fuel grade, or a port and fuel grade pair, and follow these relationships to the prices you need.
Dates and Times
All dates and times are in UTC.
Sending a date or time (for example in startDateTime and endDateTime): use ISO 8601 without a time zone offset.
| You send | Means |
|---|---|
"2026-10-31T23:59:59" | 31 October 2026, 23:59:59 UTC |
"2026-10-31T14:30" | 31 October 2026, 14:30:00 UTC |
"2026-10-31" | 31 October 2026, 00:00:00 UTC (midnight at the start of the day) |
Any offset you add is ignored rather than converted: "2026-10-31T23:59:59+02:00" is read as 23:59:59 UTC. Convert local times to UTC before sending them.
Reading a date or time: every date-time is returned as YYYY-MM-DDTHH:MM:SS in UTC, in whole seconds and without an offset, for example "2026-11-11T19:30:09". Daily candle fields (timeWindowStart, effectiveDate) are dates only: "2026-11-10". Treat every value as UTC.
Ports
Look up one port with port, several known ports with portsByIds, or search and filter all ports (by name, code or country name) with ports.
To list the fuel grades priced at a port, use the port's fuelPortProfiles field. It returns one fuel port profile per priced fuel grade, sorted by fuel grade ID, 10 per page by default: port(id: "sgsin") { fuelPortProfiles { totalCount edges { node { fuelGrade { id } spot { id } } } } }.
| Field | Type | Description |
|---|---|---|
id | Text | 5-character UN/LOCODE in lowercase, e.g. sgsin, nlrtm |
name | Text | Full port name, e.g. Singapore |
country | Text | Two-letter ISO 3166-1 country code, e.g. SG |
countryName | Text | Full country name, e.g. Singapore |
locationCode | Text | Last three characters of the UN/LOCODE, e.g. SIN |
coordinates | Latitude and longitude | Port position in decimal degrees. Can be empty. |
timeZone | Time zone | IANA time zone name and UTC offset |
GraphQL definition
type Query {
port(id: ID!): Port
ports(first: Int, last: Int, after: String, before: String, filter: PortFilter): PortConnection!
portsByIds(ids: [ID!]!): [Port!]!
}
type Port {
id: ID! # UN/LOCODE in lowercase, e.g. "sgsin"
name: String!
country: String!
countryName: String!
locationCode: String!
coordinates: Coordinates # { latitude, longitude }
timeZone: TimeZone # { name, offset }
fuelPortProfile(fuelGradeId: ID!): FuelPortProfile
fuelPortProfiles(first: Int, last: Int, after: String, before: String): FuelPortProfileConnection!
}
input PortFilter {
search: String # similarity match on name or LOCODE, tolerates typos, best match first
name: StringFilter
portCode: StringFilter # LOCODE in lowercase, e.g. "sgsin"
country: StringFilter # country name, e.g. "Singapore" (not the ISO code)
hasCoordinates: Boolean
hasTimezone: Boolean
}
input StringFilter { # set eq or fuzzy, not both
eq: String # exact, case-sensitive match
fuzzy: String # case-insensitive "contains" match
}
Fuel Grades
Tideform prices these fuel grades. Use the ID to filter prices with fuelGradeIds or to look up a fuel port profile.
| ID | Fuel grade | Spot prices | Fixed forward prices |
|---|---|---|---|
mgo | Marine Gas Oil (MGO) | Yes | Yes |
vlsfo | Very Low Sulfur Fuel Oil (VLSFO) | Yes | Yes |
hsfo | High Sulfur Fuel Oil (HSFO) | Yes | Yes |
mgo_biofuel | MGO mixed with Biofuel | Selected ports | No |
vlsfo_biofuel | VLSFO mixed with Biofuel | Selected ports | No |
hsfo_biofuel | HSFO mixed with Biofuel | Selected ports | No |
lng | Liquefied Natural Gas (LNG), priced per MWh | Selected ports | No |
lng_index | Liquefied Natural Gas (LNG) Index, priced per MWh | Selected ports | No |
In latestSpotPrices, fuelGradeIds: ["biofuel"] is a shortcut for the three biofuel blends. The results carry the blend's own ID, for example mgo_biofuel. To see which grades are priced at a specific port, use Port.fuelPortProfiles.
Every price result includes its fuel grade with these fields:
| Field | Type | Description |
|---|---|---|
id | Text | Fuel grade ID from the table above, e.g. mgo |
gradeName | Text | Name of the grade, e.g. Marine Gas Oil |
description | Text | Full descriptive name of the grade, e.g. Marine Gas Oil (MGO) |
GraphQL definition
type FuelGrade {
id: ID! # e.g. "mgo", "vlsfo", "hsfo"
gradeName: String!
description: String!
}
Fuel Port Profiles
Get the profile for one port and fuel grade pair with fuelPortProfile. You can also reach it from a port with Port.fuelPortProfile(fuelGradeId), for example port(id: "sgsin") { fuelPortProfile(fuelGradeId: "mgo") { spot { id } } }.
| Field | Type | Description |
|---|---|---|
port | Port | The port |
fuelGrade | Fuel grade | The fuel grade |
spot | Price symbol | The best available spot price series for this pair. Can be empty. |
fixedForward | Price symbol | The best available fixed forward price series for this pair. Can be empty. |
GraphQL definition
type Query {
fuelPortProfile(portId: String, fuelGradeId: String): FuelPortProfile
}
type FuelPortProfile {
port: Port!
fuelGrade: FuelGrade!
spot: PriceSymbol # shortcut to the best spot price symbol
fixedForward: PriceSymbol # shortcut to the best fixed forward price symbol
}
Spot & Forward Prices
latestSpotPrices and latestFixedForwardPrices return the most recent prices for many port and fuel grade pairs in one request. latestFixedForwardPrices and the fixedForward price symbol are available only if your organization has access to fixed forward prices. Filter by portIds and fuelGradeIds, or leave either out to include all. Results are sorted by port ID, then fuel grade ID. For spot prices, latestPrices holds exactly one price. For fixed forward prices it holds the 24 forward months of the latest publish in no fixed order, so sort them by relativeDate.count or effectiveDate. Each result contains the port, the fuel grade, and a list of prices with these fields:
| Field | Type | Description |
|---|---|---|
publishedDate | Date and time | When the price was published |
effectiveDate | Date and time | Forward prices: the month the price applies to, given as the first day of that month. Each publish produces 24 forward prices, one per effective date. For spot prices it always equals publishedDate. |
relativeDate | Count and unit | Forward prices: how far ahead of the published month the effective date is, as { count, unit: Month } with count from 1 to 24 (e.g. { count: 3, unit: Month }). Spot prices always return { count: 0, unit: Day }. |
price | Number | The price, in the stated currency and unit |
currency | Text | Currency of the price |
unit | Unit | Unit of the price, e.g. metric tonne (MT) |
band68Lower, band68Upper | Number | Lower and upper bounds of the 68% confidence band. Spot prices only: always empty for fixed forward prices, and empty for spot pairs where no band is calculated. |
GraphQL definition
type Query {
latestSpotPrices(input: PriceQueryInputs): [FuelPortProfilePricePoint!]!
latestFixedForwardPrices(input: PriceQueryInputs): [FuelPortProfilePricePoint!]!
}
input PriceQueryInputs {
fuelGradeIds: [String!] # omit to get all fuel grades
portIds: [String!] # omit to get all ports
}
# FuelPortProfilePricePoint shape:
{
port: Port!
fuelGrade: FuelGrade!
latestPrices: [
{
publishedDate: DateTime!
effectiveDate: DateTime! # forward prices: one per forward point; equals publishedDate for spot
price: Float!
currency: String!
unit: Unit!
band68Lower: Float
band68Upper: Float
relativeDate: RelativeDate! # forward prices only vary this; always 0 for spot
}
]
}
type RelativeDate {
count: Int! # forward: 1 to 24; spot: 0
unit: RelativeDateUnit! # Month for forward, Day for spot
}
See Spot Prices and Forward Prices for details and samples.
Historical Data
History lives on the price symbol, in two forms: every published price (prices) and daily candles (historicalPrices), with one candle per day for spot prices and one per day per forward month for fixed forward prices. Reach a price symbol from a fuel port profile (spot or fixedForward), or directly with priceSymbol if you know its ID. prices and historicalPrices are available only if your organization has access to historical data.
| Field | Type | Description |
|---|---|---|
id | Text | Unique ID of the price series |
name | Text | Name of the price series |
currency | Text | Currency of all prices in the series |
unit | Unit | Unit of all prices in the series: MT (metric tonne), or MWh for LNG |
latestPrice | Price | The latest price. For spot symbols only: on a fixed forward symbol it returns one of the 24 months, not a specific one, so use latestPublishedPrices. |
latestPublishedPrices | List of prices | All prices at the latest publish time (all 24 for fixed forward prices, in no fixed order: sort by relativeDate.count) |
prices | List of prices | Every published price, filterable by publish date range |
historicalPrices | List of daily prices | Daily price history, filterable by date range. For fixed forward symbols, each day holds 24 candles, one per forward month. |
Each edge in historicalPrices is one day, and its node is a list of candles: one for spot symbols, 24 for fixed forward symbols (one per forward month). Each candle has these fields:
| Field | Type | Description |
|---|---|---|
timeWindowStart | Date and time | Start of the day this data point covers |
granularity | DAY | Length of the time window. Currently always DAY. |
effectiveDate | Date and time | Forward prices: the delivery month this candle belongs to, given as the first day of that month. For spot prices it equals timeWindowStart. |
relativeDate | Count and unit | Forward prices: how many months ahead the delivery month is, as { count, unit: Month } with count from 1 to 24. Spot prices always return { count: 0, unit: Day }. |
openPrice, highPrice, lowPrice, closePrice | Number | Opening, highest, lowest and closing price of the day |
meanPrice, medianPrice | Number | Average and median price of the day. Can be empty. |
finalized | Yes / no | Whether the day is closed. The current day is not finalized. |
For fixed forward symbols, candles with different relativeDate values are different delivery months: do not combine them into one series.
GraphQL definition
type Query {
priceSymbol(symbolId: ID!): PriceSymbol
}
type PriceSymbol {
id: ID!
currency: String!
unit: Unit! # MT, or MWh for LNG
name: String!
latestPrice: SymbolPrice
latestPublishedPrices: [SymbolPrice!]!
prices(
first: Int
last: Int
after: String
before: String
filter: PriceFilter
): SymbolPriceConnection!
historicalPrices(
granularity: HistoricalPriceGranularity!
first: Int
last: Int
after: String
before: String
filter: HistoricalPriceFilter
): HistoricalPriceConnection!
}
enum HistoricalPriceGranularity {
DAY
}
input PriceFilter {
startDateTime: DateTime # publish date from (inclusive), UTC
endDateTime: DateTime # publish date to (inclusive), UTC
relativeDate: RelativeDateInput # fixed forward prices only: one forward month, e.g. { count: 3, unit: Month }
}
input HistoricalPriceFilter {
startDateTime: DateTime # day from (inclusive), UTC
endDateTime: DateTime # day to (inclusive), UTC
}
# Each historical data point:
{
timeWindowStart: DateTime!
granularity: HistoricalPriceGranularity! # currently always DAY
effectiveDate: DateTime! # forward prices: the delivery month; equals timeWindowStart for spot
relativeDate: RelativeDate! # forward prices: 1 to 24 months ahead; always 0 for spot
openPrice: Float!
highPrice: Float!
lowPrice: Float!
closePrice: Float!
meanPrice: Float
medianPrice: Float
finalized: Boolean!
}
See Historical Data for details and samples.
Start from the entity you know (a port, a fuel grade, or a pair of both) and follow the fields from there.