Sam Germain
|
0d06d7e108
|
updated mkdocs and leverage docs
Added tests for set_liquidation_price and set_stop_loss
updated params in interestmode enum
|
2021-07-26 23:09:47 -06:00 |
|
Sam Germain
|
f1dc6b54ad
|
Updated interest and ratio calculations to correct functions
|
2021-07-26 23:09:47 -06:00 |
|
Sam Germain
|
358f0303b9
|
updated ratio_calc_profit function
|
2021-07-26 23:09:47 -06:00 |
|
Sam Germain
|
546a7353df
|
Added docstrings to methods
|
2021-07-26 23:09:47 -06:00 |
|
Sam Germain
|
7f75c978a0
|
All persistence margin tests pass
Flake8 compliant, passed mypy, ran isort .
|
2021-07-26 23:09:47 -06:00 |
|
Sam Germain
|
a368dfa7b5
|
Changed InterestMode enum implementation
|
2021-07-26 23:09:47 -06:00 |
|
Sam Germain
|
86888dbbf0
|
Took liquidation price out of order completely
|
2021-07-26 23:09:47 -06:00 |
|
Sam Germain
|
98acb0f4ff
|
set initial_stop_loss in stoploss helper
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
dd6cc1153b
|
Tried to add liquidation price to order object, caused a test to fail
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
1414df5e27
|
updated timezone.utc time
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
2aa2b5bcff
|
Added checks for making sure stop_loss doesn't go below liquidation_price
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
1b202ca22e
|
Moved interest calculation to an enum
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
0d5749c508
|
Set default leverage to 1.0
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
9ddb6981dd
|
Updated tests to new persistence
|
2021-07-26 23:09:46 -06:00 |
|
Matthias
|
75b2c9ca1b
|
Fix migrations, revert some parts related to amount properties
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
25ff726921
|
Wrote all tests for shorting
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
4d057b8047
|
Updated ratio calculation, updated short tests
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
3a8a9eb255
|
Kraken interest test comes really close to passing
Added more trades to conftest_trades
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
876386d2db
|
Made borrowed a computed property
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
2a50f4ff7b
|
Turned amount into a computed property
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
da81be9050
|
About 15 margin tests pass
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
6f6deae376
|
added exception checks to LocalTrade.leverage and LocalTrade.borrowed
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
c68a0f05d8
|
Added types to setters
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
691a042e29
|
Set leverage and borowed to computed properties
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
692c55088a
|
Started some pytests for short and leverage
1 short test passes
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
b6cc3f02bf
|
Created interest function
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
613eecf16a
|
Adding templates for leverage/short tests
All previous pytests pass
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
67341aa4f2
|
Added changes suggested in pull request, fixed breaking changes,
can run the bot again
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
20dcd9a1a2
|
Added changed to persistance/migrations
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
69e81100e4
|
Updated Trade class
|
2021-07-26 23:09:46 -06:00 |
|
Sam Germain
|
a27171b371
|
Updated LocalTrade and Order classes
|
2021-07-26 23:09:46 -06:00 |
|
Matthias
|
b41c234440
|
Extract Closed profit calculation to trade object
|
2021-07-12 06:54:06 +02: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 |
|
Matthias
|
c65b4e5d3b
|
Small fix to models
|
2021-06-13 11:20:22 +02:00 |
|
Matthias
|
756904f985
|
Set sell_reason to stoploss when closing the trade as stoploss
closes #5101
|
2021-06-08 21:21:29 +02:00 |
|
Matthias
|
66de5df1d1
|
Update sqlite init method
|
2021-05-27 11:38:28 +02:00 |
|
Matthias
|
a01d05997e
|
Add Trade.commit method for easy use
|
2021-05-27 11:38:28 +02:00 |
|
Matthias
|
6fb32c3594
|
Use commit instead of .flush()
|
2021-05-27 11:38:28 +02:00 |
|
Matthias
|
eaa47ff335
|
Don't use autocommit
|
2021-05-27 11:38:28 +02:00 |
|
Matthias
|
c31cb67118
|
Further changes for sqlalchemy 1.4
|
2021-05-27 11:38:28 +02:00 |
|
Matthias
|
2f79958acb
|
Move declarative_base import to import from .orm
|
2021-05-27 11:38:28 +02:00 |
|
Matthias
|
cc064f1574
|
String columns should have a max-length defined
otherwise MySql will not work.
|
2021-05-22 10:12:23 +02:00 |
|
Matthias
|
6acb2eb2b6
|
Add average column to orders table
|
2021-05-21 20:35:39 +02:00 |
|
Matthias
|
6b2a38ccfb
|
Add absolute Profit to apiserver
|
2021-05-15 19:39:46 +02:00 |
|
Matthias
|
6eb947ae09
|
Move static Trade functions to right class
|
2021-04-28 06:37:40 +02:00 |
|
Matthias
|
9f6f3e0862
|
Address ZeroDivisionExceptiond
closes #4764 closes #4617
|
2021-04-20 21:41:49 +02:00 |
|
Matthias
|
37c8fd6ad7
|
Remove arrow from models.py
|
2021-04-13 11:55:03 +02:00 |
|
Matthias
|
9a58a85347
|
Don't export "hum" date versions for trade objects.
They are not used and have a rather high performance penalty due to
using arrow.get
|
2021-04-13 06:17:11 +02:00 |
|
Matthias
|
7132aefd60
|
Rename Trade.session to Trade._session
|
2021-04-05 08:46:12 +02:00 |
|
Matthias
|
0407bf755f
|
Use .query.session to make sure the scoped session is used properly
|
2021-04-05 07:28:51 +02:00 |
|