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

Updated stocks-ws_extra.py example #505

Merged
merged 2 commits into from
Aug 25, 2023
Merged

Updated stocks-ws_extra.py example #505

merged 2 commits into from
Aug 25, 2023

Conversation

justinpolygon
Copy link
Contributor

@justinpolygon justinpolygon commented Aug 25, 2023

Updated the output format and added 5x snapshot and rolling totals.

Here's a snapshot of the output:

  --- Past 5 seconds ---
   Tickers seen (5s): 1697
    Trades seen (5s): 12335
    Cash traded (5s): 88,849,414.33

  --- Running Totals ---
  Total Tickers seen: 13848
   Total Trades seen: 22775838
   Total Cash traded: 178,499,702,488.96

----------------------------------------------------------------------------------------------------

Ticker         Trades (5s)         Cash (5s)           Total Trades        Total Cash
NVDA           445                 6,933,283.61        632550              18,291,747,596.36
TSLA           279                 8,144,556.76        639585              11,319,594,268.07
NVDL           277                 3,748,806.85        10451               99,902,192.88
TELL           171                 78,424.03           6154                3,710,200.38
AFRM           163                 968,984.99          224338              745,895,134.93
AAPL           134                 2,359,278.02        304572              2,932,389,741.58
QQQ            132                 5,788,859.71        246679              11,003,577,730.48
NVDS           130                 598,047.04          7846                48,854,967.44
SOXL           127                 786,026.38          189184              719,639,349.26
AMD            116                 1,549,180.08        304704              3,713,351,432.39
SPY            113                 6,628,554.14        278926              15,435,607,506.98
MSFT           109                 1,600,861.75        148047              2,396,824,971.18
SQQQ           88                  1,006,330.83        173406              2,065,760,858.90
TQQQ           83                  717,574.40          296021              2,580,097,288.27
PLUG           82                  106,542.65          31921               53,825,007.27
ITB            75                  455,902.33          23369               185,892,273.60
AVGO           71                  1,955,826.79        31586               633,629,812.65
STX            71                  273,681.77          8420                34,141,139.17
XPEV           68                  234,765.41          41284               127,781,104.54
OIH            55                  662.12              2964                65,848,514.45
XEL            54                  197,642.42          18524               103,054,857.37
XLU            53                  850,017.20          35963               291,891,266.17
ARRY           52                  164,056.54          11354               23,001,537.49
META           52                  1,457,535.82        150793              2,717,344,906.63
PLTR           52                  147,743.93          86456               396,851,801.06

Current Time: 2023-08-25 08:27:14.602075 | App Uptime: 04:49:40 | Time taken: 0.003417 seconds

Copy link

@mmoghaddam385 mmoghaddam385 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@justinpolygon justinpolygon merged commit 9283470 into master Aug 25, 2023
@justinpolygon justinpolygon deleted the jw-ticker-tempo branch August 25, 2023 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants