Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change JSON output format to have ticker primary keys #47

Open
d3an opened this issue Sep 3, 2020 · 2 comments
Open

Change JSON output format to have ticker primary keys #47

d3an opened this issue Sep 3, 2020 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers refactor Refactor or simplify existing code

Comments

@d3an
Copy link
Owner

d3an commented Sep 3, 2020

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 d3an added enhancement New feature or request good first issue Good for newcomers refactor Refactor or simplify existing code labels Sep 3, 2020
@d3an
Copy link
Owner Author

d3an commented Feb 21, 2022

Research whether or not this is a good idea.

@cksidharthan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers refactor Refactor or simplify existing code
Projects
None yet
Development

No branches or pull requests

2 participants