mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-07 09:52:13 +00:00
* Making pa active + pa minor features Makes pa actice and adds country to the df. The groupby command also gets percents of holding allocation. It also fixes warnings and prepares for a later pr that I'm currently working on. * Fix linting * black linter * Fixes Should fix everything * Linting * Making pa controller to base class standard * Fix linting * Refactor API to accept Crypto Symbol as an input argument * Crypto API fixes * Fixes * Linting * Linting * More linting * Fixes * Tests : cryptocurrency/helper * Tests : cryptocurrency/glassnode * Pytest : Cryptocurrency/due_diligence * Pytest : cryptocurrency/discovery * Pytest : cryptocurrency/due_diligence * Remove not a needed function argument * Linting * Test fixes * Fixing mentioned fixes * Test fixes * Tests: cryptocurrency/defi * Fix linting * Final test fixes Co-Authored-By: Chavithra <6114398+Chavithra@users.noreply.github.com> * Fix merge * Linting * Fixing error * Linting * Removed long link Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt> Co-authored-by: Minh Hoang <nminh.hoang1023@gmail.com> Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com> Co-authored-by: Chavithra PARANA <chavithra@gmail.com> Co-authored-by: Chavithra <6114398+Chavithra@users.noreply.github.com>
34 lines
1006 B
Python
34 lines
1006 B
Python
"""Crypto context API."""
|
|
import os
|
|
from openbb_terminal.helper_classes import ModelsNamespace as _models
|
|
|
|
# flake8: noqa
|
|
# pylint: disable=unused-import
|
|
|
|
# Context root level functions
|
|
from .cryptocurrency_helpers import load
|
|
from .cryptocurrency_helpers import find
|
|
from .cryptocurrency_helpers import plot_chart as chart
|
|
from .cryptocurrency_helpers import plot_candles as candles
|
|
|
|
# Context menus
|
|
from .defi import defi_api as defi
|
|
from .discovery import discovery_api as disc
|
|
from .due_diligence import due_diligence_api as dd
|
|
from .nft import nft_api as nft
|
|
from .onchain import onchain_api as onchain
|
|
from .overview import overview_api as ov
|
|
from .technical_analysis import ta_api as ta
|
|
from .due_diligence.finbrain_crypto_view import (
|
|
display_crypto_sentiment_analysis as headlines,
|
|
)
|
|
|
|
try:
|
|
from .prediction_techniques import pred_api as pred
|
|
except Exception:
|
|
# print("Prediction API is not available.")
|
|
pass
|
|
|
|
# Models
|
|
models = _models(os.path.abspath(os.path.dirname(__file__)))
|