Table Metadata
| Property | Configuration |
|---|---|
| Natural Key(s) | offer_id, closed_at |
| Partition Field(s) | batch_run_date (MONTH partition) |
| Clustered Field(s) | selling_asset_id, buying_asset_id, last_modified_ledger |
| Documentation | dbt docs |
Column Details
| Name | Description | Data Type | Domain Values | Required? | Notes |
|---|---|---|---|---|---|
| seller_id | The account address that is making this offer | string | Yes | ||
| offer_id | The unique identifier for this offer | integer | Yes | ||
| selling_asset_type | The identifier for type of asset code, can be an alphanumeric with 4 characters, 12 characters or the native asset to the network, XLM. | string |
| Yes | |
| selling_asset_code | The 4 or 12 character code representation of the asset offered to be sold | string | No | ||
| selling_asset_issuer | The account address of the original asset issuer that minted the asset which will be sold in exchange for another asset | string | No | ||
| buying_asset_type | The identifier for type of asset code, can be an alphanumeric with 4 characters, 12 characters or the native asset to the network, XLM. | string |
| Yes | |
| buying_asset_code | The 4 or 12 character code representation of the asset desired to be purchased | string | No | ||
| buying_asset_issuer | The account address of the original asset issuer that minted the asset which will be bought in exchange for a currently held asset | string | No | ||
| amount | The amount of selling that the account making this offer is willing to sell | float | Yes | ||
| pricen | The numerator of the precise representation of the buy and sell price of assets on offer (The buy amount desired) | integer | Yes | If an offer wants to sell 10 XLM in exchange for 1 USD, the numerator will be 1. | |
| priced | The denominator of the precise representation of the buy and sell price of assets on offer (The sell amount offered) | integer | Yes | If an offer wants to sell 10 XLM in exchange for 1 USD, the denominator will be 10. | |
| price | How many units of buying it takes to get 1 unit of selling. This number is the decimal form of pricen / priced | float | Yes | If an offer wants to sell 10 XLM in exchange for 1 USD, the price will be 0.1 | |
| flags | Denotes the enabling/disabling of certain asset issuer privileges | integer |
| Yes | |
| last_modified_ledger | The ledger sequence number when the ledger entry (this unique signer for the account) was modified. Deletions do not count as a modification and will report the prior modification sequence number | integer | Yes | ||
| ledger_entry_change | Code that describes the ledger entry change type that was applied to the ledger entry. | integer |
| Yes | Valid entry change types are 0, 1, and 2 for ledger entries of type offers. |
| deleted | Indicates whether the ledger entry (offer id) has been deleted or not. Once an entry is deleted, it cannot be recovered | boolean | Yes | ||
| closed_at | Timestamp in UTC when this ledger closed and committed to the network. Ledgers are expected to close ~every 5 seconds | timestamp | Yes | ||
| ledger_sequence | The sequence number of this ledger. It represents the order of the ledger within the Stellar blockchain. Each ledger has a unique sequence number that increments with every new ledger, ensuring that ledgers are processed in the correct order. | integer | Yes | ||
| sponsor | The account address that is sponsoring the base reserves for the offer | string | No | ||
| batch_id | String representation of the run id for a given DAG in Airflow. Takes the form of scheduled__<batch_end_date>-<dag_alias>. Batch ids are unique to the batch and help with monitoring and rerun capabilities | string | Yes | ||
| batch_run_date | The start date for the batch interval. When taken with the date in the batch_id, the date represents the interval of ledgers processed. The batch run date can be seen as a proxy of closed_at for a ledger. | datetime | Yes | The table is partitioned on batch_run_date. It is recommended to always include the batch_run_date in the filter if possible to help reduce query cost. | |
| batch_insert_ts | The timestamp in UTC when a batch of records was inserted into the database. This field can help identify if a batch executed in real time or as part of a backfill | timestamp | Yes | ||
| selling_asset_id | Unique identifier for selling_asset_code, selling_asset_issuer | integer | No | ||
| buying_asset_id | Unique identifier for buying_asset_code, buying_asset_issuer | integer | No |