Skip to main content
When Horizon returns information about a trade, it uses the following format:
string
A unique identifier for this trade.
number
A cursor value for use in pagination.
string
An ISO 8601 formatted string of when the ledger with this trade was closed.
string (optional)
The account ID of the base party for this trade.
string (optional)
The base offer ID. If this offer was immediately and fully consumed, this will be a synethic ID.
string (optional)
The base liquidity pool ID. If this trade was executed against a liquidity pool.
string
The amount of the base asset that was moved from base_account to counter_account.
string
The type for the base asset. Either native, credit_alphanum4, or credit_alphanum12.
string
The code for the base asset.
string
The Stellar address of the base asset’s issuer.
string (optional)
The account ID of the base party for this trade.
string (optional)
The counter offer ID. If this offer was immediately and fully consumed, this will be a synethic ID.
string (optional)
The counter liquidity pool ID. If this trade was executed against a liquidity pool.
string
The amount of the counter asset that was moved from counter_account to base_account.
string
The type for the counter asset. Either native, credit_alphanum4, or credit_alphanum12.
string
The code for the counter asset.
string
The Stellar address of the counter asset’s issuer.
object
An object of a number numerator and number denominator that represents the original offer price. To derive the price, divide n by d. n and d are represented as strings because they might be 64-bit integers.
boolean
Indicates with party is the seller.
Example