Sort currency api response by currency/id

Hey Guys,
I am using the currency end point to simply retrieve the current prices for a specific list of currencies.,FTM,FLUX

I need a predictable response in the same order every time. I know what the docs say but Is there really no way to sort by id/currency code? It seems weird to me that this isnt possible.

You can sort by first price date instead. But no, we don’t provide a sort by ID or currency code. I’m worried you may be indexing into the array by number instead of searching the array and matching the ID. You may get unreliable or incorrect results in your code if you index by number.

1 Like

Yeah… seems i will have to search the array then…thanks!