{
  "format": "dataset-manifest/1",
  "slug": "crypto-transactions-and-holdings",
  "version": 3,
  "seed": "crypto-transactions-and-holdings:1",
  "spec": {
    "format": "dataset/1",
    "slug": "crypto-transactions-and-holdings",
    "name": "Crypto Transactions and Holdings",
    "tagline": "Transactions and holdings data for users across various wallets and cryptocurrencies in the fintech sector.",
    "description": "Users engage in buying, selling, and trading various digital assets in the fast-paced world of cryptocurrency. This dataset models the intricate operations of wallets that store these assets, exchanges where transactions occur, and staking pools that reward users for their contributions to network security. The tables capture a diverse range of currencies and transactions, reflecting a vibrant economy fueled by user engagement and market trends. Each table interlinks, allowing for comprehensive analysis of user behaviors, transaction trends, and asset performance. This synthetic dataset serves as an excellent resource for developers to practice SQL queries, ORM seeding, and data analysis techniques in the fintech domain, offering insights into both popular and niche cryptocurrencies.",
    "domain": "fintech",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "cryptocurrency",
      "transactions",
      "wallets",
      "exchanges",
      "holdings",
      "staking",
      "digital assets"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "Each row represents a user in the cryptocurrency ecosystem, linking to their wallets and transactions.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The user's full name.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "The user's email address.",
            "nullable": true
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date the user account was created.",
            "dayProfile": "waking"
          }
        }
      },
      "wallets": {
        "description": "Each wallet stores various cryptocurrencies for a user, linking back to the user table.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the wallet."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Link to the user who owns the wallet."
          },
          "balance": {
            "kind": "decimal",
            "min": 0,
            "max": 10000,
            "scale": 2,
            "description": "Total balance in the wallet.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date the wallet was created.",
            "dayProfile": "waking"
          }
        }
      },
      "currencies": {
        "description": "This table holds information about various cryptocurrencies available for trading.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the currency."
          },
          "name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the cryptocurrency.",
            "pool": [
              "bitcoin",
              "ethereum",
              "ripple",
              "litecoin",
              "cardano",
              "polkadot",
              "chainlink",
              "stellar",
              "dogecoin",
              "monero",
              "tezos",
              "uniswap",
              "bitcoin_cash",
              "dash",
              "vechain",
              "cosmos",
              "neo",
              "aave",
              "algorand",
              "zilliqa",
              "fantom"
            ]
          },
          "symbol": {
            "kind": "slug",
            "from": "name",
            "description": "The trading symbol for the cryptocurrency."
          },
          "market_cap": {
            "kind": "decimal",
            "min": 1000000,
            "max": 1000000000000,
            "scale": 2,
            "description": "The market capitalization of the cryptocurrency.",
            "nullable": true,
            "distribution": "heavy-tail"
          }
        }
      },
      "transactions": {
        "description": "Each transaction records the buying or selling of a cryptocurrency by a user, linking to both the user and the currency.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the transaction."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Link to the user making the transaction."
          },
          "currency_id": {
            "kind": "fk",
            "ref": "currencies.id",
            "description": "Link to the currency being transacted."
          },
          "amount": {
            "kind": "decimal",
            "min": 0.01,
            "max": 1000,
            "scale": 4,
            "description": "Amount of currency transacted.",
            "nullable": true,
            "when": {
              "column": "transaction_type",
              "in": [
                "buy",
                "sell"
              ]
            },
            "distribution": "long-tail"
          },
          "transaction_type": {
            "kind": "enum",
            "values": [
              "buy",
              "sell"
            ],
            "description": "Type of transaction.",
            "weights": [
              7,
              3
            ]
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date the transaction occurred.",
            "dayProfile": "waking",
            "trend": "growing"
          }
        }
      },
      "staking_pools": {
        "description": "This table represents staking pools where users can stake their cryptocurrencies for rewards.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the staking pool."
          },
          "currency_id": {
            "kind": "fk",
            "ref": "currencies.id",
            "description": "Link to the currency available for staking."
          },
          "reward_rate": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Annual reward rate for staking.",
            "distribution": "high"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-12-31",
            "description": "The date the staking pool was created.",
            "dayProfile": "waking"
          }
        }
      },
      "user_staking": {
        "description": "Each row links users to the staking pools they participate in, tracking their staked amount.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the user staking record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Link to the user participating in staking."
          },
          "pool_id": {
            "kind": "fk",
            "ref": "staking_pools.id",
            "description": "Link to the staking pool."
          },
          "staked_amount": {
            "kind": "decimal",
            "min": 1,
            "max": 10000,
            "scale": 2,
            "description": "Amount of currency staked in the pool.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-12-31",
            "description": "The date the user staked the amount.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "timestamped",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the most popular cryptocurrencies among users?",
      "How do transaction volumes vary between different currencies?",
      "What is the average amount staked in different pools?",
      "Which users have the highest total balance across their wallets?",
      "How do transaction types correlate with market trends?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Transactions",
        "sql": "SELECT u.full_name, t.amount FROM users u JOIN transactions t ON u.id = t.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Transactions by Currency",
        "sql": "SELECT c.name, SUM(t.amount) as total_transacted FROM transactions t JOIN currencies c ON t.currency_id = c.id GROUP BY c.name;",
        "dialect": "postgres"
      },
      {
        "title": "User Wallet Balances",
        "sql": "SELECT u.full_name, SUM(w.balance) as total_balance FROM users u JOIN wallets w ON u.id = w.user_id GROUP BY u.full_name;",
        "dialect": "postgres"
      },
      {
        "title": "Staking Participation Overview",
        "sql": "SELECT u.full_name, sp.reward_rate, us.staked_amount FROM user_staking us JOIN users u ON us.user_id = u.id JOIN staking_pools sp ON us.pool_id = sp.id;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Data Analysis for Cryptocurrency Trends",
        "body": "Data analysts can leverage this dataset to analyze user behavior and transaction patterns in the cryptocurrency market. By running queries, they can uncover insights into which currencies are gaining popularity and how user engagement fluctuates over time."
      },
      {
        "title": "ORM Seeding for Crypto Applications",
        "body": "Developers can use this synthetic dataset to seed their applications with realistic user and transaction data. This is particularly useful in building and testing cryptocurrency platforms, ensuring that they can handle various scenarios involving wallets, transactions, and staking."
      },
      {
        "title": "Market Research and Reporting",
        "body": "Market researchers can utilize this dataset to generate reports on cryptocurrency trends, user demographics, and transaction volumes. By analyzing this data, they can provide valuable insights to stakeholders about the state of the cryptocurrency market."
      }
    ]
  },
  "counts": {
    "currencies": 50,
    "staking_pools": 30,
    "users": 200,
    "transactions": 500,
    "user_staking": 150,
    "wallets": 250
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 16,
          "distinct": 180,
          "min": "Alice Pereira",
          "max": "Zoe Torres"
        },
        "email": {
          "nulls": 30,
          "distinct": 169
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2020-01-05 19:56:49",
          "max": "2023-12-30 15:51:56"
        }
      }
    },
    "wallets": {
      "rows": 250,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "user_id": {
          "nulls": 0,
          "distinct": 140,
          "min": 1,
          "max": 200
        },
        "balance": {
          "nulls": 24,
          "distinct": 226,
          "min": 0,
          "max": 9937.8
        },
        "created_at": {
          "nulls": 0,
          "distinct": 250,
          "min": "2020-02-01 21:03:02",
          "max": "2023-12-29 11:11:49"
        }
      }
    },
    "currencies": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "name": {
          "nulls": 0,
          "distinct": 46
        },
        "symbol": {
          "nulls": 0,
          "distinct": 46
        },
        "market_cap": {
          "nulls": 4,
          "distinct": 46,
          "min": 16073773.99,
          "max": 954263061711.51
        }
      }
    },
    "transactions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "user_id": {
          "nulls": 0,
          "distinct": 181,
          "min": 2,
          "max": 200
        },
        "currency_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "amount": {
          "nulls": 0,
          "distinct": 500,
          "min": 0.0104,
          "max": 998.6435
        },
        "transaction_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "buy",
          "max": "sell"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 500,
          "min": "2020-01-01 20:49:45",
          "max": "2023-12-31 18:19:18"
        }
      }
    },
    "staking_pools": {
      "rows": 30,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "currency_id": {
          "nulls": 0,
          "distinct": 23,
          "min": 5,
          "max": 49
        },
        "reward_rate": {
          "nulls": 0,
          "distinct": 30,
          "min": 1.48,
          "max": 99.96
        },
        "created_at": {
          "nulls": 0,
          "distinct": 30,
          "min": "2021-02-01 13:34:51",
          "max": "2023-12-30 00:07:05"
        }
      }
    },
    "user_staking": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "user_id": {
          "nulls": 0,
          "distinct": 109,
          "min": 1,
          "max": 198
        },
        "pool_id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "staked_amount": {
          "nulls": 18,
          "distinct": 132,
          "min": 1.01,
          "max": 9230.74
        },
        "created_at": {
          "nulls": 0,
          "distinct": 150,
          "min": "2021-01-08 22:42:53",
          "max": "2023-12-18 12:00:59"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/currencies.csv",
      "format": "csv",
      "table": "currencies",
      "key": "datasets/crypto-transactions-and-holdings/v3/csv/currencies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/csv/currencies.csv",
      "bytes": 2514,
      "sha256": "65c198d0f0de91d11d74bb86835519b8a3e26639106fa458e05f98ff8f734311",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/staking_pools.csv",
      "format": "csv",
      "table": "staking_pools",
      "key": "datasets/crypto-transactions-and-holdings/v3/csv/staking_pools.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/csv/staking_pools.csv",
      "bytes": 1016,
      "sha256": "648e518d2815d487df81250e25497466fcf2cd7f0f47ed2da7d09871bc53bc66",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/crypto-transactions-and-holdings/v3/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/csv/users.csv",
      "bytes": 11256,
      "sha256": "a7997415394656f0937f4c3a8bd314fce61a2c0a03212c7767aa347ac9a7fe8e",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/crypto-transactions-and-holdings/v3/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/csv/transactions.csv",
      "bytes": 21996,
      "sha256": "7c4c0f7310faad9863551ca8c66729bb895836c8a523a32ddceeebfaf846b9ee",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/user_staking.csv",
      "format": "csv",
      "table": "user_staking",
      "key": "datasets/crypto-transactions-and-holdings/v3/csv/user_staking.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/csv/user_staking.csv",
      "bytes": 5594,
      "sha256": "7365106d044b3ec06004101db3fc729463330a46f79efd0ec203489df764362d",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/wallets.csv",
      "format": "csv",
      "table": "wallets",
      "key": "datasets/crypto-transactions-and-holdings/v3/csv/wallets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/csv/wallets.csv",
      "bytes": 8765,
      "sha256": "18e2744d00a787a2bc2d3c09a8febc2a2819065b2122f77d46977ae4ef64b97d",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "crypto-transactions-and-holdings.json",
      "format": "json",
      "table": null,
      "key": "datasets/crypto-transactions-and-holdings/v3/crypto-transactions-and-holdings.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/crypto-transactions-and-holdings.json",
      "bytes": 178690,
      "sha256": "9842c5fad42b0a03f938d753208da282cfac28b2f5652eb3b75453235295b87e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/crypto-transactions-and-holdings/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/sql/postgres.sql",
      "bytes": 70954,
      "sha256": "70bb8a78356d2c9f27486e4c7d254ea02bc07d3d1100d329efbc0941aa1c3ae6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/crypto-transactions-and-holdings/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/sql/mysql.sql",
      "bytes": 70264,
      "sha256": "3b35c647eba891b90e4046ecdf75b8d071ac353705d77fe6f75873bcabc8d8b7",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/crypto-transactions-and-holdings/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/sql/mssql.sql",
      "bytes": 72746,
      "sha256": "20f816067f12cd97a9f7200d18e2ec6bc34ed329fdebff8c5f0fc0d84e93e305",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/crypto-transactions-and-holdings/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/sql/sqlite.sql",
      "bytes": 69979,
      "sha256": "b98cd1d0399b1bd452a57f8a49ee0a42c11d8d1501a60ff16bbcdf357c6f6192",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/crypto-transactions-and-holdings/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/prisma/seed.ts",
      "bytes": 151862,
      "sha256": "ffb696a8527c9a22946737b63085df494ce251ff053df05ac5c7efa5dc3e9512",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/crypto-transactions-and-holdings/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/crypto-transactions-and-holdings/v3/django/fixtures.json",
      "bytes": 230766,
      "sha256": "58b8acbf312445bb5a719ebaa9bc3d55d13f800805099ea5e30730bfe0860c2d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765833414,
  "updatedAt": 1788783130396
}
