Currencies

Look up active currencies, exchange rates, market data and supported networks.

SpectroCoin provides a comprehensive suite of API endpoints for accessing detailed cryptocurrency and FIAT currency data. These endpoints enable seamless integration with applications requiring real-time pricing, market analysis, currency exchange rates, and network details. The platform also supports multi-network assets, allowing transactions across protocols such as ERC-20 and TRC-20. To view the full list of supported networks, jump to Supported Networks.

Endpoint overview

These endpoints are tailored for developers building financial dashboards, trading platforms, and analytics tools. Below is an overview of the available endpoints:

HTTP RequestDescription
GET /public/currencies/activeReturns a list of all active currencies (both crypto and fiat) available on SpectroCoin.
GET /public/currencies/ratesFetches the exchange rates for supported currencies in a certain period of time, including fiat-to-fiat, crypto-to-crypto, and crypto-to-fiat.
GET /public/currencies/{baseCurrencyCode}/detailsallows users to retrieve detailed information about currencies in relation to a specified base currency.
GET /public/currencies/networksRetrieves detailed information about cryptocurrency networks, including precision, default status, and availability.

The endpoints presented in this page are described in terms of use cases and how they can be applied in real life. For complete technical boilerplate, please refer to the dedicated API reference page for each endpoint by clicking on its link.


Supported currencies

Fetching all active currencies

Request URI:


Response body


Retrieving supported FIAT currencies

Request URI:


Response body


Retrieving supported crypto currencies

Request URI:


Response body


Retrieving historical exchange rates

A developer may need to fetch historical exchange rates between two currencies to display a graph or chart in a dashboard. Financial analysts or platforms may use this endpoint to pull historical currency exchange rates for longer periods (e.g., 6 months or 1 year). This data can then be used for creating financial reports, making comparisons, or deriving insights into currency performance.

By specifying the baseCurrencyCode, quoteCurrencyCode, and the period (e.g., 1W for one week or 1M for one month), the API provides historical data that can be plotted to show trends over time.

For example, retrieve the last 1 week of historical exchange rates for Cordano (ADA) against USD (United States Dollar):

Request URI:

GET /public/currencies/rates?baseCurrencyCode=ADA&period=1W&quoteCurrencyCode=USD

Response body:

[
    {
        "date": "2024-11-21",
        "value": "0.78733498025"
    },
    {
        "date": "2024-11-22",
        "value": "0.8248652"
    },
    {
        "date": "2024-11-23",
        "value": "1.0174433375"
    },
    {
        "date": "2024-11-24",
        "value": "1.06685951275"
    },
    {
        "date": "2024-11-25",
        "value": "1.0176564835"
    },
    {
        "date": "2024-11-26",
        "value": "0.944323308"
    },
    {
        "date": "2024-11-27",
        "value": "0.95633116800000000000000000000001"
    },
    {
        "date": "2024-11-28",
        "value": "1.012446799"
    }
]

Supported networks

Our platform supports a variety of blockchain networks. Below is a table listing the supported networks, along with their native or token standards.

BlockchainType
AlgorandNative
AvalancheC-Chain
BitcoinNative
Bitcoin CashNative
CardanoNative
DashNative
EthereumNative, ERC20, ERC223
LitecoinNative
NEAR ProtocolNative
NEMNative
PolkadotNative
RippleNative
SolanaNative
Stellar NetworkNative
TronNative, TRC20

Retrieving network details using API

The GET /public/currencies/networks endpoint allows developers to retrieve detailed information about the networks supported by SpectroCoin. This endpoint is especially useful to validate which networks can be used for a specific cryptocurrency and to keep the integration updated with the latest network configurations.

Getting all supported networks

To retrieve only the currently active and enabled networks, you can use the isEnabled=true query parameter. This ensures that only networks available for use are returned.

Request URI:

GET /public/currencies/networks?isEnabled=true

Response body:

[
    {
        "currencyCode": "LTC",
        "networkName": "LTC",
        "isDefault": true,
        "isEnabled": true,
        "precision": "100000000",
        "scale": 8,
        "publicName": "Litecoin",
        "feeCurrencyCode": "LTC"
    },
    {
        "currencyCode": "USDC",
        "networkName": "SOL",
        "isDefault": false,
        "isEnabled": true,
        "precision": "1000000",
        "scale": 6,
        "publicName": "Solana",
        "feeCurrencyCode": "SOL"
    },
  ...

Validating if a particular network is enabled/supported

You can use this endpoint to stay updated with the latest network configurations or validate if a particular network is enabled before executing any transactions. For example:

To confirm if USDC is supported on the Solana (SOL) network, specify query parameters as follows:

  • "currencyCode": "USDC"
  • "networkName": "SOL"
  • "isEnabled": true

Request URI:

GET /api/public/currencies/networks?currencyCode=USDC&networkName=SOL&isEnabled=true

Response body:

[
    {
        "currencyCode": "USDC",
        "networkName": "SOL",
        "isDefault": false,
        "isEnabled": true,
        "precision": "1000000",
        "scale": 6,
        "publicName": "Solana",
        "feeCurrencyCode": "SOL"
    }
]

If the specified networkName or currencyCode is not supported or incorrect, empty brackets will be returned - [].


Did this page help you?