In the SpectroCoin API, all currency codes, both FIAT and cryptocurrency, must be specified using uppercase letters (e.g., "SOL", "BTC", "EUR", "USD"). If a request is made to an endpoint with a currency code in an incorrect format (e.g., lowercase or mixed case), the API will return an error response. The response includes details about the validation failure, structured as follows:
{
"errorCode": "GEN_8",
"category": "validation",
"key": "entity_not_found",
"defaultMessage": "Requested entity was not found.",
"spanId": "382ec2e29d50544a",
"traceId": "1ae3a8bb1d1bf7d3",
"errorParameters": [
{
"key": "Id",
"value": "id"
}
]
}
| Currency name | currencyCode |
|---|---|
| 1inch | 1INCH |
| Aave | AAVE |
| Cardano | ADA |
| Algorand | ALGO |
| Aptos | APT |
| Cosmos | ATOM |
| Avalanche | AVAX |
| Basic Attention Token | BAT |
| Bitcoin Cash | BCH |
| BNB | BNB |
| Banker | BNK |
| Banker (old) | BNK223 |
| Bitcoin | BTC |
| Binance USD | BUSD |
| Celo | CELO |
| Chiliz | CHZ |
| Compound | COMP |
| Dai | DAI |
| DASH | DASH |
| Dogecoin | DOGE |
| Polkadot | DOT |
| Enjin Coin | ENJ |
| Eos | EOS |
| Ether | ETH |
| EURC | EURC |
| Filecoin | FIL |
| Feathercoin | FTC |
| The Graph | GRT |
| The Graph | GRT |
| Holo | HOT |
| Chainlink | LINK |
| Litecoin | LTC |
| Decentraland | MANA |
| Mask Network | MASK |
| Polygon | MATIC |
| IOTA | MIOTA |
| Maker | MKR |
| Near | NEAR |
| Neo | NEO |