Git Product home page Git Product logo

-bcky's Introduction


^BCKY

everyone's favorite index fund from r/WallStreetBets, after $SPY.


This is a joke project

This project started because of this reddit post by u/motorboatbwbwb, which is an updated version of this post, which is preceded by this post from r/investing, which refers to this comment about this news article.

Fantasy Indices

The following are the descriptions and performances of indices currently tracked by this project. This section is automatically generated whenever the indices are updated. charts might not show up because of this.

$SPY

Not one day goes by without a $SPY FD post on the WSB.

component weight
SPY 1
<iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/$SPY candlestick.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe> <iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/$SPY mountain.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe>

^BCKY.A

^BCKY.A tracks the fewest stocks. It uses the composition from this post.

component weight
AAPL 6
ETSY 22
LRLCF 4
LULU 8
LVMHF 3
PLNT 19
SBUX 16
ULTA 4
<iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^BCKY.A candlestick.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe> <iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^BCKY.A mountain.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe>

^BCKY.B

^BCKY.B is a much longer, and possibly over-done extension to ^BCKY.A. It uses the composition from this post. In addition to what is in ^BCKY.A, it has the following components:

component weight
AAPL 6
COTY 155
DECK 8
DEO 7
EL 8
ETSY 22
FIZZ 14
LB 40
LRLCF 4
LULU 8
LVMHF 3
NFLX 4
NKE 14
PLNT 19
SBUX 16
SNAP 186
TGT 15
TIF 13
UAA 57
ULTA 4
VFC 15
<iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^BCKY.B candlestick.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe> <iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^BCKY.B mountain.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe>

^BCKY.V

^BCKY.V uses the composition from that r/investing post.

component weight
AAPL 6
ADDYY 9
DECK 8
DEO 7
DIS 9
EL 8
ETSY 22
FB 8
FIZZ 14
GOOS 23
LB 40
LRLCF 4
LULU 8
LVMHF 3
NFLX 4
NKE 14
SBUX 16
SNAP 186
TGT 15
TIF 13
UAA 57
ULTA 4
<iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^BCKY.V candlestick.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe> <iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^BCKY.V mountain.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe>

^KREN

^KREN is from this r/WallStreetBets post.

Faceplace is Instaspam for old dried up Beckies ― u/Doc_Emmett_L_Brown

component weight
ADDYY 9
AVP 676
FB 8
KSS 15
SBUX 16
TGT 15
TM 9
<iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^KREN candlestick.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe> <iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^KREN mountain.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe>

^RTRD

Just like the WSB, ^RTRD's components are all very retarded. It's quite self-explanatory.

component weight
BYND 22
SHMP 54054
YRIV 267
<iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^RTRD candlestick.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe> <iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/^RTRD mountain.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe>

performance comparison between indices:

<iframe id="chart-iframe" scrolling="no" style="margin:0; border:none; overflow:hidden;" seamless="seamless" src="docs/plots/comparison.html" height="525" width="100%" onload="AdjustIframeHeightOnLoad()"></iframe>

caveats

My code stinks. Don’t blindly trust it.

I haven't figured out how to take market holidays off the x-axis. Please help me if you know how.

The stocks for MC and OR I use in the portfolios are $LVMHF and $LRLCF instead of $MC.PA and $OR.PA because I'm too lazy to do currency conversions, although it is quite simple to get the exchange reate from IEX.

This thing doesn't handle stock splits and portfolio rebalances, yet. I have some sort of an idea of how it might be done, but I'm too lazy to do it for now. Luckily none of the companies in the portfolios have splits scheduled, as far as I know.

For all the candlestick charts, the open and close quotes are accurates, but the highs and lows are likely not. The highs and lows are the sum of an index’s components’ highs and lows. To get accurate highs and lows, I would need tick data, but that would exhaust my free IEX accoun's message quota quite quickly. I don't even know if I have enough quota for one day's worth of tick data.

weighting

Throw $1000 into each ticker at the epoch (2019-01-01), then round the number of shares to the nearest integer.

build/play with the code

Just clone it and run ./update

git clone https://github.com/zvooz/-BCKY.git
cd -BCKY
./update

./update -h for more information

Data provided for free by IEX Cloud. View IEX’s Terms of Use

WTFPL <script type="text/javascript"> function AdjustIframeHeightOnLoad() { document.getElementById("chart-iframe").style.height = document.getElementById("chart-iframe").contentWindow.document.body.scrollHeight + "px"; } function AdjustIframeHeight(i) { document.getElementById("chart-iframe").style.height = parseInt(i) + "px"; } </script>

-bcky's People

Contributors

zvooz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.