Object
import { ExampleResponse } from "components/ExampleResponse"; import { AttributeTable } from "components/AttributeTable";
When Horizon returns information about a trade, it uses the following format:
- ATTRIBUTE -
id
stringA unique identifier for this trade.
paging_token
numberA cursor value for use in pagination.
ledger_close_time
stringAn ISO 8601 formatted string of when the ledger with this trade was closed.
offer_id
stringThe sell offer ID. DECPRECATED
base_account
stringThe account ID of the base party for this trade.
base_offer_id
stringThe base offer ID. If this offer was immediately and fully consumed, this will be a synethic ID.
base_amount
stringThe amount of the base asset that was moved from
base_accounttocounter_account.base_asset_type
stringThe type for the base asset. Either
native,credit_alphanum4, orcredit_alphanum12.base_asset_code
stringThe code for the base asset.
base_asset_issuer
stringThe Stellar address of the base asset’s issuer.
counter_offer_id
stringThe counter offer ID. If this offer was immediately and fully consumed, this will be a synethic ID.
counter_amount
stringThe amount of the counter asset that was moved from
counter_accounttobase_account.counter_asset_type
stringThe type for the counter asset. Either
native,credit_alphanum4, orcredit_alphanum12.counter_asset_code
stringThe code for the counter asset.
counter_asset_issuer
stringThe Stellar address of the counter asset’s issuer.
price
objectAn object of a number numerator and number denominator that represents the original offer price. To derive the price, divide
nbyd.Hide child attributesnnumber
The numerator.
dnumber
The denominator.
base_is_seller
booleanIndicates with party is the seller.
{
"_links": {
"self": {
"href": ""
},
"base": {
"href": "https://expansion-testnet.bantu.network/accounts/GA23DVJUJVXUQ45SKQMZR7KH2ZOOBFWGWSEXHCT7VVKP2TYIMCQTQGNQ"
},
"counter": {
"href": "https://expansion-testnet.bantu.network/accounts/GAFGG7CRFRCJLBHGI5L4IZD4QYR4GDX5NKB46CE4KZMNBILBTP3L4M75"
},
"operation": {
"href": "https://expansion-testnet.bantu.network/operations/100089067462524929"
}
},
"id": "100089067462524929-0",
"paging_token": "100089067462524929-0",
"ledger_close_time": "2019-04-07T11:30:03Z",
"offer_id": "79502917",
"base_offer_id": "4711775085889912833",
"base_account": "GA23DVJUJVXUQ45SKQMZR7KH2ZOOBFWGWSEXHCT7VVKP2TYIMCQTQGNQ",
"base_amount": "99.9999996",
"base_asset_type": "native",
"counter_offer_id": "79502917",
"counter_account": "GAFGG7CRFRCJLBHGI5L4IZD4QYR4GDX5NKB46CE4KZMNBILBTP3L4M75",
"counter_amount": "11.4722884",
"counter_asset_type": "credit_alphanum4",
"counter_asset_code": "EURT",
"counter_asset_issuer": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
"base_is_seller": false,
"price": {
"n": 10000000,
"d": 87166567
}
}Last updated
Was this helpful?