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
| Name | Type | Note |
|---|---|---|
cursor | string | Optional. 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. |
limit | integer | Optional. The most rows to return. Default 50. |
sh
curl -sS "$FIATLESS_URL/api/v1/networks" \
-H "Authorization: Bearer $FIATLESS_KEY"Responses
| Status | Meaning |
|---|---|
200 | One page of networks. |
400 | A 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. |
401 | No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate. |
403 | The key lacks the scope this call needs. The code is permission_denied. |
500 | The install failed; the details stay in its logs. The code is internal_error. |
200 OK
| Field | Type | Note |
|---|---|---|
data | object[] | |
data[].id | uuid | |
data[].code | string | What 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[].family | enum | The 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[].name | string | The network's name for people, a test network's own name included. |
data[].native_symbol | string | The symbol of the coin the network's fees are paid in. |
data[].testnet | boolean | True on a test network, whose coins have no value. |
data[].explorer_tx_url | string or null | A transaction's page on a block explorer, {tx_hash} standing for the transaction's tx_hash; null when the operator set none. |
data[].confirmations | object | |
data[].confirmations.required | integer | The blocks that must include or follow a payment before it is confirmed and credited; a transaction's confirmations.required. |
data[].address_type | enum | The 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_cursor | string or null | Pass 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
| Name | Type | Note |
|---|---|---|
cursor | string | Optional. 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. |
limit | integer | Optional. The most rows to return. Default 50. |
network | string | Optional. 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. |
code | string | Optional. 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
| Status | Meaning |
|---|---|
200 | One page of assets. |
400 | A 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. |
401 | No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate. |
403 | The key lacks the scope this call needs. The code is permission_denied. |
500 | The install failed; the details stay in its logs. The code is internal_error. |
200 OK
| Field | Type | Note |
|---|---|---|
data | object[] | |
data[].id | uuid | The asset's identity; two assets of one network can share a code. |
data[].code | string | The 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[].network | string | The code of the asset's network. |
data[].network_id | uuid | |
data[].standard | enum | One of native, evm_erc20, tron_trc20, solana_spl, xrpl_issued. |
data[].symbol | string | |
data[].name | string | |
data[].logo_url | string or null | A path on the install's own origin, such as /static/btc.svg; null when the coin has no logo. |
data[].decimals | integer or null | The 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_identity | any or null | Null for a network's native coin. |
data[].capabilities | object | What the asset can be used for now, on this install. |
data[].capabilities.deposit | boolean | A payment of it to a customer address is credited. |
data[].capabilities.payout | boolean | A payout can send it. |
next_cursor | string or null | Pass 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
| Name | Type | Note |
|---|---|---|
codes | string[] | 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
| Status | Meaning |
|---|---|
200 | USD rates with their sources and the state of each provider. Headers: Cache-Control. |
400 | A 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. |
401 | No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate. |
403 | The key lacks the scope this call needs. The code is permission_denied. |
500 | The install failed; the details stay in its logs. The code is internal_error. |
503 | Stored 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
| Field | Type | Note |
|---|---|---|
data | object[] | |
data[].code | string | A 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_usd | string or null | Positive exact decimal string for fresh or degraded rates. Null for disputed, stale or unavailable rates; never synthesized as zero. |
data[].status | enum | fresh: 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[].sources | enum[] | Providers contributing to price; excludes stale or rejected outliers. One of kraken, bitfinex, bitstamp, gemini, btse. |
data[].as_of | date-time or null | Oldest contributing source timestamp; null for an untimed display price or no price. |
data[].expires_at | date-time or null | When 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[].observations | object[] | Latest valid stored observation per provider, including stale or outlying evidence. |
data[].observations[].code | string | A 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[].provider | enum | One of kraken, bitfinex, bitstamp, gemini, btse. |
data[].observations[].instrument | string | Explicit provider-specific market or coin identifier. |
data[].observations[].price_usd | string | Positive USD value per coin, preserved as an exact decimal string. |
data[].observations[].source_updated_at | date-time or null | When 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_at | date-time | When Fiatless received this provider observation. |
providers | object[] | |
providers[].provider | enum | One of kraken, bitfinex, bitstamp, gemini, btse. |
providers[].last_attempt_at | date-time or null | |
providers[].last_success_at | date-time or null | Successful collection time, not proof that every coin has a fresh price. |
providers[].next_poll_at | date-time or null | |
providers[].last_error_code | string or null | Safe provider failure classification; null when no error is recorded. |
providers[].consecutive_failures | integer | |
sources | object[] | 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[].code | string | A 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[].provider | enum | One of kraken, bitfinex, bitstamp, gemini, btse. |
sources[].enabled | boolean | False means this pair contributes to no status, quorum, price or peer median. Its observations are still collected and still listed. |
sources[].reason | string or null | outlier 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_price | string or null | The price this source reported when it was suspended. Null unless a collector suspension stands. |
sources[].peer_median | string or null | The median its peers agreed on at that moment. Null unless a collector suspension stands. |
sources[].peer_count | integer or null | How many fresh sources, this one included, that median was taken over. Null unless a collector suspension stands. |
sources[].deviation_bps | integer or null | Distance from that median in basis points. Null unless a collector suspension stands. |
sources[].changed_at | date-time or null | Database time of the last state change; null for a pair never changed. |
sources[].changed_by | string or null | collector for an automatic suspension or return, operator:<api-key-id> for a person's decision. Null for a pair never changed. |
collection_enabled | boolean | Whether this install collects rates; stored rates stay readable when it does not. |