Package-level declarations

Types

Link copied to clipboard
class QuoteService(serviceAddress: String, httpClient: HttpClient? = null, httpRequestHeaders: Map<String, String>? = null)

SEP-38 Anchor RFQ (Request for Quote) API client.

Link copied to clipboard
@Serializable
data class Sep38Asset(val asset: String, val sellDeliveryMethods: List<Sep38DeliveryMethod>? = null, val buyDeliveryMethods: List<Sep38DeliveryMethod>? = null, val countryCodes: List<String>? = null)

Information about a supported asset for exchange operations.

Link copied to clipboard
@Serializable
data class Sep38BuyAsset(val asset: String, val price: String, val decimals: Int)

Buy asset information with price and decimal precision.

Link copied to clipboard
@Serializable
data class Sep38DeliveryMethod(val name: String, val description: String)

Delivery method for off-chain asset exchange operations.

Link copied to clipboard
@Serializable
data class Sep38Fee(val total: String, val asset: String, val details: List<Sep38FeeDetail>? = null)

Fee structure for an exchange operation.

Link copied to clipboard
@Serializable
data class Sep38FeeDetail(val name: String, val amount: String, val description: String? = null)

Detailed breakdown of a single fee component.

Link copied to clipboard
@Serializable
data class Sep38InfoResponse(val assets: List<Sep38Asset>)

Response containing supported assets and delivery methods.

Link copied to clipboard
@Serializable
data class Sep38PriceResponse(val totalPrice: String, val price: String, val sellAmount: String, val buyAmount: String, val fee: Sep38Fee)

Response containing an indicative price quote.

Link copied to clipboard
@Serializable
data class Sep38PricesResponse(val buyAssets: List<Sep38BuyAsset>? = null, val sellAssets: List<Sep38SellAsset>? = null)

Response containing indicative prices for multiple assets.

Link copied to clipboard
@Serializable
data class Sep38QuoteRequest(val context: String, val sellAsset: String, val buyAsset: String, val sellAmount: String? = null, val buyAmount: String? = null, val expireAfter: String? = null, val sellDeliveryMethod: String? = null, val buyDeliveryMethod: String? = null, val countryCode: String? = null)

Request for creating a firm quote.

Link copied to clipboard
@Serializable
data class Sep38QuoteResponse(val id: String, val expiresAt: String, val totalPrice: String, val price: String, val sellAsset: String, val sellAmount: String, val sellDeliveryMethod: String? = null, val buyAsset: String, val buyAmount: String, val buyDeliveryMethod: String? = null, val fee: Sep38Fee)

Response containing a firm quote.

Link copied to clipboard
@Serializable
data class Sep38SellAsset(val asset: String, val price: String, val decimals: Int)

Sell asset information with price and decimal precision.