Kraken assets naming convention in RESY API

Replied

I have an old API client project and it seems to not work anymore.
The error I have is something like this: "SOL03" is not a known currency.

"Currency" for me is something like this:

  • Symbol: BTC, Name: Bitcoin, Decimals: ...
  • Symbol: ETH, Name: Ether, Decimals: 18
  • Symbol: XRP, Name: XRP (We can't use "Ripple" !!!), Decimals: ...
  • Symbol: SOL, Bane: Solana, Decimals: ...

I already have a a CUSTOM mapping for Krafken assets, where I manage: XBT -> BTC ETH2 -> ETH XXETH -> ETH XXRP -> XRP

and similar special cases.

Now. Not only I have to manage that crazy mapping, but I need also to manage the "peculiar" names of the assets like "ETH2.S", "CCC28.S", "___.F" .

And what I discovered today? That there are also ".B", ".M" and "___.T" !

My problem is:
How my code can "figure out" thta "SOL", "SL.S" and "SOL03.S" are all the same SOL "currency" (= Solana) ?

This is what /Assets returns:

SOL": {
      "aclass": "currency",
      "altname": "SOL",
      "decimals": 10,
      "display_decimals": 5,
      "collateral_value": 0.925,
      "status": "enabled",
      "margin_rate": "0.02"
    },
"SOL.S": {
      "aclass": "currency",
      "altname": "SOL.S",
      "decimals": 10,
      "display_decimals": 5,
      "status": "enabled"
    },
"SOL03.S": {
      "aclass": "currency",
      "altname": "SOL03.S",
      "decimals": 10,
      "display_decimals": 5,
      "status": "enabled"
    },

There is nothing that says that all the 3 are the same "currency".

If I use the /Balance  endpoint I get this:
```json
DOT: 0.123,
DOTS: 0.123,
DOT28S: 0.123,
ETH2: 0.123,
ETH2.S: 0.123,
XETH: 0.123,
SOL: 0.123,
SOL.S: 0.123,
SOL03.S: 0.123

How can I assume that XETH, ETH2 and ETH2.S are the same token ? How can I assume that SOL, SOL.S and SOL03.S are the same token ?

I also understand that the balance for "SOL" is "available" for trading, while the "Sol" "S"taking are not.

If the rule is to use the last ".S" or "nn.S" to recognize "in-Stacking" amount of the curreny/token... ETH2.S is trikie? There are similar token (LUNA2) ?

Apart from a CUSTOM mapping, how this can be solved using the API endpoints to have something "robust" and automatically up-to-date?

To be clear... I want a client that givels me: SOL (Solana): Toal 0.369 (available: 0.123) or better, it specify that 0.246 are in "stacking" (or "Flexible" or "Tokenized" etc...).

Posted Mar 6, 2026, 8:46 PM UTC

13
Loading comments…