Buy Offer
Creates, updates, or deletes a buy offer to trade assets. A buy offer specifies a certain amount of the buying asset that should be sold in exchange for the minimum quantity of the selling asset.
See the Manage Buy Offer
errors.
ATTRIBUTE
amount
string
The amount of
buying_asset
that the account making this offer is willing to buy.price
string
How many units of
buying_asset
it takes to get 1 unit ofselling_asset
. A number representing the decimal form ofprice_r
.price_r
object
A precise representation of the buy and sell price of the assets on offer.Show child attributes
buying_asset_type
string
The type for the buying asset. Either
native
,credit_alphanum4
, orcredit_alphanum12
.buying_asset_issuer
string
The Stellar address of the buying asset’s issuer. Appears if the
buying_asset_type
is notnative
.buying_asset_code
string
The code for the buying asset. Appears if the
buying_asset_type
is notnative
.selling_asset_type
string
The type for the selling asset. Either
native
,credit_alphanum4
, orcredit_alphanum12
.selling_asset_issuer
string
The Stellar address of the selling asset’s issuer. Appears if the
selling_asset_type
is notnative
.selling_asset_code
string
The code for the selling asset. Appears if the
selling_asset_type
is notnative
.offer_id
string
A unique identifier for this offer.
Last updated