mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
* quick econ fix * black * keys and feature flags * terminal name 👀 * some more replacements * some more replacements * edit pyproject * gst -> openbb * add example portfolios back to git * Update api from gst * sorry. skipping some tests * another round of names * another round of test edits * Missed some .gst refs and update timezone * water mark stuff * Fixing Names in terminal.spec and name of GTFF_DEFAULTS to OBBFF_DEFAULTS * fix more GST to OpenBB Terminal * Logging : merge conflicts with main * Revert wrong files Co-authored-by: Andrew <andrew.kenreich@gmail.com> Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt> Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
28 lines
1.3 KiB
Python
28 lines
1.3 KiB
Python
"""Oanda context API."""
|
|
import os
|
|
from openbb_terminal.helper_classes import ModelsNamespace as _models
|
|
|
|
# flake8: noqa
|
|
# pylint: disable=unused-import
|
|
|
|
# Context menus
|
|
|
|
from openbb_terminal.forex.oanda.oanda_view import get_fx_price as price
|
|
from openbb_terminal.forex.oanda.oanda_view import get_account_summary as summary
|
|
from openbb_terminal.forex.oanda.oanda_view import get_order_book as orderbook
|
|
from openbb_terminal.forex.oanda.oanda_view import get_position_book as positionbook
|
|
|
|
# Renamed due to python reserved word
|
|
from openbb_terminal.forex.oanda.oanda_view import list_orders as listorder
|
|
from openbb_terminal.forex.oanda.oanda_view import create_order as order
|
|
from openbb_terminal.forex.oanda.oanda_view import cancel_pending_order as cancel
|
|
from openbb_terminal.forex.oanda.oanda_view import get_open_positions as positions
|
|
from openbb_terminal.forex.oanda.oanda_view import get_pending_orders as pending
|
|
from openbb_terminal.forex.oanda.oanda_view import get_open_trades as trades
|
|
from openbb_terminal.forex.oanda.oanda_view import close_trade as closetrade
|
|
from openbb_terminal.forex.oanda.oanda_view import show_candles as candles
|
|
from openbb_terminal.forex.oanda.oanda_view import calendar
|
|
|
|
# Models
|
|
models = _models(os.path.abspath(os.path.dirname(__file__)))
|