Commit Graph

138 Commits

Author SHA1 Message Date
Sam Germain
c26bee5601 Added tests for set_liquidation_price and set_stop_loss, updated params in interestmode enum, updated leverage docs 2021-07-12 22:13:34 -06:00
Sam Germain
93d4332012 Removed unneccessary whitespace 2021-07-10 22:39:39 -06:00
Sam Germain
6083568d56 Updated interest and ratio calculations to correct functions 2021-07-10 20:44:57 -06:00
Sam Germain
c753bd0ddc updated ratio_calc_profit function 2021-07-08 05:37:54 -06:00
Sam Germain
e7d6fac553 Added docstrings to methods 2021-07-08 00:51:41 -06:00
Sam Germain
963bb89087 ran isort . 2021-07-08 00:12:39 -06:00
Sam Germain
e1fca320e6 passed mypy 2021-07-07 22:51:10 -06:00
Sam Germain
8f5150e831 Flake8 compliant 2021-07-07 22:24:30 -06:00
Sam Germain
769f72e5ee All persistence margin tests pass 2021-07-07 21:14:08 -06:00
Sam Germain
79d394058f Changed InterestMode enum implementation 2021-07-07 21:04:38 -06:00
Sam Germain
03595bf951 Took liquidation price out of order 2021-07-07 20:21:02 -06:00
Sam Germain
057c380597 uncommented liquidation_price in order object 2021-07-07 01:30:42 -06:00
Sam Germain
11f5dae143 set initial_stop_loss in stoploss helper 2021-07-06 22:34:08 -06:00
Sam Germain
ea4271ef34 Tried to add liquidation price to order object, caused a test to fail 2021-07-06 00:43:01 -06:00
Sam Germain
925558b6b0 updated timezone.utc time 2021-07-06 00:18:03 -06:00
Sam Germain
2fedbfbcd2 Added checks for making sure stop_loss doesn't go below liquidation_price 2021-07-06 00:07:14 -06:00
Sam Germain
116eeb050f Moved interest calculation to an enum 2021-07-05 21:48:56 -06:00
Sam Germain
4984595ddf Merge branch 'develop' into margin-db 2021-07-05 01:04:21 -06:00
Sam Germain
20b806528f Set default leverage to 1.0 2021-07-04 23:12:07 -06:00
Sam Germain
d84534cd96 Long tests passing 2021-07-04 22:14:00 -06:00
Sam Germain
356ec4e44a Most of the short tests work again 2021-07-04 04:14:39 -06:00
Sam Germain
6b20a315e3 Updated tests to new persistence 2021-07-04 00:27:54 -06:00
Sam Germain
243173d2be Merge branch 'margin-db' of https://github.com/samgermain/freqtrade into margin-db 2021-07-03 21:24:54 -06:00
Matthias
e358860a69 Fix migrations, revert some parts related to amount properties 2021-07-03 17:03:12 +02:00
Sam Germain
76693800d9 all tests written for margin-db, but a lot fail 2021-07-03 03:09:43 -06:00
Sam Germain
17d562cbc8 Updated ratio calculation, updated short tests 2021-07-02 02:02:00 -06:00
Eugene Schava
d54de72471 "/profit N" command should print best pair for the same period of time, not for all trades 2021-06-28 23:42:09 +03:00
Sam Germain
bf68fbe109 Kraken interest test comes really close to passing 2021-06-28 10:01:18 -06:00
Sam Germain
636de6d629 Made borrowed a computed property 2021-06-28 08:36:47 -06:00
Sam Germain
35a8c7bf53 Turned amount into a computed property 2021-06-28 08:19:20 -06:00
Sam Germain
25b7c7f43b persistence short stoploss test 2021-06-28 05:19:18 -06:00
Sam Germain
1bcab12b8f Added tests for interest and assigning leverage 2021-06-28 03:30:21 -06:00
Sam Germain
562f4309db test_calc_profit on shorts 2021-06-28 02:31:25 -06:00
Sam Germain
c98b9ab768 margin test_trade_close 2021-06-27 23:46:22 -06:00
Sam Germain
26fb904512 Third test should pass, but it's always slightly off 2021-06-27 04:55:30 -06:00
Sam Germain
13ec7610bf Two margin tests pass now, although 3 persistance tests fail due the field in Trade being _leverage instead of leverage 2021-06-27 03:38:56 -06:00
Sam Germain
5667c1ef23 added exception checks to LocalTrade.leverage and LocalTrade.borrowed 2021-06-27 00:19:58 -06:00
Sam Germain
57896e9ee9 Added types to setters 2021-06-26 21:34:58 -06:00
Sam Germain
4bd8a1b595 Set leverage and borowed to computed properties 2021-06-26 21:10:50 -06:00
Sam Germain
b77f39cfcb Wrote 1 test for shorting, not 2 tests, definately not 3 tests, 1 single test 2021-06-26 02:18:00 -06:00
Sam Germain
c6a818eb17 Created interest function 2021-06-22 21:17:14 -06:00
Sam Germain
759f563631 All previous pytests pass 2021-06-22 02:55:53 -06:00
Sam Germain
85632eec05 A lot of the pytests pass now, 1562 pass, 3 fail 2021-06-22 02:22:16 -06:00
Sam Germain
a9bd0700ed Adding templates for leverage/short tests 2021-06-21 21:26:31 -06:00
Sam Germain
9891c6e111 Fixed breaking changes, can run the bot again 2021-06-20 15:34:05 -06:00
Sam Germain
6c7c07d7c6 updated collateral_currency 2021-06-20 15:06:36 -06:00
Sam Germain
62226fe58c Added changes suggested in pull request, except for collateral_currency 2021-06-20 14:49:07 -06:00
Sam Germain
73dbc7a2f4 Added changed to persistance/migrations 2021-06-20 02:25:22 -06:00
Sam Germain
e6a137d5b4 Updated Trade class 2021-06-20 00:58:38 -06:00
Sam Germain
abe0b3e3bd Updated LocalTrade and Order classes 2021-06-19 22:06:51 -06:00