Skip to main content

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, vlsfo or hsfo.
  • 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.
note

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 sendMeans
"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 } } } } }.

FieldTypeDescription
idText5-character UN/LOCODE in lowercase, e.g. sgsin, nlrtm
nameTextFull port name, e.g. Singapore
countryTextTwo-letter ISO 3166-1 country code, e.g. SG
countryNameTextFull country name, e.g. Singapore
locationCodeTextLast three characters of the UN/LOCODE, e.g. SIN
coordinatesLatitude and longitudePort position in decimal degrees. Can be empty.
timeZoneTime zoneIANA 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.

IDFuel gradeSpot pricesFixed forward prices
mgoMarine Gas Oil (MGO)YesYes
vlsfoVery Low Sulfur Fuel Oil (VLSFO)YesYes
hsfoHigh Sulfur Fuel Oil (HSFO)YesYes
mgo_biofuelMGO mixed with BiofuelSelected portsNo
vlsfo_biofuelVLSFO mixed with BiofuelSelected portsNo
hsfo_biofuelHSFO mixed with BiofuelSelected portsNo
lngLiquefied Natural Gas (LNG), priced per MWhSelected portsNo
lng_indexLiquefied Natural Gas (LNG) Index, priced per MWhSelected portsNo

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:

FieldTypeDescription
idTextFuel grade ID from the table above, e.g. mgo
gradeNameTextName of the grade, e.g. Marine Gas Oil
descriptionTextFull 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 } } }.

FieldTypeDescription
portPortThe port
fuelGradeFuel gradeThe fuel grade
spotPrice symbolThe best available spot price series for this pair. Can be empty.
fixedForwardPrice symbolThe 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:

FieldTypeDescription
publishedDateDate and timeWhen the price was published
effectiveDateDate and timeForward 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.
relativeDateCount and unitForward 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 }.
priceNumberThe price, in the stated currency and unit
currencyTextCurrency of the price
unitUnitUnit of the price, e.g. metric tonne (MT)
band68Lower, band68UpperNumberLower 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.

FieldTypeDescription
idTextUnique ID of the price series
nameTextName of the price series
currencyTextCurrency of all prices in the series
unitUnitUnit of all prices in the series: MT (metric tonne), or MWh for LNG
latestPricePriceThe 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.
latestPublishedPricesList of pricesAll prices at the latest publish time (all 24 for fixed forward prices, in no fixed order: sort by relativeDate.count)
pricesList of pricesEvery published price, filterable by publish date range
historicalPricesList of daily pricesDaily 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:

FieldTypeDescription
timeWindowStartDate and timeStart of the day this data point covers
granularityDAYLength of the time window. Currently always DAY.
effectiveDateDate and timeForward prices: the delivery month this candle belongs to, given as the first day of that month. For spot prices it equals timeWindowStart.
relativeDateCount and unitForward 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, closePriceNumberOpening, highest, lowest and closing price of the day
meanPrice, medianPriceNumberAverage and median price of the day. Can be empty.
finalizedYes / noWhether 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.