Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [
version = "0.1.0"
description = "A quantitative finance library and cli for systematic trading"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
Expand All @@ -20,6 +20,7 @@ dependencies = [

[project.optional-dependencies]
dev = [
"pip>=25.3",
"pytest>=9.0.2",
"pyinstaller>=6.17.0",
"twine>=6.2.0",
Expand All @@ -30,7 +31,7 @@ Homepage = "https://github.com/rodionlim/quantlib-st"
Issues = "https://github.com/rodionlim/quantlib-st/issues"

[project.scripts]
quantlib = "cli.main:main"
quantlib = "quantlib_st.cli.main:main"

[tool.setuptools.package-dir]
"" = "src"
Expand All @@ -40,8 +41,8 @@ where = ["src"]
include = ["*"]

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
testpaths = ["src/tests"]
pythonpath = ["src/quantlib_st"]

[build-system]
requires = ["setuptools>=80.9", "wheel"]
Expand Down
2 changes: 1 addition & 1 deletion quantlib_launcher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cli.main import main
from quantlib_st.cli.main import main

if __name__ == "__main__":
main()
3 changes: 0 additions & 3 deletions src/cli/__init__.py

This file was deleted.

File renamed without changes.
3 changes: 3 additions & 0 deletions src/quantlib_st/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__all__ = ["main"]

from quantlib_st.cli.main import main
2 changes: 1 addition & 1 deletion src/cli/__main__.py → src/quantlib_st/cli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cli.main import main
from quantlib_st.cli.main import main


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion src/cli/corr_cmd.py → src/quantlib_st/cli/corr_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import pandas as pd

from correlation.correlation_over_time import (
from quantlib_st.correlation.correlation_over_time import (
correlation_over_time_for_returns,
correlation_list_to_jsonable,
)
Expand Down
4 changes: 2 additions & 2 deletions src/cli/costs_cmd.py → src/quantlib_st/cli/costs_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import pandas as pd
from io import StringIO

from costs.data_source import ConfigFileCostDataSource, IBKRCostDataSource
from costs.calculator import (
from quantlib_st.costs.data_source import ConfigFileCostDataSource, IBKRCostDataSource
from quantlib_st.costs.calculator import (
calculate_sr_cost,
calculate_annualized_volatility,
calculate_recent_average_price,
Expand Down
4 changes: 2 additions & 2 deletions src/cli/main.py → src/quantlib_st/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import argparse

from cli.corr_cmd import add_corr_subcommand
from cli.costs_cmd import add_costs_subcommand
from quantlib_st.cli.corr_cmd import add_corr_subcommand
from quantlib_st.cli.costs_cmd import add_costs_subcommand


def main(argv: list[str] | None = None) -> int:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import numpy as np
import pandas as pd
from costs.config import InstrumentCostConfig

from quantlib_st.costs.config import InstrumentCostConfig


def calculate_annualized_volatility(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json
from abc import ABC, abstractmethod
from costs.config import InstrumentCostConfig
from quantlib_st.costs.config import InstrumentCostConfig


class CostDataSource(ABC):
Expand Down
File renamed without changes.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import pandas as pd

from correlation.exponential_correlation import (
from quantlib_st.correlation.exponential_correlation import (
ExponentialCorrelationResults,
CorrelationEstimate,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd

from correlation.fitting_dates import (
from quantlib_st.correlation.fitting_dates import (
generate_fitting_dates,
IN_SAMPLE,
EXPANDING,
Expand Down
104 changes: 103 additions & 1 deletion uv.lock

Large diffs are not rendered by default.

Loading