info
Retrieves supported assets and delivery methods available for trading.
Returns comprehensive information about all assets supported by the anchor for exchange operations, including available delivery methods and country restrictions. This is typically the first call made to discover what exchanges are possible.
Note: Not all asset pairs may be supported. Use the prices endpoint to see which specific pairs are available for trading.
Return
Sep38InfoResponse containing available assets and options
Parameters
jwt Token
Optional JWT token from SEP-10 authentication (may provide personalized results)
Throws
If request parameters are invalid (400)
For unexpected HTTP status codes
Example:
val infoResponse = quoteService.info()
infoResponse.assets.forEach { asset ->
println("Asset: ${asset.asset}")
asset.countryCodes?.let { codes ->
println(" Available in: ${codes.joinToString(", ")}")
}
asset.sellDeliveryMethods?.forEach { method ->
println(" Sell via: ${method.name} - ${method.description}")
}
asset.buyDeliveryMethods?.forEach { method ->
println(" Buy via: ${method.name} - ${method.description}")
}
}Content copied to clipboard