Skip to main content

Trade Agg

Table Metadata​

PropertyConfiguration
Natural Key(s)day_agg
Partition Field(s)day_agg (MONTH partition)
Clustered Field(s)asset_a, asset_b
Documentationdbt docs

Column Details​

NameDescriptionData TypeDomain ValuesRequired?Notes
day_aggDate from which all metrics are aggregated. In the Trade Aggregations table, the day_agg represents the day in which the daily aggregations were built.DATEYes
asset_a_typeThe identifier for type of asset code used for the sold asset within the trade. Notes: XLM is the native asset to the network. XLM has no asset code or issuer representation and will instead be displayed with an asset type of 'native'.STRINGYes
asset_a_codeThe 4 or 12 character code of the sold asset within a trade. Notes: Asset codes have no guarantees of uniqueness. The combination of asset code, issuer and type represents a distinct asset.STRINGNo
asset_a_issuerThe account address of the original asset issuer for the sold asset within a trade.STRINGNo
asset_aHashed id for the selling_asset.INTEGERYes
asset_b_typeThe identifier for type of asset code used for the bought asset within the trade. Notes: XLM is the native asset to the network. XLM has no asset code or issuer representation and will instead be displayed with an asset type of 'native'.STRINGYes
asset_b_codeThe 4 or 12 character code of the bought asset within a trade. Notes: Asset codes have no guarantees of uniqueness. The combination of asset code, issuer and type represents a distinct asset.STRINGNo
asset_b_issuerThe account address of the original asset issuer for the bought asset within a trade.STRINGNo
asset_bHashed id for the buying_asset.INTEGERYes
trade_count_dailyThe count of trades executed against the network in a day.INTEGERYes
asset_a_volume_dailyThe total raw amount of the asset being sold in all trades within that day.FLOATYes
asset_b_volume_dailyThe total raw amount of the asset being bought in all trades within that day.FLOATYes
avg_price_dailyThe total amount of the asset being bought in all trades divided by the total amount of the asset being sold in all trades, within that day.FLOATYes
high_price_dailyThe highest price obtained from the ratio between denominator and numerator for that day, for the selling:buying asset price.FLOATYes
low_price_dailyThe lowest price obtained from the ratio between denominator and numerator for that day, for the selling:buying asset price.FLOATYes
open_n_dailyThe opening price of the numerator within that day, for the selling:buying asset prices ratio.INTEGERYes
open_d_dailyThe opening price of the denominator within that day, for the selling:buying asset prices ratio.INTEGERYes
close_n_dailyThe closing price of the numerator within that day, for the selling:buying asset prices ratio.INTEGERYes
close_d_dailyThe closing price of the denominator within that day, for the selling:buying asset prices ratio.INTEGERYes
trade_count_weeklyThe count of trades executed against the network during the past 7 days.INTEGERYes
asset_a_volume_weeklyThe total amount of the asset being sold in all trades during the past 7 days.FLOATYes
asset_b_volume_weeklyThe total amount of the asset being bought in all trades during the past 7 days.FLOATYes
avg_price_weeklyThe total amount of the asset being bought in all trades divided by the total amount of the asset being sold in all trades, during the past 7 days.FLOATYes
high_price_weeklyThe highest price obtained from the ratio between denominator and numerator during the past 7 days, for the selling:buying asset price.FLOATYes
low_price_weeklyThe lowest price obtained from the ratio between denominator and numerator during the past 7 days, for the selling:buying asset price.FLOATYes
open_n_weeklyThe opening price of the numerator during the past 7 days, for the selling:buying asset prices ratio.INTEGERYes
open_d_weeklyThe opening price of the denominator during the past 7 days, for the selling:buying asset prices ratio.INTEGERYes
close_n_weeklyThe closing price of the numerator during the past 7 days, for the selling:buying asset prices ratio.INTEGERYes
close_d_weeklyThe closing price of the denominator during the past 7 days, for the selling:buying asset prices ratio.INTEGERYes
trade_count_monthlyThe count of trades executed against the network during the past 30 days.INTEGERYes
asset_a_volume_monthlyThe total amount of the asset being sold in all trades during the past 30 days.FLOATYes
asset_b_volume_monthlyThe total amount of the asset being bought in all trades during the past 30 days.FLOATYes
avg_price_monthlyThe total amount of the asset being bought in all trades divided by the total amount of the asset being sold in all trades, during the past 30 days.FLOATYes
high_price_monthlyThe highest price obtained from the ratio between denominator and numerator during the past 30 days, for the selling:buying asset price.FLOATYes
low_price_monthlyThe lowest price obtained from the ratio between denominator and numerator during the past 30 days, for the selling:buying asset price.FLOATYes
open_n_monthlyThe opening price of the numerator during the past 30 days, for the selling:buying asset prices ratio.INTEGERYes
open_d_monthlyThe opening price of the denominator during the past 30 days, for the selling:buying asset prices ratio.INTEGERYes
close_n_monthlyThe closing price of the numerator during the past 30 days, for the selling:buying asset prices ratio.INTEGERYes
close_d_monthlyThe closing price of the denominator during the past 30 days, for the selling:buying asset prices ratio.INTEGERYes
trade_count_yearlyThe count of trades executed against the network during the past 365 days.INTEGERYes
asset_a_volume_yearlyThe total amount of the asset being sold in all trades during the past 365 days.FLOATYes
asset_b_volume_yearlyThe total amount of the asset being bought in all trades during the past 365 days.FLOATYes
avg_price_yearlyThe total amount of the asset being bought in all trades divided by the total amount of the asset being sold in all trades, during the past 365 days.FLOATYes
high_price_yearlyThe highest price obtained from the ratio between denominator and numerator during the past 365 days, for the selling:buying asset price.FLOATYes
low_price_yearlyThe lowest price obtained from the ratio between denominator and numerator during the past 365 days, for the selling:buying asset price.FLOATYes
open_n_yearlyThe opening price of the numerator during the past 365 days, for the selling:buying asset prices ratio.INTEGERYes
open_d_yearlyThe opening price of the denominator during the past 365 days, for the selling:buying asset prices ratio.INTEGERYes
close_n_yearlyThe closing price of the numerator during the past 365 days, for the selling:buying asset prices ratio.INTEGERYes
close_d_yearlyThe closing price of the denominator during the past 365 days, for the selling:buying asset prices ratio.INTEGERYes