feat: Move trading system functionality to separate module
This commit is contained in:
parent
f7fd7dc7b8
commit
2fcf238f6b
8
src/pages/trading/trading_system_page.py
Normal file
8
src/pages/trading/trading_system_page.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import streamlit as st
|
||||||
|
import pandas as pd
|
||||||
|
from datetime import datetime
|
||||||
|
from trading.journal import get_latest_portfolio_value, update_portfolio_value, get_open_trades
|
||||||
|
from trading.portfolio import Portfolio, Position
|
||||||
|
from trading.position_calculator import PositionCalculator
|
||||||
|
from pages.journal.trading_journal_page import format_datetime
|
||||||
|
|
||||||
@ -5,6 +5,7 @@ import pytz
|
|||||||
from db.db_connection import create_client
|
from db.db_connection import create_client
|
||||||
from pages.journal.trading_journal_page import trading_journal_page, format_datetime
|
from pages.journal.trading_journal_page import trading_journal_page, format_datetime
|
||||||
from pages.screener.technical_scanner_page import technical_scanner_page
|
from pages.screener.technical_scanner_page import technical_scanner_page
|
||||||
|
from pages.trading.trading_system_page import trading_system_page
|
||||||
from trading.journal import (
|
from trading.journal import (
|
||||||
create_trades_table, get_open_trades, get_trade_history,
|
create_trades_table, get_open_trades, get_trade_history,
|
||||||
get_latest_portfolio_value, update_portfolio_value
|
get_latest_portfolio_value, update_portfolio_value
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user