{
  "format": "dataset-manifest/1",
  "slug": "bitcoin-altcoin-exchange",
  "version": 2,
  "seed": "bitcoin-altcoin-exchange:1",
  "spec": {
    "format": "dataset/1",
    "slug": "bitcoin-altcoin-exchange",
    "name": "Cryptocurrency Exchange Activity",
    "tagline": "User transactions, referrals, fees, and trades in a cryptocurrency exchange platform.",
    "description": "Users actively trade digital assets, navigating the complexities of account security and compliance in the fast-paced cryptocurrency market. This exchange specializes in facilitating transactions between altcoins and fiat currencies, handling everything from deposits and withdrawals to referral engagements and user fee structures. The platform accommodates a diverse user base, where most individuals engage in regular trading with small to moderate transaction sizes, while a smaller segment may involve themselves in larger withdrawals or intricate referral schemes, illustrating the spectrum of financial behaviors present within the exchange.\n\nThe dataset comprises several interconnected tables that provide a holistic view of user activity. The 'users' table contains individual user profiles, capturing essential information such as account creation dates and user roles. It links to the 'transactions' table, where each row represents a specific transaction, detailing amounts, timestamps, and types (deposits or withdrawals). Additionally, the 'referrals' table tracks user referral activities, connecting users who bring in new participants, and highlights incentives earned through these referrals. The 'fees' table outlines the fee structures associated with different transaction types, giving insights into the cost dynamics of trading. Finally, the 'trades' table records individual trading actions, including pairs traded, volumes, and prices at transaction timestamps, linking back to both users and transactions.\n\nThis dataset provides valuable opportunities for practice in data analysis, allowing developers to explore crucial questions such as user engagement patterns, transaction volumes, fee impacts on trading behavior, and the effectiveness of referral programs. Synthetic in nature, the data allows for safe experimentation without concerns over real-user privacy or compliance issues, making it ideal for those looking to sharpen their analytical skills.",
    "domain": "banking",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "cryptocurrency",
      "exchange",
      "transactions",
      "users",
      "fees",
      "referrals",
      "altcoins",
      "fiat",
      "trading"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table contains information about users registered on the cryptocurrency exchange. Each user has a unique account and can perform multiple transactions.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "username": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Unique username chosen by the user.",
            "pool": [
              "crypto",
              "block",
              "chain",
              "trade",
              "coin",
              "token",
              "miner",
              "wallet",
              "hash",
              "ledger",
              "stake",
              "decentral",
              "node",
              "peer",
              "hashrate",
              "altcoin",
              "dapp",
              "satoshi",
              "fomo",
              "hodl",
              "pump",
              "dump",
              "whale",
              "fork",
              "scam",
              "defi",
              "yield",
              "liquidity",
              "swap",
              "gas",
              "fee",
              "market",
              "bull",
              "bear",
              "signal",
              "trend",
              "analysis",
              "portfolio",
              "exchange",
              "arbitrage",
              "risk",
              "investment",
              "capital",
              "strategy",
              "growth",
              "dividend",
              "security",
              "protocol",
              "utility",
              "reward",
              "claim",
              "stakeholder",
              "community",
              "innovate",
              "venture"
            ]
          },
          "email": {
            "kind": "email",
            "description": "Email address of the user."
          },
          "account_created_at": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "nullable": true,
            "description": "Date when the user created their account."
          }
        }
      },
      "transactions": {
        "description": "This table records all transactions made by users, including deposits and withdrawals. Each transaction is linked to a user.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user who made the transaction."
          },
          "transaction_type": {
            "kind": "enum",
            "values": [
              "deposit",
              "withdrawal"
            ],
            "description": "Type of transaction performed by the user."
          },
          "amount": {
            "kind": "decimal",
            "min": 10,
            "max": 10000,
            "scale": 2,
            "description": "Amount of money involved in the transaction.",
            "distribution": "long-tail"
          },
          "transaction_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date when the transaction took place."
          }
        }
      },
      "referrals": {
        "description": "This table captures referral activities, where users can refer others to join the exchange. Each referral is linked to a user.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each referral."
          },
          "referrer_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user who made the referral."
          },
          "referred_email": {
            "kind": "email",
            "description": "Email address of the referred user."
          },
          "referral_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date when the referral was made."
          }
        }
      },
      "fees": {
        "description": "This table tracks the fee structures related to transactions on the exchange, linked to user activities.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each fee entry."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user associated with the fee."
          },
          "fee_amount": {
            "kind": "decimal",
            "min": 0.01,
            "max": 500,
            "scale": 2,
            "description": "Amount charged as a fee for transactions.",
            "distribution": "long-tail"
          },
          "fee_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date when the fee was applied."
          }
        }
      },
      "trades": {
        "description": "This table documents the trades executed on the exchange, detailing the exchange of altcoins and fiat currencies.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each trade."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user who executed the trade."
          },
          "trade_amount": {
            "kind": "decimal",
            "min": 1,
            "max": 10000,
            "scale": 2,
            "description": "Amount of altcoin traded.",
            "distribution": "long-tail"
          },
          "trade_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date when the trade was executed."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "nullable",
      "categorical",
      "timestamped"
    ],
    "analysisQuestions": [
      "What is the average transaction amount per user over the specified period?",
      "How many users have referred others, and what is the conversion rate of referrals?",
      "What is the distribution of transaction types among users?",
      "Which users incur the highest fees over time?",
      "How do trade volumes fluctuate over different months?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users with Transactions",
        "sql": "SELECT users.username, transactions.amount FROM users JOIN transactions ON users.id = transactions.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Transaction Amounts by User",
        "sql": "SELECT user_id, SUM(amount) AS total_transacted FROM transactions GROUP BY user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Referrals per User",
        "sql": "SELECT referrer_id, COUNT(*) AS referral_count FROM referrals GROUP BY referrer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Fees by User",
        "sql": "SELECT user_id, AVG(fee_amount) AS average_fee FROM fees GROUP BY user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Trade Volume Over Time",
        "sql": "SELECT DATE(trade_date) AS trade_day, SUM(trade_amount) AS total_traded FROM trades GROUP BY trade_day ORDER BY trade_day;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Financial Analysts",
        "body": "Financial analysts can utilize this dataset to study transaction patterns and user engagement over time. By analyzing transaction amounts and types, they can identify trends in user behavior and assess the overall health of the cryptocurrency exchange."
      },
      {
        "title": "Educators in Finance",
        "body": "Educators can leverage this dataset to teach concepts related to cryptocurrency trading and financial compliance. The structured tables allow students to explore real-world scenarios, enhancing their understanding of digital asset management and trading strategies."
      },
      {
        "title": "Data Engineers",
        "body": "Data engineers can use this synthetic dataset to practice building ETL pipelines. They can extract, transform, and load the data into different formats, ensuring that they understand how to handle financial data effectively while maintaining data integrity."
      },
      {
        "title": "Compliance Officers",
        "body": "Compliance officers can analyze fees and referral activities to ensure adherence to regulatory standards. By investigating user behaviors and transaction histories, they can identify any suspicious activities or patterns that may require further scrutiny."
      }
    ]
  },
  "counts": {
    "users": 200,
    "fees": 100,
    "referrals": 150,
    "trades": 300,
    "transactions": 500
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "username": {
          "nulls": 0,
          "distinct": 183
        },
        "email": {
          "nulls": 0,
          "distinct": 200
        },
        "account_created_at": {
          "nulls": 24,
          "distinct": 160,
          "min": "2023-01-03",
          "max": "2024-12-31"
        }
      }
    },
    "transactions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "user_id": {
          "nulls": 0,
          "distinct": 180,
          "min": 1,
          "max": 200
        },
        "transaction_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "deposit",
          "max": "withdrawal"
        },
        "amount": {
          "nulls": 0,
          "distinct": 500,
          "min": 10.33,
          "max": 9937.69
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 370,
          "min": "2023-01-01",
          "max": "2024-12-31"
        }
      }
    },
    "referrals": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "referrer_id": {
          "nulls": 0,
          "distinct": 106,
          "min": 1,
          "max": 198
        },
        "referred_email": {
          "nulls": 0,
          "distinct": 150
        },
        "referral_date": {
          "nulls": 0,
          "distinct": 140,
          "min": "2023-01-04",
          "max": "2024-12-19"
        }
      }
    },
    "fees": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "user_id": {
          "nulls": 0,
          "distinct": 79,
          "min": 1,
          "max": 198
        },
        "fee_amount": {
          "nulls": 0,
          "distinct": 100,
          "min": 0.04,
          "max": 492.32
        },
        "fee_date": {
          "nulls": 0,
          "distinct": 91,
          "min": "2023-01-01",
          "max": "2024-11-29"
        }
      }
    },
    "trades": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "user_id": {
          "nulls": 0,
          "distinct": 156,
          "min": 1,
          "max": 200
        },
        "trade_amount": {
          "nulls": 0,
          "distinct": 300,
          "min": 1.03,
          "max": 9805.73
        },
        "trade_date": {
          "nulls": 0,
          "distinct": 243,
          "min": "2023-01-02",
          "max": "2024-12-31"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/bitcoin-altcoin-exchange/v2/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/csv/users.csv",
      "bytes": 10664,
      "sha256": "bb500c206868547c151c2f0ef431925c62c82b4df92acaf4ff9fe62dd7e384ff",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/fees.csv",
      "format": "csv",
      "table": "fees",
      "key": "datasets/bitcoin-altcoin-exchange/v2/csv/fees.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/csv/fees.csv",
      "bytes": 2490,
      "sha256": "17b700cd9c307b93c32174e2f50d75a72ca43e46b332b8a108e82af06b484b6e",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/referrals.csv",
      "format": "csv",
      "table": "referrals",
      "key": "datasets/bitcoin-altcoin-exchange/v2/csv/referrals.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/csv/referrals.csv",
      "bytes": 6492,
      "sha256": "46680972d727273d899cd18d352ef64a97d3b9ade5a4de6c860680c06c9e00b4",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/trades.csv",
      "format": "csv",
      "table": "trades",
      "key": "datasets/bitcoin-altcoin-exchange/v2/csv/trades.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/csv/trades.csv",
      "bytes": 8010,
      "sha256": "83b8bd4f90b81e1f9e87fff1522d595c86c60c732ed51bf80bcaf4bca60e1005",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/bitcoin-altcoin-exchange/v2/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/csv/transactions.csv",
      "bytes": 18287,
      "sha256": "a79c39ed31d5d2167fcedb346b5fbdc300886d08548ca882b30f921fce63aa40",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "bitcoin-altcoin-exchange.json",
      "format": "json",
      "table": null,
      "key": "datasets/bitcoin-altcoin-exchange/v2/bitcoin-altcoin-exchange.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/bitcoin-altcoin-exchange.json",
      "bytes": 172746,
      "sha256": "85296857461eebcb854b36705692ee261dbd2012623f9c95b52ba65f29d3647f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/bitcoin-altcoin-exchange/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/sql/postgres.sql",
      "bytes": 65092,
      "sha256": "52f4406749f2150d89714da006a3f9543216e2e837e7617d7b36406b4e146885",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/bitcoin-altcoin-exchange/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/sql/mysql.sql",
      "bytes": 64553,
      "sha256": "4034c02d2630cd93ae4729f833f514c4b554d8210d54ce8fa7bbe9112b88982f",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/bitcoin-altcoin-exchange/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/sql/mssql.sql",
      "bytes": 67130,
      "sha256": "e5f7d17559e53f349b630fbdf0e3f3b91a2759f5905ad6b3a1d94c869a841f73",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/bitcoin-altcoin-exchange/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/sql/sqlite.sql",
      "bytes": 64391,
      "sha256": "d5ae8946a7b67e8b6c56ca14328bf8612f914d8b0af38843fe8d76398595b5a5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/bitcoin-altcoin-exchange/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/prisma/seed.ts",
      "bytes": 136574,
      "sha256": "d6a7d06d7cb8cae83495d590b2f9d03dec928d33c24c1a5fcb8bae50bab002a2",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/bitcoin-altcoin-exchange/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/bitcoin-altcoin-exchange/v2/django/fixtures.json",
      "bytes": 226940,
      "sha256": "157737a64ecf4b2db68d80ce47c629f13fbe994ddeb0cd087d202e55df4c4712",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766651996,
  "updatedAt": 1788777620450
}
