Commit Graph

22560 Commits

Author SHA1 Message Date
Matthias
feea20fb0a
Merge pull request #9151 from freqtrade/refactor/calc_profits
Refactor calculate profits
2023-09-05 06:26:04 +02:00
Matthias
2ed52a77e5
Merge pull request #9142 from freqtrade/dependabot/pip/develop/pandas-2.1.0
Bump pandas from 2.0.3 to 2.1.0
2023-09-05 06:22:06 +02:00
Matthias
e854667eb8 Add max_drawdown_start and end to /profit API endpoints 2023-09-04 20:09:59 +02:00
Matthias
7bf20d9060 Show drawdown from/to on /profit calls 2023-09-04 20:09:59 +02:00
Matthias
7c5a11623e Use dt_ts_def in profit endpoints 2023-09-04 20:09:32 +02:00
Matthias
783a2d945e add dt_ts_def helper 2023-09-04 20:09:32 +02:00
Matthias
2073c71811 use format_date in rpc methods 2023-09-04 20:09:32 +02:00
Matthias
d8122962db Add "date to string" helper 2023-09-04 20:09:32 +02:00
Matthias
1ea626fb5b Pin pandas for <3.9 versions to old version 2023-09-04 19:57:10 +02:00
Robert Caulk
f66719fc1f
Merge pull request #9150 from freqtrade/dependabot/pip/develop/catboost-1.2.1
Bump catboost from 1.2 to 1.2.1
2023-09-04 10:14:03 +02:00
Matthias
4b2813ff37
Merge pull request #9147 from freqtrade/dependabot/pip/develop/pytest-7.4.1
Bump pytest from 7.4.0 to 7.4.1
2023-09-04 09:54:54 +02:00
Matthias
191c85bccc
Merge pull request #9140 from freqtrade/dependabot/pip/develop/mkdocs-material-9.2.7
Bump mkdocs-material from 9.2.5 to 9.2.7
2023-09-04 09:21:09 +02:00
Stefano Ariestasia
31816cdb2a
Merge branch 'freqtrade:develop' into bt-metrics 2023-09-04 15:44:47 +09:00
dependabot[bot]
574744348a
Bump pandas from 2.0.3 to 2.1.0
Bumps [pandas](https://github.com/pandas-dev/pandas) from 2.0.3 to 2.1.0.
- [Release notes](https://github.com/pandas-dev/pandas/releases)
- [Commits](https://github.com/pandas-dev/pandas/compare/v2.0.3...v2.1.0)

---
updated-dependencies:
- dependency-name: pandas
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 06:16:30 +00:00
dependabot[bot]
efb9975e3e
Bump pytest from 7.4.0 to 7.4.1
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.0 to 7.4.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.0...7.4.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 06:16:21 +00:00
Matthias
cd8743b80c
Merge pull request #9144 from freqtrade/dependabot/pip/develop/ccxt-4.0.81
Bump ccxt from 4.0.76 to 4.0.81
2023-09-04 08:15:46 +02:00
Matthias
237f3c58c8
Merge pull request #9148 from freqtrade/dependabot/pip/develop/pre-commit-3.4.0
Bump pre-commit from 3.3.3 to 3.4.0
2023-09-04 08:14:44 +02:00
Matthias
be7b0e4247
Merge pull request #9149 from freqtrade/dependabot/pip/develop/ruff-0.0.287
Bump ruff from 0.0.286 to 0.0.287
2023-09-04 08:14:28 +02:00
dependabot[bot]
5954e7796c
Bump mkdocs-material from 9.2.5 to 9.2.7
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.2.5 to 9.2.7.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.2.5...9.2.7)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 06:13:54 +00:00
Matthias
f44eef3855
Merge pull request #9146 from freqtrade/dependabot/pip/develop/pymdown-extensions-10.3
Bump pymdown-extensions from 10.1 to 10.3
2023-09-04 08:13:12 +02:00
Matthias
0232eeca54
Merge pull request #9143 from freqtrade/dependabot/pip/develop/fastapi-0.103.1
Bump fastapi from 0.103.0 to 0.103.1
2023-09-04 08:12:56 +02:00
Matthias
f5f0506a29
Merge pull request #9141 from freqtrade/dependabot/pip/develop/python-telegram-bot-20.5
Bump python-telegram-bot from 20.4 to 20.5
2023-09-04 08:12:18 +02:00
Matthias
39b6a00224 Improve naming of calculate_profit method 2023-09-04 06:42:16 +02:00
Matthias
206557d4b7
Merge pull request #9145 from freqtrade/dependabot/pip/develop/nbconvert-7.8.0
Bump nbconvert from 7.7.4 to 7.8.0
2023-09-04 06:31:52 +02:00
Matthias
07e07bd66b Improve test, ensuring we calculate profits correctly 2023-09-04 06:28:29 +02:00
Matthias
fac8e0fde5 Remove calc_profit content 2023-09-04 06:28:29 +02:00
Matthias
ffb1cf52b1 Convert further usages to calc_profit_combined 2023-09-04 06:28:29 +02:00
Matthias
399f144c27 more calc_profit_combined usage 2023-09-04 06:28:29 +02:00
Matthias
459b9d80d4 use calc_profit_combined 2023-09-04 06:28:29 +02:00
Matthias
28e685ee2b Switch combined profit response to dataclass 2023-09-04 06:28:29 +02:00
Matthias
c58a1649cb add calc_profit_combined call 2023-09-04 06:28:29 +02:00
Matthias
a4512ac791
Merge pull request #9139 from freqtrade/dependabot/pip/develop/filelock-3.12.3
Bump filelock from 3.12.2 to 3.12.3
2023-09-04 06:23:07 +02:00
dependabot[bot]
ac6cdb76ce
Bump catboost from 1.2 to 1.2.1
Bumps [catboost](https://github.com/catboost/catboost) from 1.2 to 1.2.1.
- [Release notes](https://github.com/catboost/catboost/releases)
- [Changelog](https://github.com/catboost/catboost/blob/master/RELEASE.md)
- [Commits](https://github.com/catboost/catboost/compare/v1.2...v1.2.1)

---
updated-dependencies:
- dependency-name: catboost
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:03:12 +00:00
dependabot[bot]
8ac3e8ad5f
Bump ruff from 0.0.286 to 0.0.287
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.286 to 0.0.287.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.286...v0.0.287)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:02:59 +00:00
dependabot[bot]
e0f52696a5
Bump pre-commit from 3.3.3 to 3.4.0
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.3.3 to 3.4.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v3.3.3...v3.4.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:02:45 +00:00
dependabot[bot]
f75f0ccf2c
Bump pymdown-extensions from 10.1 to 10.3
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 10.1 to 10.3.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/10.1.0...10.3)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:02:26 +00:00
dependabot[bot]
440f6ab8e1
Bump nbconvert from 7.7.4 to 7.8.0
Bumps [nbconvert](https://github.com/jupyter/nbconvert) from 7.7.4 to 7.8.0.
- [Release notes](https://github.com/jupyter/nbconvert/releases)
- [Changelog](https://github.com/jupyter/nbconvert/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jupyter/nbconvert/compare/v7.7.4...v7.8.0)

---
updated-dependencies:
- dependency-name: nbconvert
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:02:16 +00:00
dependabot[bot]
e7daf3177d
Bump ccxt from 4.0.76 to 4.0.81
Bumps [ccxt](https://github.com/ccxt/ccxt) from 4.0.76 to 4.0.81.
- [Release notes](https://github.com/ccxt/ccxt/releases)
- [Changelog](https://github.com/ccxt/ccxt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ccxt/ccxt/compare/4.0.76...4.0.81)

---
updated-dependencies:
- dependency-name: ccxt
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:02:11 +00:00
dependabot[bot]
8ffc0ad9fc
Bump fastapi from 0.103.0 to 0.103.1
Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.103.0 to 0.103.1.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.103.0...0.103.1)

---
updated-dependencies:
- dependency-name: fastapi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:01:59 +00:00
dependabot[bot]
df83bdea8d
Bump python-telegram-bot from 20.4 to 20.5
Bumps [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) from 20.4 to 20.5.
- [Release notes](https://github.com/python-telegram-bot/python-telegram-bot/releases)
- [Changelog](https://github.com/python-telegram-bot/python-telegram-bot/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-telegram-bot/python-telegram-bot/compare/v20.4...v20.5)

---
updated-dependencies:
- dependency-name: python-telegram-bot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:01:43 +00:00
dependabot[bot]
420f6fb9a9
Bump filelock from 3.12.2 to 3.12.3
Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.12.2 to 3.12.3.
- [Release notes](https://github.com/tox-dev/py-filelock/releases)
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.12.2...3.12.3)

---
updated-dependencies:
- dependency-name: filelock
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 03:01:26 +00:00
Stefano Ariestasia
cea3f7d3fa fix flake8 2023-09-04 11:53:59 +09:00
Stefano Ariestasia
a9f63c6a99 fix mypy 2023-09-04 11:52:09 +09:00
Stefano Ariestasia
0ada2d9390 fix mypy 2023-09-04 11:45:25 +09:00
Stefano Ariestasia
e1b6b9b5a6 ruff fix 2023-09-04 11:41:24 +09:00
root
3fea2a35a2 pre-commit fixes 2023-09-04 11:38:13 +09:00
Stefano Ariestasia
821a598ff4 fix ruff 2023-09-04 11:35:44 +09:00
Stefano Ariestasia
feab5f82c1 add missing arg 2023-09-04 11:20:49 +09:00
Stefano Ariestasia
607c604a45 add mising const 2023-09-04 11:16:10 +09:00
Stefano Ariestasia
b77f926cdd add recursive analysis 2023-09-04 10:53:04 +09:00