Skip to content

Catalog ​

List networks ​

listNetworks · GET /api/v1/networks · scope ledger:read

Returns every network your install has turned on, EVM networks the operator added included. Each one carries the confirmations a payment needs. Every request that takes a network takes its code or its id.

Query

NameTypeNote
cursorstringOptional. The previous page's next_cursor, passed back as received. Send the same filters with it; limit may change between pages. A cursor never expires. A malformed one answers 400 with invalid_request.
limitintegerOptional. The most rows to return. Default 50.
sh
curl -sS "$FIATLESS_URL/api/v1/networks" \
  -H "Authorization: Bearer $FIATLESS_KEY"

Responses

StatusMeaning
200One page of networks.
400A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required.
401No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate.
403The key lacks the scope this call needs. The code is permission_denied.
500The install failed; the details stay in its logs. The code is internal_error.

200 OK

FieldTypeNote
dataobject[]
data[].iduuid
data[].codestringWhat every request that takes a network takes in place of its id: tron, ethereum, bsc, bitcoin, solana, xrpl, or evm-<chain id> for an EVM network the operator added. An install runs one network of each code, so the code is the same on a testnet install and a mainnet one.
data[].familyenumThe family whose rules the network follows: its address format, its tokens, and what a payout's destination may carry, such as a tag on xrpl and a wallet_owner for a token on solana. One of evm, tron, bitcoin, solana, xrpl.
data[].namestringThe network's name for people, a test network's own name included.
data[].native_symbolstringThe symbol of the coin the network's fees are paid in.
data[].testnetbooleanTrue on a test network, whose coins have no value.
data[].explorer_tx_urlstring or nullA transaction's page on a block explorer, {tx_hash} standing for the transaction's tx_hash; null when the operator set none.
data[].confirmationsobject
data[].confirmations.requiredintegerThe blocks that must include or follow a payment before it is confirmed and credited; a transaction's confirmations.required.
data[].address_typeenumThe type of every customer address this install issues on the network: on Bitcoin the install's one type, p2tr by default. One of p2sh, bech32, p2tr, evm_hex, tron_base58check, solana_base58, xrpl_classic.
next_cursorstring or nullPass it back as cursor for the next page; null on the last page.

List assets ​

listAssets · GET /api/v1/assets · scope ledger:read

Lists the assets you can use: every asset belongs to one network, and one the operator has not enabled yet is not listed. code=usdt&network=tron finds USDT on TRON.

A capability is true only while the install runs that workflow for the asset.

Query

NameTypeNote
cursorstringOptional. The previous page's next_cursor, passed back as received. Send the same filters with it; limit may change between pages. A cursor never expires. A malformed one answers 400 with invalid_request.
limitintegerOptional. The most rows to return. Default 50.
networkstringOptional. A network's code, in any case, or its id, from listNetworks. A code names the network this install runs for it, so the same code works on a testnet install and a mainnet one. One that names no network of this install answers 400 with error.field.
codestringOptional. A coin's code, in any case. One network can list two assets of one code, such as a token and its bridged copy. A code no coin of this install has answers 400 with error.field.
sh
curl -sS "$FIATLESS_URL/api/v1/assets" \
  -H "Authorization: Bearer $FIATLESS_KEY"

Responses

StatusMeaning
200One page of assets.
400A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required.
401No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate.
403The key lacks the scope this call needs. The code is permission_denied.
500The install failed; the details stay in its logs. The code is internal_error.

200 OK

FieldTypeNote
dataobject[]
data[].iduuidThe asset's identity; two assets of one network can share a code.
data[].codestringThe coin's code, the same on every network that carries it, and the code listRates keys its rate by. Requests compare it without regard to case.
data[].networkstringThe code of the asset's network.
data[].network_iduuid
data[].standardenumOne of native, evm_erc20, tron_trc20, solana_spl, xrpl_issued.
data[].symbolstring
data[].namestring
data[].logo_urlstring or nullA path on the install's own origin, such as /static/btc.svg; null when the coin has no logo.
data[].decimalsinteger or nullThe decimal places an amount of the asset may have. Null only for an XRPL issued currency, whose amounts are decimals of their own.
data[].onchain_identityany or nullNull for a network's native coin.
data[].capabilitiesobjectWhat the asset can be used for now, on this install.
data[].capabilities.depositbooleanA payment of it to a customer address is credited.
data[].capabilities.payoutbooleanA payout can send it.
next_cursorstring or nullPass it back as cursor for the next page; null on the last page.

List USD rates ​

listRates · GET /api/v1/rates · scope ledger:read

Returns the stored USD rate of each coin that has an asset on a network this install runs, with the providers behind it. This call never asks a provider. An asset's code from listAssets is its coin's code here; a symbol alone does not say which coin it is.

