Skip to content

Get an exact price quote for a resource, volume and duration

GET
/api/v1/pricing/quote
curl --request GET \
--url 'https://trongas.ai/api/v1/pricing/quote?resource=energy&duration=example&volume=1'

Exact 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.

resource
required
string
Allowed values: energy bandwidth

energy or bandwidth. Defaults to energy where optional.

duration
required
string

Rental period, e.g. 15m, 1h, 1d. Allowed values per resource: see GET /orders/options.

volume
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/

Amount of the resource: energy units or bandwidth bytes. Limits: see GET /orders/options (orders) or GET /automations/options (automations).

OK

object
priceTrx
required
string

Bad Request

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code

Machine-readable error code, e.g. wallet.insufficient_balance. Branch on this, not on title. Always present: validation_failed for request validation (400, with per-field errors), unauthorized for 401, domain codes otherwise.

null | string