Assets Metadata

Provides a simplified view of asset metadata, including asset providers and operating currencies.

Purpose

Provides a simplified view of asset metadata.

This model exists to translate internal currency identifiers into standardized ISO currency codes, so downstream models can work with currencies without re-implementing joins or lookup logic.

It is intentionally minimal and acts as a currency resolution layer for asset providers.

Business Logic

  • Start from the Asset Providers source table
  • Join each asset provider to its configured currency
  • Translate internal currency IDs into ISO currency codes using the Currencies semantic contract.
  • Expose a stable, reusable contract for downstream facts

Output Contract

Definitions

ColumnDescription
asset_providerName of the asset provider (e.g. Stripe, HSBC, Coinbase)
account_idAsset provider identifier
currencyISO currency code associated with the provider

Sample & Implementation

Asset providers mapped to their operating currency.
asset_providerasset_idcurrency
Stripea1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5dEUR
PayPalb2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6eUSD
Internalc3d4e5f6-a7b8-4c9d-0e1f-2a3b4c5d6e7fEUR
Wised4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8aUSD
Revolute5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9bUSD
Internalf6a7b8c9-d0e1-4f2a-3b4c-5d6e7f8a9b0cUSD
Stripea7b8c9d0-e1f2-4a3b-4c5d-6e7f8a9b0c1dEUR
PayPalb8c9d0e1-f2a3-4b4c-5d6e-7f8a9b0c1d2eGBP
Internalc9d0e1f2-a3b4-4c5d-6e7f-8a9b0c1d2e3fUSD
Internald0e1f2a3-b4c5-4d6e-7f8a-9b0c1d2e3f4aEUR
Mercurye1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5bUSD
Brexf2a3b4c5-d6e7-4f8a-9b0c-1d2e3f4a5b6cUSD
Internala3b4c5d6-e7f8-4a9b-0c1d-2e3f4a5b6c7dGBP
Internalb4c5d6e7-f8a9-4b0c-1d2e-3f4a5b6c7d8eUSD
Stripec5d6e7f8-a9b0-4c1d-2e3f-4a5b6c7d8e9fCHF
PayPald6e7f8a9-b0c1-4d2e-3f4a-5b6c7d8e9f0aEUR
Internale7f8a9b0-c1d2-4e3f-4a5b-6c7d8e9f0a1bUSD
Wisef8a9b0c1-d2e3-4f4a-5b6c-7d8e9f0a1b2cUSD
HSBCa9b0c1d2-e3f4-4a5b-6c7d-8e9f0a1b2c3dUSD
Revolutb0c1d2e3-f4a5-4b6c-7d8e-9f0a1b2c3d4eEUR
Stripec1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5fCHF
PayPald2e3f4a5-b6c7-4d8e-9f0a-1b2c3d4e5f6aCHF
Internale3f4a5b6-c7d8-4e9f-0a1b-2c3d4e5f6a7bUSD
UBSf4a5b6c7-d8e9-4f0a-1b2c-3d4e5f6a7b8cGBP
Internala5b6c7d8-e9f0-4a1b-2c3d-4e5f6a7b8c9dEUR
{{config(materialized='view')}}

with assets_providers as (
    select * from {{ref('assets_providers') }}
),

currencies as (
    select * from {{ ref('currencies') }}
)

select
    asp.name as asset_provider,
    asp.id as asset_id,
    c.currency_code as currency
from assets_providers asp
left join currencies c on asp.currency_id = c.id

Dependencies

On this page

Star us on GitHub

If you enjoy this content and find it useful, give us a star on GitHub to show your support and stay updated with our latest improvements.