Object
Last updated
Was this helpful?
Last updated
Was this helpful?
import { ExampleResponse } from "components/ExampleResponse"; import { AttributeTable } from "components/AttributeTable";
When Horizon returns information about a trade, it uses the following format:
- ATTRIBUTE -
id string
A unique identifier for this trade.
paging_token number
A cursor value for use in .
ledger_close_time string
An ISO 8601 formatted string of when the ledger with this trade was closed.
offer_id string
The sell offer ID. DECPRECATED
base_account string
The account ID of the base party for this trade.
base_offer_id string
The base offer ID. If this offer was immediately and fully consumed, this will be a synethic ID.
base_amount string
The amount of the base asset that was moved from base_account
to counter_account
.
base_asset_type string
The type for the base asset. Either native
, credit_alphanum4
, or credit_alphanum12
.
base_asset_code string
The code for the base asset.
base_asset_issuer string
The Stellar address of the base asset’s issuer.
counter_offer_id string
The counter offer ID. If this offer was immediately and fully consumed, this will be a synethic ID.
counter_amount string
The amount of the counter asset that was moved from counter_account
to base_account
.
counter_asset_type string
The type for the counter asset. Either native
, credit_alphanum4
, or credit_alphanum12
.
counter_asset_code string
The code for the counter asset.
counter_asset_issuer string
The Stellar address of the counter asset’s issuer.
price object
An object of a number numerator and number denominator that represents the original offer price. To derive the price, divide n
by d
.Hide child attributes
nnumber
The numerator.
dnumber
The denominator.
base_is_seller boolean
Indicates with party is the seller.