Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
ashioyajotham committed Jan 11, 2025
1 parent 8eb7557 commit 86a39d5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 49 deletions.
1 change: 0 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
isort . --check-only --diff
- name: Lint
run: |
flake8 . --count --statistics
bandit -r .
- name: Security check
run: |
Expand Down
3 changes: 1 addition & 2 deletions scripts/analyze.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import sys
from pathlib import Path
from typing import Dict, List
from typing import Dict

import numpy as np
import pandas as pd

# Add project root to path
root_dir = str(Path(__file__).parent.parent)
sys.path.insert(0, root_dir)
from utils.config import ConfigManager


class PerformanceAnalyzer:
Expand Down
9 changes: 3 additions & 6 deletions scripts/backtest.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import asyncio
import sys
from pathlib import Path
from typing import Dict, List

from strategies.base_strategy import BaseStrategy
import pandas as pd
from typing import Dict

# Add project root to path
root_dir = str(Path(__file__).parent.parent)
sys.path.insert(0, root_dir)
from strategies.base_strategy import BaseStrategy
from utils.config import ConfigManager
sys.path.append(root_dir)


class Backtester:
Expand Down
15 changes: 11 additions & 4 deletions scripts/live_trade.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import asyncio
from typing import Dict, List
import sys
from pathlib import Path
from typing import Dict

from ..services.trading.broker_service import BrokerService
from ..strategies.base_strategy import BaseStrategy
from ..utils.config import ConfigManager

from services.trading.broker_service import BrokerService
from strategies.base_strategy import BaseStrategy
from utils.config import ConfigManager

# Add project root to path
root_dir = str(Path(__file__).parent.parent)
sys.path.append(root_dir)


class LiveTrader:
Expand Down
15 changes: 7 additions & 8 deletions scripts/start_bot.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import asyncio
import os
import platform
import sys
from pathlib import Path
from services.data_feeds.market_data_service import MarketDataService
from services.data_feeds.news_service import NewsService
from services.trading.broker_service import BrokerService
from strategies.hybrid.hybrid_strategy import HybridStrategy
from utils.config import ConfigManager
from utils.logging import LogManager


from dotenv import load_dotenv

Expand All @@ -14,13 +20,6 @@
root_dir = str(Path(__file__).parent.parent)
sys.path.insert(0, root_dir)

from services.data_feeds.market_data_service import MarketDataService
from services.data_feeds.news_service import NewsService
from services.trading.broker_service import BrokerService
from strategies.hybrid.hybrid_strategy import HybridStrategy
from utils.config import ConfigManager
from utils.logging import LogManager


def parse_interval(interval_str: str) -> int:
"""Convert time interval string to seconds"""
Expand Down
28 changes: 0 additions & 28 deletions setup.cfg

This file was deleted.

0 comments on commit 86a39d5

Please sign in to comment.