Description of the Desired Feature
While using the SymbolConverter there are helper methods like:
- getAssetId(symbol)
- getSpotPairId(symbol)
- getSzDecimals(symbol)
However, there is currently no way to retrieve the symbol or coin name from a given pair ID.
Motivation and Use Case
In some scenarios, we only have access to the pair ID, for example:
"@107"
But we cannot resolve it back to its corresponding symbol (e.g. "HYPE/USDC").
This becomes a limitation when:
- Handling subscriptions or websocket events
- Processing data returned from APIs that use pair IDs
- Performing follow-up operations that require the symbol
Proposed Solution (optional)
It would be useful to have a method like:
converter.getSymbolFromPairId("@107");
// "HYPE/USDC"
Additional Information (optional)
In my use case, I frequently receive @107 but have no way to determine the corresponding market without maintaining my own mapping.
Description of the Desired Feature
While using the SymbolConverter there are helper methods like:
However, there is currently no way to retrieve the symbol or coin name from a given pair ID.
Motivation and Use Case
In some scenarios, we only have access to the pair ID, for example:
"@107"
But we cannot resolve it back to its corresponding symbol (e.g. "HYPE/USDC").
This becomes a limitation when:
Proposed Solution (optional)
It would be useful to have a method like:
converter.getSymbolFromPairId("@107");
// "HYPE/USDC"
Additional Information (optional)
In my use case, I frequently receive @107 but have no way to determine the corresponding market without maintaining my own mapping.