@cantarell/sdk v2.4.0
Build the Physics of Fuel
Integrate directly into the Cantarell OS Protocol. Access real-time spot pricing, automate CRE compliance, and trigger terminal manifest WebHooks in milliseconds.
execute_trade.ts
import{ Cantarell }from'@cantarell/sdk';constclient =newCantarell({
apiKey: process.env.CANTARELL_API_KEY,
environment: 'production'
});
// Execute across any global marketconsttrade =awaitclient.markets.execute({
nodeId: 'ARA_RTM_01',
commodity: 'VLSFO',
volumeMT: 5000,
market: 'emea'
});
console.log(`Executed in ${trade.market} at ${trade.pricePerMT}`);
Market Data API
Stream real-time terminal prices, volume depth, and historical execution graphs via WebSocket.
Logistics Webhooks
Receive instant POST requests when trucks pass geofences, manifests are signed, or payments settle.
Identity & Compliance
Embed CRE/SAT invoice signing and automated partner KYC validations into your internal ERP.