• Operand
  • ./bin/ganged/upon.

gram: luck

> ./sample-data-old/stonks-portfolio.2.highlighter

Lenses
(coming soon!)


{
  "id": "stonks-portfolio.2",
  "name": "holdings",
  "properties": [
    {
      "name": "$",
      "formula": "${/\\\\w+/:ticker} {number:shares}@${/[\\\\d\\.]+/:cost}",
      "visibility": "HIDDEN"
    },
    {
      "name": "currentPrice",
      "formula": "TextOfHighlight(ticker) === \"GME\" ? 40 : 20",
      "visibility": "SUPERSCRIPT"
    },
    {
      "name": "col10",
      "formula": "`$${currentPrice * ParseInt(shares)}`",
      "visibility": "INLINE"
    }
  ]
}