https://github.com/effectiveaf/fuck-the-suits
r/wallstreetbets crowd amplification. Graphs which companies are most shorted by Wall Street scumbags.
https://github.com/effectiveaf/fuck-the-suits
data-viz finance justice lets-do-this reddit svelte wall-street-bets
Last synced: 3 months ago
JSON representation
r/wallstreetbets crowd amplification. Graphs which companies are most shorted by Wall Street scumbags.
- Host: GitHub
- URL: https://github.com/effectiveaf/fuck-the-suits
- Owner: EffectiveAF
- License: other
- Created: 2021-01-31T01:30:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-05T23:55:22.000Z (almost 3 years ago)
- Last Synced: 2023-03-11T05:11:56.903Z (about 2 years ago)
- Topics: data-viz, finance, justice, lets-do-this, reddit, svelte, wall-street-bets
- Language: JavaScript
- Homepage: https://fuckthesuits.effective.af/
- Size: 2.94 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Fuck the Suits
For far too long, The Suits have served their own selfish interests
above the rights of the majority -- and gotten away with it.Until now.
## Run Dev Environment
```
# Clone this repo
npm i
npm run build
npm run dev# Or
npm i && npm run build && npm run dev
```Now visit !
## Getting short_volume Data
Top 6 most shorted companies in the last 5 trading days, assuming
there were no holidays in the last week:```
fuckthesuits=# SELECT symbol, SUM(short_volume) AS total FROM daily_short_volume WHERE date > now() - interval '1d' * 7 GROUP BY symbol ORDER BY total DESC LIMIT 6;
```Get the latest data on the above companies, assuming the top 6 didn't change:
```sql
fuckthesuits=# do $body$ declare _symbol text; _date text; _short_volume int; symbols text[] := array['SNDL', 'NAKD', 'AMC', 'CTRM', 'ZOM', 'NOK']; begin FOREACH _symbol IN ARRAY symbols LOOP SELECT date, short_volume FROM daily_short_volume WHERE symbol = _symbol AND date = '2021-02-03' INTO _date, _short_volume; RAISE NOTICE '%: ["%", %]', _symbol, _date, _short_volume; END LOOP; end; $body$;
```## Attributions
- Priyanjit Dey for our fork of `svelte-fusioncharts/`