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

Terminal Docs Auto Generation #3438

Merged
merged 49 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
9089593
init
tehcoderer Nov 16, 2022
c25e987
Update generate_terminal_markdown.py
tehcoderer Nov 16, 2022
87d3176
Update generate_terminal_markdown.py
tehcoderer Nov 16, 2022
aa4dc63
moved folders out of common into root
tehcoderer Nov 16, 2022
96451cb
remove cat from trail if sub in [ ba, ta, qa ]
tehcoderer Nov 16, 2022
5657996
Update generate_terminal_markdown.py
tehcoderer Nov 16, 2022
78ba5b9
un-indented example images
tehcoderer Nov 16, 2022
9d2278d
Update generate_terminal_markdown.py
tehcoderer Nov 16, 2022
f5b4e27
Update generate_terminal_markdown.py
tehcoderer Nov 16, 2022
4a067b7
Update generate_terminal_markdown.py
tehcoderer Nov 17, 2022
c91c4be
replace ✨ with 🦋
tehcoderer Nov 17, 2022
dcf54c8
Update regression_model.py
tehcoderer Nov 17, 2022
0694acc
Merge branch 'OpenBB-finance:main' into terminal-autogen-docs
tehcoderer Nov 17, 2022
70f9d0c
updates
tehcoderer Nov 17, 2022
bbc15be
up
tehcoderer Nov 17, 2022
d390797
Merge branch 'terminal-autogen-docs' of https://github.com/tehcoderer…
tehcoderer Nov 17, 2022
87e898f
Merge branch 'main' into terminal-autogen-docs
tehcoderer Nov 17, 2022
9fa792a
Merge branch 'OpenBB-finance:main' into terminal-autogen-docs
tehcoderer Nov 17, 2022
9dbf3af
fix missing type hints, added defaults to sdk generation
tehcoderer Nov 17, 2022
a19dcc4
typing
tehcoderer Nov 18, 2022
29f39ee
Merge branch 'main' into terminal-autogen-docs
tehcoderer Nov 18, 2022
77b35ae
typing
tehcoderer Nov 18, 2022
596287b
Merge branch 'main' into terminal-autogen-docs
tehcoderer Nov 18, 2022
1674657
Merge branch 'main' into terminal-autogen-docs
tehcoderer Nov 18, 2022
57059b2
datetime defaults, fix dict_keys([]) in choices
tehcoderer Nov 18, 2022
f70e3ab
Merge branch 'terminal-autogen-docs' of https://github.com/tehcoderer…
tehcoderer Nov 18, 2022
1abe7d3
fix regression docstring, added divider on markdowns
tehcoderer Nov 18, 2022
fcc8c0d
Merge branch 'OpenBBTerminal-main' of https://github.com/tehcoderer/O…
tehcoderer Nov 18, 2022
b925d31
Merge branch 'main' into terminal-autogen-docs
tehcoderer Nov 18, 2022
d2d7f5e
Merge branch 'main' into terminal-autogen-docs
tehcoderer Nov 20, 2022
66cab18
Merge branch 'OpenBB-finance:main' into terminal-autogen-docs
tehcoderer Nov 21, 2022
27bb217
fix get_hcp portfolio trailmap
tehcoderer Nov 21, 2022
ec6478d
Merge branch 'main' into terminal-autogen-docs
tehcoderer Nov 21, 2022
7104ed9
Update generate_sdk_markdown.py
tehcoderer Nov 21, 2022
59a8730
Update generate_sdk_markdown.py
tehcoderer Nov 21, 2022
b5d22bc
Merge branch 'main' into terminal-autogen-docs
tehcoderer Nov 21, 2022
c4a7bb3
Update generate_sdk_markdown.py
tehcoderer Nov 21, 2022
30f27f6
Merge branch 'terminal-autogen-docs' of https://github.com/tehcoderer…
tehcoderer Nov 21, 2022
53394c5
Update generate_sdk_markdown.py
tehcoderer Nov 21, 2022
ce03153
Update generate_sdk_markdown.py
tehcoderer Nov 21, 2022
b7595b8
Merge branch 'main' into terminal-autogen-docs
Chavithra Nov 21, 2022
5216e89
Update .gitignore
Chavithra Nov 21, 2022
e26ef07
Making it more 3.9 friendly
Chavithra Nov 21, 2022
2409b5c
Update controller_doc_classes.py
tehcoderer Nov 21, 2022
1f0f25c
Update generate_sdk_markdown.py
tehcoderer Nov 21, 2022
e63fd51
Merge branch 'terminal-autogen-docs' of github.com:tehcoderer/OpenBBT…
Chavithra Nov 21, 2022
9b9063f
Update controller_doc_classes.py
tehcoderer Nov 21, 2022
5da4327
Merge branch 'terminal-autogen-docs' of https://github.com/tehcoderer…
tehcoderer Nov 21, 2022
71a0f42
Merge branch 'main' into terminal-autogen-docs
Chavithra Nov 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ openbb_terminal/portfolio/portfolios/*
.coverage.*
!openbb_terminal/reports/templates/*.ipynb
*_tests.csv
*_sdk_audit.csv
website/terminaltest
Copy link
Contributor

Choose a reason for hiding this comment

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

What is that?


# pyinstaller artifacts
*.pyo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_coin_twitter_timeline(

@log_start_end(log=logger)
def get_coin_events_by_id(
symbol: str = "BTC", sortby="date", ascend: bool = False
symbol: str = "BTC", sortby: str = "date", ascend: bool = False
) -> pd.DataFrame:
"""Get all events related to given coin like conferences, start date of futures trading etc.
[Source: CoinPaprika]
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/cryptocurrency/nft/nftpricefloor_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_collections() -> pd.DataFrame:


@log_start_end(log=logger)
def get_floor_price(slug) -> pd.DataFrame:
def get_floor_price(slug: str) -> pd.DataFrame:
"""Get nft collections [Source: https://nftpricefloor.com/]

Parameters
Expand Down
11 changes: 6 additions & 5 deletions openbb_terminal/cryptocurrency/onchain/bitquery_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def display_ethereum_unique_senders(
@log_start_end(log=logger)
@check_api_key(["API_BITQUERY_KEY"])
def display_most_traded_pairs(
exchange="Uniswap",
exchange: str = "Uniswap",
days: int = 10,
limit: int = 10,
sortby: str = "tradeAmount",
Expand All @@ -297,16 +297,17 @@ def display_most_traded_pairs(

Parameters
----------
exchange:
exchange: str
Decentralized exchange name
days:
days: int
Number of days taken into calculation account.
sortby: str
Key by which to sort data
ascend: bool
Flag to sort data ascending
export : str
Export dataframe data to csv,json,xlsx file

Returns
-------
pd.DataFrame
Expand Down Expand Up @@ -344,8 +345,8 @@ def display_most_traded_pairs(
@log_start_end(log=logger)
@check_api_key(["API_BITQUERY_KEY"])
def display_spread_for_crypto_pair(
symbol="WETH",
to_symbol="USDT",
symbol: str = "WETH",
to_symbol: str = "USDT",
limit: int = 10,
sortby: str = "date",
ascend: bool = True,
Expand Down
10 changes: 5 additions & 5 deletions openbb_terminal/cryptocurrency/onchain/ethplorer_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def get_top_tokens(sortby: str = "rank", ascend: bool = False) -> pd.DataFrame:

@log_start_end(log=logger)
def get_top_token_holders(
address, sortby: str = "balance", ascend: bool = True
address: str, sortby: str = "balance", ascend: bool = True
) -> pd.DataFrame:
"""Get info about top token holders. [Source: Ethplorer]

Expand Down Expand Up @@ -334,7 +334,7 @@ def get_top_token_holders(

@log_start_end(log=logger)
def get_address_history(
address, sortby: str = "timestamp", ascend: bool = True
address: str, sortby: str = "timestamp", ascend: bool = True
) -> pd.DataFrame:
"""Get information about balance historical transactions. [Source: Ethplorer]

Expand Down Expand Up @@ -441,7 +441,7 @@ def get_token_info(address) -> pd.DataFrame:


@log_start_end(log=logger)
def get_tx_info(tx_hash) -> pd.DataFrame:
def get_tx_info(tx_hash: str) -> pd.DataFrame:
"""Get info about transaction. [Source: Ethplorer]

Parameters
Expand Down Expand Up @@ -487,7 +487,7 @@ def get_tx_info(tx_hash) -> pd.DataFrame:

@log_start_end(log=logger)
def get_token_history(
address, sortby: str = "timestamp", ascend: bool = False
address: str, sortby: str = "timestamp", ascend: bool = False
) -> pd.DataFrame:
"""Get info about token historical transactions. [Source: Ethplorer]

Expand Down Expand Up @@ -543,7 +543,7 @@ def get_token_history(

@log_start_end(log=logger)
def get_token_historical_price(
address,
address: str,
sortby: str = "date",
ascend: bool = False,
) -> pd.DataFrame:
Expand Down
Loading