Without codes, every such coin is listed, including coins with no rate. codes takes up to 100 codes, comma-separated, compared without regard to case. An empty or unknown code, a code repeated in any case, a repeated parameter or an unknown parameter is refused.

A missing, stale or disputed rate has a null price. A degraded price comes from one source. A rate is a reference, never a quote: it changes no balance and no payout. Rates still go stale while collection_enabled is false.

Query

NameTypeNote
codesstring[]Optional. Coin codes, comma-separated, in any case; omit it for every coin this install quotes.
sh
curl -sS "$FIATLESS_URL/api/v1/rates" \
  -H "Authorization: Bearer $FIATLESS_KEY"

Responses

StatusMeaning
200USD rates with their sources and the state of each provider. Headers: Cache-Control.
400A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required.
401No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate.
403The key lacks the scope this call needs. The code is permission_denied.
500The install failed; the details stay in its logs. The code is internal_error.
503Stored rates could not be read. The code is rates_unavailable. A coin with no fresh rate is not this error: it comes back in a 200.

200 OK

FieldTypeNote
dataobject[]
data[].codestringA coin code as stored. A request may send it in any case. At most 128 UTF-8 bytes, with no whitespace, control characters or commas.
data[].price_usdstring or nullPositive exact decimal string for fresh or degraded rates. Null for disputed, stale or unavailable rates; never synthesized as zero.
data[].statusenumfresh: at least two recent timestamped providers agree within policy. degraded: a single recent source. disputed: recent timestamped sources disagree beyond policy. stale: observations exist but have expired. unavailable: no valid observation. Quality and expiry are evaluated on every read. One of fresh, degraded, disputed, stale, unavailable.
data[].sourcesenum[]Providers contributing to price; excludes stale or rejected outliers. One of kraken, bitfinex, bitstamp, gemini, btse.
data[].as_ofdate-time or nullOldest contributing source timestamp; null for an untimed display price or no price.
data[].expires_atdate-time or nullWhen the oldest contributing observation expires under the install's rate policy. Null when there is no usable price. Averaging observations never renews their age.
data[].observationsobject[]Latest valid stored observation per provider, including stale or outlying evidence.
data[].observations[].codestringA coin code as stored. A request may send it in any case. At most 128 UTF-8 bytes, with no whitespace, control characters or commas.
data[].observations[].providerenumOne of kraken, bitfinex, bitstamp, gemini, btse.
data[].observations[].instrumentstringExplicit provider-specific market or coin identifier.
data[].observations[].price_usdstringPositive USD value per coin, preserved as an exact decimal string.
data[].observations[].source_updated_atdate-time or nullWhen the market traded, as the provider says; every provider here supplies its latest trade's time. Null only for a source that supplies none, which may back a degraded price but no fresh one; receipt time is never substituted.
data[].observations[].received_atdate-timeWhen Fiatless received this provider observation.
providersobject[]
providers[].providerenumOne of kraken, bitfinex, bitstamp, gemini, btse.
providers[].last_attempt_atdate-time or null
providers[].last_success_atdate-time or nullSuccessful collection time, not proof that every coin has a fresh price.
providers[].next_poll_atdate-time or null
providers[].last_error_codestring or nullSafe provider failure classification; null when no error is recorded.
providers[].consecutive_failuresinteger
sourcesobject[]One entry per mapped (coin, provider) pair, whatever its state, and never filtered by codes: an operator clearing a suspension must be able to find it without first guessing its coin.
sources[].codestringA coin code as stored. A request may send it in any case. At most 128 UTF-8 bytes, with no whitespace, control characters or commas.
sources[].providerenumOne of kraken, bitfinex, bitstamp, gemini, btse.
sources[].enabledbooleanFalse means this pair contributes to no status, quorum, price or peer median. Its observations are still collected and still listed.
sources[].reasonstring or nulloutlier when the collector suspended it, recovered when the collector returned it after its price stayed within half the allowed deviation of its peers for 30 minutes; free operator text when a person decided. Null for a pair whose state has never been changed.
sources[].observed_pricestring or nullThe price this source reported when it was suspended. Null unless a collector suspension stands.
sources[].peer_medianstring or nullThe median its peers agreed on at that moment. Null unless a collector suspension stands.
sources[].peer_countinteger or nullHow many fresh sources, this one included, that median was taken over. Null unless a collector suspension stands.
sources[].deviation_bpsinteger or nullDistance from that median in basis points. Null unless a collector suspension stands.
sources[].changed_atdate-time or nullDatabase time of the last state change; null for a pair never changed.
sources[].changed_bystring or nullcollector for an automatic suspension or return, operator:<api-key-id> for a person's decision. Null for a pair never changed.
collection_enabledbooleanWhether this install collects rates; stored rates stay readable when it does not.