Sell Offer
Creates, updates, or deletes a sell offer to trade assets. A sell offer specifies a certain amount of the selling asset that should be sold in exchange for the maximum quantity of the buying asset.
See the Manage Sell Offer errors.
ATTRIBUTE
amount
stringThe amount of
selling_assetthat the account making this offer is willing to sell.price
stringHow many units of
selling_assetit takes to get 1 unit ofbuying_asset. A number representing the decimal form ofprice_r.price_r
objectA precise representation of the buy and sell price of the assets on offer.Hide child attributes
n
numberThe numerator.
d
numberThe denominator.
buying_asset_type
stringThe type for the buying asset. Either
native,credit_alphanum4, orcredit_alphanum12.buying_asset_issuer
stringThe Stellar address of the buying asset’s issuer. Appears if the
buying_asset_typeis notnative.buying_asset_code
stringThe code for the buying asset. Appears if the
buying_asset_typeis notnative.selling_asset_type
stringThe type for the selling asset. Either
native,credit_alphanum4, orcredit_alphanum12.selling_asset_issuer
stringThe Stellar address of the selling asset’s issuer. Appears if the
selling_asset_typeis notnative.selling_asset_code
stringThe code for the selling asset. Appears if the
selling_asset_typeis notnative.offer_id
stringA unique identifier for this offer.
{
"_links": {
"self": {
"href": "https://expansion-testnet.bantu.network/operations/124892722640347138"
},
"transaction": {
"href": "https://expansion-testnet.bantu.network/transactions/ef8ffb54ff5990a686fda3ebfc07b8162f042ff0fcdb4f7ff141531e386f0a18"
},
"effects": {
"href": "https://expansion-testnet.bantu.network/operations/124892722640347138/effects"
},
"succeeds": {
"href": "https://expansion-testnet.bantu.network/effects?order=desc\u0026cursor=124892722640347138"
},
"precedes": {
"href": "https://expansion-testnet.bantu.network/effects?order=asc\u0026cursor=124892722640347138"
}
},
"id": "124892722640347138",
"paging_token": "124892722640347138",
"transaction_successful": true,
"source_account": "GCM4PT6XDZBWOOENDS6FOU22GJQLJPV2GC7VRVII4TFGZBA3ZXNM55SV",
"type": "manage_sell_offer",
"type_i": 3,
"created_at": "2020-04-08T13:36:39Z",
"transaction_hash": "ef8ffb54ff5990a686fda3ebfc07b8162f042ff0fcdb4f7ff141531e386f0a18",
"amount": "1336.0326986",
"price": "0.0559999",
"price_r": {
"n": 559999,
"d": 10000000
},
"buying_asset_type": "credit_alphanum4",
"buying_asset_code": "USD",
"buying_asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
"selling_asset_type": "native",
"offer_id": "0"
}Last updated
Was this helpful?