mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 04:31:13 +00:00
Add unusual whales website to discovery menu
This commit is contained in:
@@ -8,6 +8,7 @@ from discovery import seeking_alpha_api
|
|||||||
from discovery import fidelity_api
|
from discovery import fidelity_api
|
||||||
from discovery import simply_wallst_api
|
from discovery import simply_wallst_api
|
||||||
from discovery import spachero_api
|
from discovery import spachero_api
|
||||||
|
from discovery import unusual_whales_api
|
||||||
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------------------------------
|
||||||
@@ -21,13 +22,14 @@ def print_discovery():
|
|||||||
print("")
|
print("")
|
||||||
print(" map S&P500 index stocks map [Finviz]")
|
print(" map S&P500 index stocks map [Finviz]")
|
||||||
print(" sectors show sectors performance [Alpha Vantage]")
|
print(" sectors show sectors performance [Alpha Vantage]")
|
||||||
print(" sw Simply Wall St. research data [Simply Wall St.]")
|
|
||||||
print(" spachero Best website for SPACs research [SpacHero]")
|
|
||||||
print(" gainers show latest top gainers [Yahoo Finance]")
|
print(" gainers show latest top gainers [Yahoo Finance]")
|
||||||
print(" orders Orders by Fidelity Customers [Fidelity]")
|
print(" orders Orders by Fidelity Customers [Fidelity]")
|
||||||
print(" earnings next earnings release dates [Seeking Alpha]")
|
print(" earnings next earnings release dates [Seeking Alpha]")
|
||||||
print(" high_short show top high short interest stocks of over 20% ratio [www.highshortinterest.com]")
|
print(" high_short show top high short interest stocks of over 20% ratio [www.highshortinterest.com]")
|
||||||
print(" low_float show low float stocks under 10M shares float [www.lowfloat.com]")
|
print(" low_float show low float stocks under 10M shares float [www.lowfloat.com]")
|
||||||
|
print(" sw Simply Wall St. research data [Simply Wall St.]")
|
||||||
|
print(" spachero Best website for SPACs research [SpacHero]")
|
||||||
|
print(" uwhales Good website for SPACs research [UnusualWhales]")
|
||||||
print("")
|
print("")
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -39,7 +41,7 @@ def disc_menu():
|
|||||||
disc_parser = argparse.ArgumentParser(prog='discovery', add_help=False)
|
disc_parser = argparse.ArgumentParser(prog='discovery', add_help=False)
|
||||||
disc_parser.add_argument('cmd', choices=['help', 'q', 'quit',
|
disc_parser.add_argument('cmd', choices=['help', 'q', 'quit',
|
||||||
'map', 'sectors', 'gainers', 'spacs', 'orders', 'spachero',
|
'map', 'sectors', 'gainers', 'spacs', 'orders', 'spachero',
|
||||||
'high_short', 'low_float', 'earnings', 'sw'])
|
'high_short', 'low_float', 'earnings', 'sw', 'uwhales'])
|
||||||
|
|
||||||
print_discovery()
|
print_discovery()
|
||||||
|
|
||||||
@@ -83,6 +85,10 @@ def disc_menu():
|
|||||||
elif ns_known_args.cmd == 'spachero':
|
elif ns_known_args.cmd == 'spachero':
|
||||||
spachero_api.spachero(l_args)
|
spachero_api.spachero(l_args)
|
||||||
|
|
||||||
|
# -------------------------------------------------- UNUSUAL WHALES --------------------------------------------------
|
||||||
|
elif ns_known_args.cmd == 'uwhales':
|
||||||
|
unusual_whales_api.unusual_whales(l_args)
|
||||||
|
|
||||||
# --------------------------------------------------- FIDELITY ---------------------------------------------------
|
# --------------------------------------------------- FIDELITY ---------------------------------------------------
|
||||||
elif ns_known_args.cmd == 'orders':
|
elif ns_known_args.cmd == 'orders':
|
||||||
fidelity_api.orders(l_args)
|
fidelity_api.orders(l_args)
|
||||||
|
|||||||
19
discovery/unusual_whales_api.py
Normal file
19
discovery/unusual_whales_api.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import argparse
|
||||||
|
import webbrowser
|
||||||
|
|
||||||
|
# ---------------------------------------------------- UNUSUAL WHALES ----------------------------------------------------
|
||||||
|
def unusual_whales(l_args):
|
||||||
|
parser = argparse.ArgumentParser(prog='unusual_whales', description='''Good website for SPACs research''')
|
||||||
|
|
||||||
|
try:
|
||||||
|
(ns_parser, l_unknown_args) = parser.parse_known_args(l_args)
|
||||||
|
|
||||||
|
if l_unknown_args:
|
||||||
|
print(f"The following args couldn't be interpreted: {l_unknown_args}")
|
||||||
|
|
||||||
|
webbrowser.open(f"https://unusualwhales.com/spacs")
|
||||||
|
print("")
|
||||||
|
|
||||||
|
except SystemExit:
|
||||||
|
print("")
|
||||||
|
return
|
||||||
Reference in New Issue
Block a user