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

Merging some more PRs, this time auto-mergable #41

Closed
wants to merge 13 commits into from

Conversation

c0sc0
Copy link
Contributor

@c0sc0 c0sc0 commented Aug 2, 2020

see #32 #33 #34 #40

shout out to @alexshirley for the pandas refactor!

@c0sc0
Copy link
Contributor Author

c0sc0 commented Aug 3, 2020

Confirmed the off-by-one bug (fixed it already), just ran the fixed script and it picked up $ADT, $DPHC, $DTSS, $FORD, and $HIHO for today

@SamPom100

processes weren't quitting
probably needs further testing
@c0sc0
Copy link
Contributor Author

c0sc0 commented Aug 3, 2020

Now tracking number of deviations from mean. The dynamic site handles multi-variate sorting so I cranked down the STD limit and it's working great!

(I commented out the customPrints because they were starting to slow down the script with a bunch of hits, left it there for testing purposes but everything's printed out at the end)

also started a todo list in the readme

@c0sc0
Copy link
Contributor Author

c0sc0 commented Aug 3, 2020

Can now rescan directly from the dynamic web interface!

Will try rescanning on a timer and make the dynamic page auto refresh so I can toss this onto a Hetzner box or a DO droplet or something. In the meantime, this is LAN-only. Should really add a server-side mutex on reloading but whatever (don't want to give users that control anyways hahaha)

@SamPom100

Reloading

Reloaded

@c0sc0
Copy link
Contributor Author

c0sc0 commented Aug 3, 2020

Also, the dynamic site (mostly the input validation) is hilariously broken on mobile (in portrait). Not really worried about it tbh. Just be careful ;)

edit: nevermind, flexbox fixes everything (except for the input). Ticker in table is still cut off but landscape looks good

@SamPom100
Copy link
Owner

new website looks good, but most people have been browsing from mobile so I'd like it to work in portrait and scale. Fixed the T-1 bug. Also, most of the feedback I got on reddit asked for easy variables to adjust, thats why I declare them above instead of as arguments.

@c0sc0
Copy link
Contributor Author

c0sc0 commented Aug 4, 2020

I'm working on fixing portrait now (damn DataTables)

The reason I did it with member variables is so I can import the scanner module in a different script and change things up like i do in flask_server when rescanning

stonk_search = mainObj(_month_cuttoff=month_cut,_day_cuttoff=day_cut,_std_cuttoff=std_cut)

Will add command line arguments (eg, python market_scanner.py 6 3 9) and if they aren't provided, prompt the user to enter their cutoffs (and suggest defaults). Sounds like a good compromise!

@c0sc0 c0sc0 marked this pull request as draft August 5, 2020 04:31
 - track %change and premarket % change (prev close -> open) [PM% is wrong sometimes & i don't know why]

- fully responsive dynamic site

- setting the groundwork for autorefresh
am dumb
would like to dynamically update table data with AJAX
@alexshirley
Copy link

Tyyyyler, wrap up this PR!

@c0sc0
Copy link
Contributor Author

c0sc0 commented Aug 5, 2020

hahaha sorry I just kept on adding shit

@alexshirley
Copy link

alexshirley commented Aug 5, 2020 via email

@Stjernex24
Copy link

Also, the dynamic site (mostly the input validation) is hilariously broken on mobile (in portrait). Not really worried about it tbh. Just be careful ;)

edit: nevermind, flexbox fixes everything (except for the input). Ticker in table is still cut off but landscape looks good

Only works for desktop atm got it. Noticed major delay for ticker ALIM around 3pm or so on mobile. What could I do to get the alert asap

@c0sc0
Copy link
Contributor Author

c0sc0 commented Aug 5, 2020

am a GitHub scrub ;) will fix my shit when I get home

@c0sc0 c0sc0 closed this Aug 5, 2020
@c0sc0
Copy link
Contributor Author

c0sc0 commented Aug 6, 2020

Tyyyyler, wrap up this PR!

wrapped! #49

@alexshirley
Copy link

alexshirley commented Aug 6, 2020 via email

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.

None yet

4 participants