ℹ️
To interact with the Cede SDK, you need to create an instance of the SDK and register at least one exchange instance. Refer to the General info section for details.
Get supported tokens
Provides a list of supported tokens.
method: getSupportedTokens
params:
exchangeId
-string
The exchange ID to get supported tokens from.auth
- The authentication object for the exchange. See authentication section for details.network
-string
, optional
If provided, the method will return only depositable or withdrawable tokens for the specified network.
response structure: Promise<{ TokenWithMarketNetwork[] }>
, see
TokenWithMarketNetwork.
ℹ️
Sometimes, exchanges don't provide network information when retrieving tokens. Instead, they require you to retrieve
it by token symbol. Since running 100+ queries in this way would be inefficient, we provide a separate method to
retrieve network information by token symbol: getNetworks
. (See the withdrawal
or deposit pages for examples.)
const tokens = await cedeSDK.api.getSupportedTokens({ exchangeId: "binance" });