Get an exact price quote for a resource, volume and duration
GET
/api/v1/pricing/quote
const url = 'https://trongas.ai/api/v1/pricing/quote';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://trongas.ai/api/v1/pricing/quoteExact price (TRX) for a specific resource (energy/bandwidth), volume and duration (15m/1h/1d) — same formula as a real order. priceTrx is the live provider price with no commission — anonymous endpoints don’t disclose our per-transaction fee; the itemized total is only shown to the authenticated owner of an order/automation preview. Per-user individual prices are not applied here (anonymous). Public — no API key required.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”resource
string
duration
string
volume
integer | string format: int64
Responses
Section titled “Responses”OK
object
priceTrx
required
string
object
priceTrx
required
string
Examplegenerated
{ "priceTrx": "example"}object
priceTrx
required
string
Examplegenerated
{ "priceTrx": "example"}Bad Request
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}