finviz icon indicating copy to clipboard operation
finviz copied to clipboard

Change JSON output format to have ticker primary keys

Open d3an opened this issue 5 years ago • 2 comments

Ex.

[
  {
    "A": {
      "Avg Volume": "1.47M",
      "Change": "0.00%",
      "No.": 1,
      "Perf Half": "28.54%",
      "Perf Month": "6.04%",
      "Perf Quart": "13.47%",
      "Perf Week": "4.12%",
      "Perf YTD": "21.23%",
      "Perf Year": "45.95%",
      "Price": 103.42,
      "Recom": "2.40",
      "Rel Volume": 0.97,
      "Ticker": "A",
      "Volatility M": "1.80%",
      "Volatility W": "1.82%",
      "Volume": 0
    },
    "AA": {
      "Avg Volume": "7.33M",
      "Change": "0.00%",
      "No.": 2,
      "Perf Half": "23.38%",
      "Perf Month": "7.32%",
      "Perf Quart": "26.03%",
      "Perf Week": "-2.65%",
      "Perf YTD": "-31.80%",
      "Perf Year": "-19.75%",
      "Price": 14.67,
      "Recom": "2.70",
      "Rel Volume": 0.77,
      "Ticker": "AA",
      "Volatility M": "4.72%",
      "Volatility W": "4.12%",
      "Volume": 0
    }
  }
]

instead of

[
  {
    "Avg Volume": "1.47M",
    "Change": "0.00%",
    "No.": 1,
    "Perf Half": "28.54%",
    "Perf Month": "6.04%",
    "Perf Quart": "13.47%",
    "Perf Week": "4.12%",
    "Perf YTD": "21.23%",
    "Perf Year": "45.95%",
    "Price": 103.42,
    "Recom": "2.40",
    "Rel Volume": 0.97,
    "Ticker": "A",
    "Volatility M": "1.80%",
    "Volatility W": "1.82%",
    "Volume": 0
  },
  {
    "Avg Volume": "7.33M",
    "Change": "0.00%",
    "No.": 2,
    "Perf Half": "23.38%",
    "Perf Month": "7.32%",
    "Perf Quart": "26.03%",
    "Perf Week": "-2.65%",
    "Perf YTD": "-31.80%",
    "Perf Year": "-19.75%",
    "Price": 14.67,
    "Recom": "2.70",
    "Rel Volume": 0.77,
    "Ticker": "AA",
    "Volatility M": "4.72%",
    "Volatility W": "4.12%",
    "Volume": 0
  }
]

d3an avatar Sep 03 '20 13:09 d3an

Research whether or not this is a good idea.

d3an avatar Feb 21 '22 22:02 d3an

are you still looking for help with this change? If yes, I can help :)

cksidharthan avatar Dec 26 '22 18:12 cksidharthan