mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 15:32:04 +00:00
* fix show version * update login prompt and account * update set preference * fix account controller * block login/logout if not called from account * change conditions to start terminal * fix required args account model * add not to login command * pylint * accounte controller messages * set default user when logout * logout then show menu * remove unused functions * fix logging bug * ruff * fix account unittests * fix session unittests * refactor colors preference * no theme, no party * add colors sync * dynamic theme * add comment * add colors to settings * ruff * linting * update menu desc * adjust keys sync flag * write to dotenv sync flag * english * fix pull command * fix edge cases * handle some errors * small bug * change func name * pylint * no light * colors preview * ruff * fix login logout preferences * ruff * delete folder * pylint * default, custom, hub * fix clear * docstring * add preference exceptions * set only rich style * request theme only if hub * linting * change guest msg * add option to update chart style on the fly * apply style * rollback to old terminal style * fix console theme * remove print * remove hub rich style * ruff * mypy * black * Hub | Add sources sync (#4565) * Add sources model * adapt session model * fetch sources dict * rename local funcs * set sources inside current user * set sources inside current user * generate sources dict from hub * fix dict generator * send request to hub * fix conflict * revert datasources to develop head * fix docstring * avoid invalid patch types * add default option to sources * fix small bug on sources * ruff * black * remove ( * mypy failing only on git * ignore mypy * pylint * fix settings controller * Tests: fix keys model writing to .env * fix keys controller test writing to .env * ruff * Test: fix account controller * Test: fix account controller pull * Tests: fix launch terminal * Test: add sources to user object * Tests: fix clear cmd tests * ruff * revert core/sdk changes * TerminalStyle docstring * upload config docstring * remove comment * remove unecessary pylint disable * revert openbb_terminal/sdk changes * Terminal style docstring * docstring * remove unecessary changes * add TODO * add other todo * Tests: prevent sync from being written in .env * change clear msg * display sources source on menu * update settings controller * display keys source * black * sync not needed for pull * remove sync from apply configs * change func name for consistency * Update test_keys_model.py * save rich style in user folder * search recursively inside styles * set hub theme by default * remove debug print * allow any plot style * comment plotstyle sync for now * fix sources set terminal to hub * ruff * rewrite cassettes * remove repeated settings * rewrite expected
71 lines
2.5 KiB
Python
71 lines
2.5 KiB
Python
from typing import Optional
|
|
|
|
from pydantic.dataclasses import dataclass
|
|
|
|
from openbb_terminal.core.models import BaseModel
|
|
|
|
# pylint: disable=too-many-instance-attributes, disable=no-member, useless-parent-delegation
|
|
|
|
|
|
@dataclass(config=dict(validate_assignment=True, frozen=True))
|
|
class CredentialsModel(BaseModel):
|
|
"""Model for credentials."""
|
|
|
|
# Data providers
|
|
API_DATABENTO_KEY: str = "REPLACE_ME"
|
|
API_KEY_ALPHAVANTAGE: str = "REPLACE_ME"
|
|
API_KEY_FINANCIALMODELINGPREP: str = "REPLACE_ME"
|
|
API_KEY_QUANDL: str = "REPLACE_ME"
|
|
API_POLYGON_KEY: str = "REPLACE_ME"
|
|
API_FRED_KEY: str = "REPLACE_ME"
|
|
API_NEWS_TOKEN: str = "REPLACE_ME"
|
|
API_CMC_KEY: str = "REPLACE_ME"
|
|
API_FINNHUB_KEY: str = "REPLACE_ME"
|
|
API_IEX_TOKEN: str = "REPLACE_ME"
|
|
API_SENTIMENTINVESTOR_TOKEN: str = "REPLACE_ME"
|
|
API_WHALE_ALERT_KEY: str = "REPLACE_ME"
|
|
API_GLASSNODE_KEY: str = "REPLACE_ME"
|
|
API_COINGLASS_KEY: str = "REPLACE_ME"
|
|
API_ETHPLORER_KEY: str = "REPLACE_ME"
|
|
API_CRYPTO_PANIC_KEY: str = "REPLACE_ME"
|
|
API_BITQUERY_KEY: str = "REPLACE_ME"
|
|
API_SMARTSTAKE_KEY: str = "REPLACE_ME"
|
|
API_SMARTSTAKE_TOKEN: str = "REPLACE_ME"
|
|
API_MESSARI_KEY: str = "REPLACE_ME"
|
|
API_SHROOM_KEY: str = "REPLACE_ME"
|
|
API_SANTIMENT_KEY: str = "REPLACE_ME"
|
|
API_EODHD_KEY: str = "REPLACE_ME"
|
|
API_TOKEN_TERMINAL_KEY: str = "REPLACE_ME"
|
|
API_STOCKSERA_KEY: str = "REPLACE_ME"
|
|
API_INTRINIO_KEY: str = "REPLACE_ME"
|
|
API_TRADIER_TOKEN: str = "REPLACE_ME"
|
|
|
|
# Socials
|
|
API_GITHUB_KEY: str = "REPLACE_ME"
|
|
API_REDDIT_CLIENT_ID: str = "REPLACE_ME"
|
|
API_REDDIT_CLIENT_SECRET: str = "REPLACE_ME"
|
|
API_REDDIT_USERNAME: str = "REPLACE_ME"
|
|
API_REDDIT_USER_AGENT: str = "REPLACE_ME"
|
|
API_REDDIT_PASSWORD: str = "REPLACE_ME"
|
|
API_TWITTER_KEY: str = "REPLACE_ME"
|
|
API_TWITTER_SECRET_KEY: str = "REPLACE_ME"
|
|
API_TWITTER_BEARER_TOKEN: str = "REPLACE_ME"
|
|
|
|
# Brokers or data providers with brokerage services
|
|
RH_USERNAME: str = "REPLACE_ME"
|
|
RH_PASSWORD: str = "REPLACE_ME"
|
|
DG_USERNAME: str = "REPLACE_ME"
|
|
DG_PASSWORD: str = "REPLACE_ME"
|
|
DG_TOTP_SECRET: Optional[str] = None
|
|
OANDA_ACCOUNT_TYPE: str = "REPLACE_ME"
|
|
OANDA_ACCOUNT: str = "REPLACE_ME"
|
|
OANDA_TOKEN: str = "REPLACE_ME"
|
|
API_BINANCE_KEY: str = "REPLACE_ME"
|
|
API_BINANCE_SECRET: str = "REPLACE_ME"
|
|
API_COINBASE_KEY: str = "REPLACE_ME"
|
|
API_COINBASE_SECRET: str = "REPLACE_ME"
|
|
API_COINBASE_PASS_PHRASE: str = "REPLACE_ME"
|
|
|
|
def __repr__(self) -> str:
|
|
return super().__repr__()
|