{
  "_id": "6af82834f58eaab79920eaaa",
  "Package": "PMwR",
  "Type": "Package",
  "Title": "Portfolio Management with R",
  "Version": "1.3-1",
  "Date": "2026-11-05",
  "Maintainer": "Enrico Schumann <es@enricoschumann.net>",
  "Authors@R": "person(given = \"Enrico\", family = \"Schumann\",\nrole  = c(\"aut\", \"cre\"),\nemail = \"es@enricoschumann.net\",\ncomment = c(ORCID = \"0000-0001-7601-6576\"))",
  "Description": "Tools for the practical management of financial\nportfolios: backtesting investment and trading strategies,\ncomputing profit/loss and returns, analysing trades, handling\nlists of transactions, reporting, and more.  The package\nprovides a small set of reliable, efficient and convenient\ntools for processing and analysing trade/portfolio data.  The\nmanual provides all the details; it is available from\n<https://enricoschumann.net/R/packages/PMwR/manual/PMwR.html>.\nExamples and descriptions of new features are provided at\n<https://enricoschumann.net/notes/PMwR/>.",
  "License": "GPL-3",
  "LazyLoad": "yes",
  "LazyData": "yes",
  "ByteCompile": "yes",
  "URL": "https://enricoschumann.net/PMwR/ ,\nhttps://git.sr.ht/~enricoschumann/PMwR",
  "Repository": "https://enricoschumann.r-universe.dev",
  "Date/Publication": "2026-11-06 06:41:11 UTC",
  "RemoteUrl": "https://github.com/enricoschumann/pmwr",
  "RemoteRef": "HEAD",
  "RemoteSha": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-14 09:08:29 UTC",
    "User": "root"
  },
  "Author": "Enrico Schumann [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7601-6576>)",
  "_user": "enricoschumann",
  "_type": "src",
  "_file": "PMwR_1.3-1.tar.gz",
  "_fileid": "https://r2.ropensci.org/95ed1d2200a9b942fe08e36716ff4b3546658189244629380cb362c4f7bf058d",
  "_filesize": 1416088,
  "_sha256": "95ed1d2200a9b942fe08e36716ff4b3546658189244629380cb362c4f7bf058d",
  "_expires": "2027-02-22T09:21:54.000Z",
  "_created": "2026-11-14T09:08:29.000Z",
  "_published": "2026-11-14T09:21:56.559Z",
  "_upstream": "https://github.com/enricoschumann/pmwr",
  "_status": "success",
  "_maintainer": {
    "name": "Enrico Schumann",
    "email": "es@enricoschumann.net",
    "login": "enricoschumann",
    "description": "",
    "uuid": 16351687,
    "orcid": "0000-0001-7601-6576"
  },
  "_jobs": [
    {
      "job": 132399956569,
      "time": 105,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14107254627"
    },
    {
      "job": 132399956572,
      "time": 106,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14107534214"
    },
    {
      "job": 132399956605,
      "time": 91,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14108525573"
    },
    {
      "job": 132399956641,
      "time": 108,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14107940646"
    },
    {
      "job": 132398961879,
      "time": 237,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14107618713"
    },
    {
      "job": 132399956578,
      "time": 91,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14107830591"
    },
    {
      "job": 132399956701,
      "time": 175,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14107960104"
    },
    {
      "job": 132399956644,
      "time": 179,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14107364585"
    },
    {
      "job": 132399956594,
      "time": 197,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14107379716"
    }
  ],
  "_buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098",
  "_commit": {
    "id": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
    "author": "Enrico Schumann <es@enricoschumann.net>",
    "committer": "Enrico Schumann <es@enricoschumann.net>",
    "message": "Prepare version 1.3-1\n\nFrom the NEWS file:\n\no fixed: despite 'trade.at.open', 'btest' always reported\n  close prices in the trade journal. (The actual computations\n  for wealth etc. used the open price and were correct.)\n  Reported by Max Thomasberger in\n  https://blechturm.com/articles/fastest-backtester-plain-r/\n",
    "time": 1793947271
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "NMOF",
      "role": "Imports"
    },
    {
      "package": "datetimeutils",
      "role": "Imports"
    },
    {
      "package": "fastmatch",
      "role": "Imports"
    },
    {
      "package": "orgutils",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "textutils",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "zoo",
      "role": "Imports"
    },
    {
      "package": "crayon",
      "role": "Suggests"
    },
    {
      "package": "rbenchmark",
      "role": "Suggests"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    }
  ],
  "_owner": "enricoschumann",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-48",
      "n": 2
    },
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2025-51",
      "n": 3
    },
    {
      "week": "2026-04",
      "n": 1
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 1
    },
    {
      "week": "2026-25",
      "n": 1
    },
    {
      "week": "2026-26",
      "n": 1
    },
    {
      "week": "2026-34",
      "n": 11
    },
    {
      "week": "2026-39",
      "n": 1
    },
    {
      "week": "2026-40",
      "n": 1
    },
    {
      "week": "2026-41",
      "n": 8
    },
    {
      "week": "2026-42",
      "n": 3
    },
    {
      "week": "2026-43",
      "n": 6
    },
    {
      "week": "2026-45",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v1.2-0",
      "date": "2025-12-17"
    },
    {
      "name": "v1.3-0_CRAN",
      "date": "2026-10-19"
    },
    {
      "name": "v1.3-1",
      "date": "2026-11-06"
    }
  ],
  "_topics": [
    "accounting",
    "backtesting",
    "backtesting-trading-strategies",
    "equity-trading",
    "financial-data",
    "financial-portfolio-management"
  ],
  "_stars": 66,
  "_contributors": [
    {
      "user": "enricoschumann",
      "count": 1307,
      "uuid": 16351687
    }
  ],
  "_userbio": {
    "uuid": 16351687,
    "type": "user",
    "name": "Enrico Schumann",
    "followers": 46
  },
  "_downloads": {
    "count": 684,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PMwR"
  },
  "_devurl": "https://github.com/enricoschumann/pmwr",
  "_searchresults": 31,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/PMwR.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/enricoschumann/pmwr",
  "_realowner": "enricoschumann",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.10-1",
      "date": "2018-10-28"
    },
    {
      "version": "0.11-0",
      "date": "2019-04-01"
    },
    {
      "version": "0.11-1",
      "date": "2019-06-03"
    },
    {
      "version": "0.12-0",
      "date": "2019-08-26"
    },
    {
      "version": "0.14-0",
      "date": "2020-03-11"
    },
    {
      "version": "0.15-0",
      "date": "2020-10-19"
    },
    {
      "version": "0.16-0",
      "date": "2021-01-19"
    },
    {
      "version": "0.16-1",
      "date": "2021-09-18"
    },
    {
      "version": "0.17-0",
      "date": "2021-10-19"
    },
    {
      "version": "0.18-0",
      "date": "2022-10-19"
    },
    {
      "version": "0.19-1",
      "date": "2023-06-05"
    },
    {
      "version": "0.19-3",
      "date": "2023-10-19"
    },
    {
      "version": "0.19-5",
      "date": "2024-07-21"
    },
    {
      "version": "1.0-1",
      "date": "2024-10-19"
    },
    {
      "version": "1.1-0",
      "date": "2025-10-19"
    },
    {
      "version": "1.2-0",
      "date": "2025-12-17"
    },
    {
      "version": "1.3-0",
      "date": "2026-10-19"
    }
  ],
  "_exports": [
    ".pl",
    ".pl_stats",
    ".returns",
    "as.journal",
    "as.NAVseries",
    "btest",
    "close_on_first",
    "div_adjust",
    "drawdowns",
    "instrument",
    "instrument<-",
    "is_valid_ISIN",
    "is_valid_SEDOL",
    "is.journal",
    "journal",
    "limit",
    "NAVseries",
    "pl",
    "plot_trading_hours",
    "plotTradingHours",
    "position",
    "pricetable",
    "q32",
    "quote32",
    "rc",
    "rebalance",
    "replace_weight",
    "returns",
    "scale_to_unity",
    "scale_trades",
    "scale1",
    "split_adjust",
    "split_trades",
    "streaks",
    "tw_exposure",
    "unit_prices",
    "valuation"
  ],
  "_datasets": [
    {
      "name": "DAX",
      "title": "Deutscher Aktienindex (DAX)",
      "object": "DAX",
      "class": [
        "data.frame"
      ],
      "fields": [
        "DAX"
      ],
      "rows": 505,
      "table": true,
      "tojson": true
    },
    {
      "name": "REXP",
      "title": "REXP",
      "object": "REXP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "REXP"
      ],
      "rows": 502,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "PMwR-package",
      "title": "Tools for the Management of Financial Portfolios",
      "topics": [
        "PMwR-package",
        "PMwR"
      ]
    },
    {
      "page": "adjust-series",
      "title": "Adjust Time Series for Dividends and Splits",
      "topics": [
        "div_adjust",
        "split_adjust"
      ]
    },
    {
      "page": "btest",
      "title": "Backtesting Investment Strategies",
      "concept": [
        "Backtesting"
      ],
      "topics": [
        "btest"
      ]
    },
    {
      "page": "DAX",
      "title": "Deutscher Aktienindex (DAX)",
      "topics": [
        "DAX"
      ]
    },
    {
      "page": "drawdowns",
      "title": "Compute Drawdowns",
      "topics": [
        "drawdowns",
        "drawdowns.default",
        "drawdowns.zoo"
      ]
    },
    {
      "page": "instrument",
      "title": "Retrieve or Change Instrument",
      "topics": [
        "instrument",
        "instrument<-"
      ]
    },
    {
      "page": "is_valid_ISIN",
      "title": "Validate Security Identification Numbers",
      "topics": [
        "is_valid_ISIN",
        "is_valid_SEDOL"
      ]
    },
    {
      "page": "journal",
      "title": "Journal",
      "topics": [
        "aggregate.journal",
        "all.equal.journal",
        "as.data.frame.journal",
        "as.journal",
        "as.journal.journal",
        "c.journal",
        "head.journal",
        "is.journal",
        "journal",
        "journal.default",
        "length.journal",
        "print.journal",
        "sort.journal",
        "split.journal",
        "subset.journal",
        "summary.journal",
        "tail.journal",
        "[.journal",
        "[<-.journal"
      ]
    },
    {
      "page": "NAVseries",
      "title": "Net-Asset-Value (NAV) Series",
      "topics": [
        "as.data.frame.summary.NAVseries",
        "as.NAVseries",
        "NAVseries",
        "plot.NAVseries",
        "print.NAVseries",
        "summary.NAVseries",
        "window.NAVseries"
      ]
    },
    {
      "page": "pl",
      "title": "Profit and Loss",
      "topics": [
        ".pl",
        ".pl_stats",
        "as.data.frame.pl",
        "pl",
        "pl.data.frame",
        "pl.default",
        "pl.journal",
        "pl.pl",
        "print.pl"
      ]
    },
    {
      "page": "plot_trading_hours",
      "title": "Plot Time Series During Trading Hours",
      "topics": [
        "plotTradingHours",
        "plot_trading_hours"
      ]
    },
    {
      "page": "position",
      "title": "Aggregate Transactions to Positions",
      "topics": [
        "as.matrix.position",
        "position",
        "position.btest",
        "position.default",
        "position.journal",
        "print.position"
      ]
    },
    {
      "page": "pricetable",
      "title": "Price Table",
      "topics": [
        "pricetable",
        "[.pricetable"
      ]
    },
    {
      "page": "quote32",
      "title": "Treasury Quotes with 1/32nds of Point",
      "topics": [
        "q32",
        "quote32"
      ]
    },
    {
      "page": "rc",
      "title": "Return Contribution",
      "topics": [
        "rc"
      ]
    },
    {
      "page": "rebalance",
      "title": "Rebalance Portfolio",
      "topics": [
        "print.rebalance",
        "rebalance",
        "replace_weight"
      ]
    },
    {
      "page": "returns",
      "title": "Compute Returns",
      "topics": [
        ".returns",
        "print.p_returns",
        "p_returns",
        "returns",
        "returns.default",
        "returns.zoo",
        "toHTML.p_returns",
        "toLatex.p_returns"
      ]
    },
    {
      "page": "REXP",
      "title": "REXP",
      "topics": [
        "REXP"
      ]
    },
    {
      "page": "scale1",
      "title": "Scale Time Series",
      "topics": [
        "scale1",
        "scale1.default",
        "scale1.zoo"
      ]
    },
    {
      "page": "streaks",
      "title": "Up and Down Streaks",
      "topics": [
        "streaks",
        "streaks.default",
        "streaks.NAVseries",
        "streaks.zoo"
      ]
    },
    {
      "page": "toHTML",
      "title": "Import from package 'textutils'",
      "topics": [
        "toHTML"
      ]
    },
    {
      "page": "trade-analysis",
      "title": "Analysing Trades: Compute Profit/Loss, Resize and more",
      "topics": [
        "close_on_first",
        "limit",
        "scale_to_unity",
        "scale_trades",
        "split_trades",
        "tw_exposure"
      ]
    },
    {
      "page": "unit_prices",
      "title": "Compute Prices for Portfolio Based on Units",
      "topics": [
        "unit_prices"
      ]
    },
    {
      "page": "valuation",
      "title": "Valuation",
      "topics": [
        "valuation",
        "valuation.journal",
        "valuation.position"
      ]
    }
  ],
  "_readme": "https://github.com/enricoschumann/pmwr/raw/HEAD/README.md",
  "_rundeps": [
    "datetimeutils",
    "fastmatch",
    "lattice",
    "NMOF",
    "orgutils",
    "textutils",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "Computing_returns.Rnw",
      "filename": "Computing_returns.pdf",
      "title": "Computing Returns",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-20 15:50:17",
      "modified": "2025-12-17 13:04:21",
      "commits": 7
    },
    {
      "source": "Drawdowns_streaks.Rnw",
      "filename": "Drawdowns_streaks.pdf",
      "title": "Drawdowns and Streaks",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2018-08-31 19:31:46",
      "modified": "2025-12-17 13:04:21",
      "commits": 5
    },
    {
      "source": "FinTeX.Rnw",
      "filename": "FinTeX.pdf",
      "title": "FinTeX",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-08-17 20:19:26",
      "modified": "2026-06-24 11:59:27",
      "commits": 14
    },
    {
      "source": "An_overview_of_PMwR.Rnw",
      "filename": "An_overview_of_PMwR.pdf",
      "title": "Overview of the PMwR package",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2016-02-19 08:13:39",
      "modified": "2026-08-18 09:29:25",
      "commits": 30
    },
    {
      "source": "pl_open_positions.Rnw",
      "filename": "pl_open_positions.pdf",
      "title": "Profit/Loss for Open Positions",
      "engine": "utils::Sweave",
      "headings": [
        "How to use vprice",
        "Examples"
      ],
      "created": "2017-11-20 15:50:17",
      "modified": "2026-10-19 09:30:37",
      "commits": 9
    },
    {
      "source": "rc_return_constribution.Rnw",
      "filename": "rc_return_constribution.pdf",
      "title": "Return contribution",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2026-08-18 09:29:25",
      "modified": "2026-10-19 09:30:37",
      "commits": 4
    },
    {
      "source": "q32.Rnw",
      "filename": "q32.pdf",
      "title": "Treasury Quotes with 1/32 Fractions",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2017-11-21 14:06:04",
      "modified": "2025-12-17 13:04:21",
      "commits": 7
    }
  ],
  "_score": 8.059093656382343,
  "_indexed": true,
  "_nocasepkg": "pmwr",
  "_universes": [
    "enricoschumann"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3-1",
      "date": "2026-11-14T09:10:20.000Z",
      "distro": "resolute",
      "commit": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
      "fileid": "https://r2.ropensci.org/d76fb7e2adbeca3e97a5324d801a567011bf145951b730390b541712967c30e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.3-1",
      "date": "2026-11-14T09:10:16.000Z",
      "distro": "resolute",
      "commit": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
      "fileid": "https://r2.ropensci.org/8d6d930b6f20007efa217c6366406e803a608c7869888ee3f304a708d2c0b73a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3-1",
      "date": "2026-11-14T09:21:13.000Z",
      "commit": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
      "fileid": "https://r2.ropensci.org/fd4e44f752755ad52a0a5aedf90138cc48e884e257e99b8728e700824e7bb744",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.3-1",
      "date": "2026-11-14T09:19:04.000Z",
      "commit": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
      "fileid": "https://r2.ropensci.org/9fe72bea2d330f3799880455c248f94ea666fc3aac60ca2f47fc2096943aab93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3-1",
      "date": "2026-11-14T09:10:25.000Z",
      "commit": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
      "fileid": "https://r2.ropensci.org/62c4ec8a1d7403229632852da9b654af6a09b250f90b97a73831a5ef1e465b8d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3-1",
      "date": "2026-11-14T09:10:50.000Z",
      "commit": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
      "fileid": "https://r2.ropensci.org/3f317cc860e27f2f5a4564c4b94ce29463b329ce6e011cc7743237e98aed5d90",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3-1",
      "date": "2026-11-14T09:10:36.000Z",
      "commit": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
      "fileid": "https://r2.ropensci.org/7bce290053049653e39db7ef5f5e3ce8ab4421323d6b595edb08168d872634c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.3-1",
      "date": "2026-11-14T09:10:45.000Z",
      "commit": "30fe6b02c82ecefa0fafff6e40f77c2df3eab956",
      "fileid": "https://r2.ropensci.org/e5a0d6837fc593eb17291ec95d049c694808ba7f61772ab321a98ea5c6734f1b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/enricoschumann/actions/runs/43578808098"
    }
  ]
}