Request a quote for swapping between two assets
from_amount or to_amount, but not both. The API will calculate the other side based on current market rates.
expires_at field.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
"BTC"
"rgb:2dkSTbr-jFhznbPmo-TQafzswCN-av4gTsJjX-ttx6CNou5-M98k8Zd"
Amount of from_asset to convert. Either from_amount or to_amount must be provided, but not both.
1000000
Desired amount of to_asset to receive. Either from_amount or to_amount must be provided, but not both.
1000000
Successful Response
"1234567890"
"BTC"
Amount of from_asset in its smallest unit (e.g., millisatoshis for BTC if precision is 11)
100000000000
"rgb:2dkSTbr-jFhznbPmo-TQafzswCN-av4gTsJjX-ttx6CNou5-M98k8Zd"
Amount of to_asset in its smallest unit, after applying price and fees.
49900123
Price of 1 whole unit of from_asset (e.g., 1 BTC) in terms of the smallest unit of to_asset (e.g., USDT with precision 6). Matches PriceData.price for the given rfq_id.
50000123456