Sam Germain
55d91f018f
exchange._get_stake_amount_limit (merged min_pair_stake_amount and get_max_tradeable amount)
2022-02-03 20:33:04 -06:00
Sam Germain
ff5fffefb4
exchange.get_max_amount_tradable looks at cost also
2022-02-03 20:33:03 -06:00
Sam Germain
64ad810445
Revert "moved get_max_leverage to get_min_pair_stake_amount"
...
This reverts commit 90e48d5b98bcfb1452aa818a3274745eac395712.
2022-02-03 20:33:03 -06:00
Sam Germain
73319a74d3
moved get_max_leverage to get_min_pair_stake_amount
2022-02-03 20:33:03 -06:00
Sam Germain
f3b42b0ef3
wrote exchange.get_max_amount_tradable
2022-02-03 20:33:03 -06:00
Sam Germain
f58b92bb86
exchange.create_order removed default for leverage
2022-02-03 17:48:08 -06:00
Sam Germain
09f0e7149f
test__fetch_and_calculate_funding_fees_datetime_called # TODO-lev: test for longs
2022-02-02 12:42:13 -06:00
Sam Germain
30519aa3be
Changed name Collateral -> MarginMode, collateral -> margin_mode, and _supported_trading_mode_margin_pairs -> _supported_trading_margin_pairs
2022-02-01 13:05:40 -06:00
Matthias
7dd50f78cf
Small finetuning improving a comment
2022-02-01 06:37:13 +01:00
Sam Germain
9de63412c1
exchange.get_liquidation_price arguments are not optional
2022-01-31 14:00:52 -06:00
Sam Germain
43db4c34d1
added okex back to unsupported exchanges
2022-01-31 12:18:30 -06:00
Sam Germain
b8f4cebce7
exchange.liquidation_price methods combined, dry_run check on exchange for liquidation price
2022-01-31 12:18:25 -06:00
Sam Germain
143c37d36f
cleaned up liquidation price methods
2022-01-31 12:17:07 -06:00
Sam Germain
ede9012fcc
removed TODO-levs about okex liquidation price
2022-01-31 12:17:07 -06:00
Sam Germain
0c13e387fe
moved liquidation_price method to exchange classes
2022-01-31 12:16:43 -06:00
Sam Germain
1f1ac8ce9d
test_get_liquidation_price/test_get_maintenance_ratio_and_amt_binance/fill_leverage_brackets/test_validate_trading_mode_and_collateral TODO comments
2022-01-31 12:16:43 -06:00
Sam Germain
c2f9201512
Added get_liquidation_price check
2022-01-31 12:16:43 -06:00
Sam Germain
0c8205ab3b
replace single quote docstrings with double quote docstrings
2022-01-31 12:16:43 -06:00
Sam Germain
ba5fc21d84
added isolated futures to supported modes for binance,gateio
2022-01-31 12:15:54 -06:00
Sam Germain
ba02605d77
Isolated liq branch passes all tests and has the general structure that it is supposed to, but is patchy, and doesnt get the correct maintenance amt and maintenance margin rate yet
2022-01-31 12:15:54 -06:00
Sam Germain
779b82b5b4
fixed test_get_min_pair_stake_amount by adding amount.min/max and cost.min/max to all markets
2022-01-31 03:02:17 -06:00
Matthias
fdea4fcb1b
Remove some todo's
2022-01-28 15:52:12 +01:00
Matthias
bf0b95b3d8
Improve backtest tests
2022-01-22 19:46:11 +01:00
Matthias
a0c0c4dcbe
Update funding_fee formula to correctly calculate fees for long trades
2022-01-22 19:46:10 +01:00
Matthias
82c90c0049
Extract funding and mark mergin to separate method
2022-01-22 19:45:46 +01:00
Matthias
84c6d92d4c
calculate_funding_fees is actually a public exchange interface (used in backtesting).
2022-01-22 19:45:46 +01:00
Matthias
a340d73edc
Update funding_fee calculation test
2022-01-22 19:44:20 +01:00
Matthias
ef3a1ea8f2
Split funding fee calculation from Download
2022-01-22 19:44:20 +01:00
Matthias
f090dcc597
Merge branch 'develop' into feat/short
2022-01-22 17:56:01 +01:00
Matthias
6684bff963
Dry-run orders should have filled set correctly
2022-01-15 15:25:16 +01:00
Matthias
173524ea5b
Merge pull request #6170 from freqtrade/contract_workaround
...
contractSize is a string coming from ccxt
2022-01-06 16:25:19 +01:00
Matthias
431fcdd76f
contractSize is a string comming from ccxt
2022-01-06 13:53:27 +01:00
Matthias
7c3babc86c
Fix failing ftx test
2022-01-06 13:40:12 +01:00
Matthias
7f88f9bf27
Revert unintended double-call of amount conversion
2022-01-02 13:11:29 +01:00
Sam Germain
67a5739501
fixed test_get_trades_for_order for contracts
2022-01-01 15:39:16 -06:00
Sam Germain
3d4a5eab81
fixed flake8 error
2022-01-01 13:52:06 -06:00
Sam Germain
48567a1301
fixe broken test_get_min_pair_stake_amount
2022-01-01 13:52:06 -06:00
Sam Germain
230dd15ee7
fixed test_amount_to_precision
2022-01-01 13:52:06 -06:00
Sam Germain
f92d47a16b
exchange._contracts_to_amount and exchange._amount_to_contracts safe checks
2022-01-01 13:52:06 -06:00
Sam Germain
6ab0e870c2
fixed breaking test test_amount_to_precision
2022-01-01 13:52:06 -06:00
Sam Germain
d105bb764a
test__get_contract_size creates its own markets instead of using the markets from conftest
2022-01-01 13:52:06 -06:00
Sam Germain
a85566d6c3
test_exchange.test_create_order removed # assert api_mock.create_order.call_args[0][3] == 100
2022-01-01 13:52:06 -06:00
Matthias
8da596f66d
Implement PR feedback
2022-01-01 13:52:01 -06:00
Sam Germain
78d1a267f0
contract-sizes tests
2022-01-01 13:50:50 -06:00
Sam Germain
d0a300a2e1
Added TODOs
2022-01-01 13:50:49 -06:00
Sam Germain
4f6203e45f
Added conversions from contract size to amount for objects returned from api
2022-01-01 13:50:43 -06:00
Sam Germain
ee63f12236
Revert "Removed leverage param from get_min_pair_stake_amount"
...
This reverts commit 096588550ca1de5e5edf63cf7214af037d7bc93b.
2022-01-01 13:49:09 -06:00
Sam Germain
ef6ad0e6d7
Removed leverage param from get_min_pair_stake_amount
2022-01-01 13:49:09 -06:00
Matthias
ddfbe55e7c
Merge branch 'develop' into feat/short
2022-01-01 19:16:49 +01:00
Sam Germain
250edae193
test__async_get_historic_ohlcv parametrized candle_type
2021-12-31 06:00:56 -06:00
Matthias
bb65621134
Simplify test, simplify "log_*" selection
2021-12-27 17:14:59 +01:00
Matthias
54858a0bbb
Simplify test to only initialize and mock once.
2021-12-27 16:39:47 +01:00
cdimauro
f77b8cbb7a
Reduce KuCoin logs only for 429000 error
...
Only KuCoin messages for 429000 error code are logged once.
Logs functions are also simplified and optimized.
test_remove_logs_for_pairs_already_in_blacklist is simplified as well.
2021-12-26 21:09:25 +01:00
cdimauro
6509c38717
Introduce new test functions to check logs
...
New functions log_contains, num_log_contains, num_log_has and num_log_has_re
are introduced in the conftest module to help and simplify checking:
- if logs contain a string;
- count how many messages contain a string;
- count how many messages are the given string;
- count how many messages matchs a regex.
A couple of existing tests are changed using the new functions.
2021-12-26 09:49:14 +01:00
cdimauro
fbaf46901e
Reduce more KuCoin logs on retrier decorator
...
More logs are reduced, for KuCoin, on the retrier_async decorator:
_async_get_candle_history() returned exception
retrying _async_get_candle_history() still for
Giving up retrying: _async_get_candle_history()
Applying DDosProtection backoff delay
2021-12-26 09:06:26 +01:00
cdimauro
96fbf63d0b
Reduce KuCoin logs on DDosProtection error messages
...
KuCoin APIs generate A LOT of error messages.
Consequently, logs are flooded with lines like:
2021-12-25 22:30:23 freqtrade.exchange.common: WARNING -
_async_get_candle_history() returned exception:
"kucoin GET https://openapi-v2.kucoin.com/api/v1/market/candles ?
symbol=PDEX-USDT&type=5min&startAt=1640317818&endAt=1640467818
429 Too Many Requests {"code":"429000","msg":"Too Many Requests"}"
2021-12-25 22:30:23 freqtrade.exchange.common: WARNING -
retrying _async_get_candle_history() still for 3 times
2021-12-25 22:30:23 freqtrade.exchange.common: WARNING -
Kucoin 429 error, avoid triggering DDosProtection backoff delay.
2 tries left before giving up
2021-12-25 22:30:24 freqtrade.exchange.common: WARNING -
_async_get_candle_history() returned exception:
"kucoin GET https://openapi-v2.kucoin.com/api/v1/market/candles ?
symbol=UBX-USDT&type=5min&startAt=1640317821&endAt=1640467821
429 Too Many Requests {"code":"429000","msg":"Too Many Requests"}"
Messages like:
Kucoin 429 error, avoid triggering DDosProtection backoff delay.
are logged only once for a certain period of time (default is 3600 seconds).
2021-12-25 22:32:22 +01:00
Matthias
e729fad99c
Add unknown_fee_rate parameter
2021-12-11 15:26:08 +01:00
Matthias
17bd990053
Update funding_fee freqtradebot test
2021-12-11 09:49:48 +01:00
Matthias
6948414e47
Remove no longer necessary method _get_mark_price_history
2021-12-10 19:54:49 +01:00
Matthias
a87d2d62bb
Remove no longer needed method get_funding_rate_history
2021-12-10 19:52:02 +01:00
Matthias
aabca85a5f
Update _calculate_funding_fees
to reuse existing async infrastructure
2021-12-10 19:50:58 +01:00
Matthias
1a08613498
Fix parameter sequence in mock
2021-12-04 15:13:06 +01:00
Matthias
5b779fd68b
Update missing candle_type params
2021-12-03 16:44:05 +01:00
Matthias
d30aaaeaaa
Tests should also use CandleType
2021-12-03 14:27:04 +01:00
Matthias
fae7167bf3
Merge branch 'feat/short' into pr/samgermain/5780
2021-12-02 20:25:30 +01:00
Matthias
fb1599d21b
Merge branch 'develop' into feat/short
2021-12-02 20:20:35 +01:00
Matthias
d3ad4fb52e
Don't crash dry-run if orderbook side is empty
...
closes #6018
2021-12-02 19:17:47 +01:00
Matthias
22cda87211
Update some tests after merge
2021-12-02 19:05:06 +01:00
Matthias
f4d0abc51a
Merge branch 'feat/short' into pr/samgermain/5780
2021-12-02 07:09:37 +01:00
Matthias
67f3570bf3
Merge branch 'develop' into feat/short
2021-12-01 07:21:36 +01:00
Matthias
231b1e2f57
Improve Async error message content
2021-11-30 07:10:12 +01:00
Matthias
409a801763
Fix caching problem in refresh_ohlcv
...
closes #5978
2021-11-27 19:31:39 +01:00
Matthias
51e54a666c
Merge branch 'feat/short' into pr/samgermain/5780
2021-11-23 19:01:07 +01:00
Matthias
db16098981
Fix Tests
2021-11-23 17:43:37 +01:00
Sam Germain
586ca3b2fa
removed is_market_future from binance and ftx
2021-11-23 11:09:31 +01:00
Sam Germain
920151934a
Added candle_type to a lot of methods, wrote some tests
2021-11-21 17:48:14 -06:00
Sam Germain
ee2ad8ca97
updated historic data filenames to include the candle type
2021-11-21 17:48:14 -06:00
Sam Germain
c8162479d6
Added price as param to fetch_ohlcv
2021-11-21 17:48:14 -06:00
Matthias
f40221dd9f
Merge branch 'develop' into feat/short
2021-11-18 20:20:01 +01:00
Matthias
75eccea88d
Improve futures detection, add ccxt-compat test
2021-11-15 19:57:36 +01:00
Matthias
4e9b83e170
Merge branch 'feat/short' into futures_pairlist
2021-11-15 19:12:36 +01:00
Matthias
60cf52aa34
Remove unused test code
2021-11-15 07:10:58 +01:00
Matthias
e7499b7c44
Improve leggibility of test
2021-11-14 19:53:08 +01:00
Sam Germain
e7fad04eb9
Merge branch 'feat/short' into funding-fee-dry-run
2021-11-14 03:15:22 -06:00
Sam Germain
3ce64dd4e9
Added test__ccxt_config for all exchanges with subclass files on freqtrade
2021-11-13 16:32:43 -06:00
Sam Germain
099bf7691e
Updated bibox to combine parent _ccxt_config and minimized _ccxt_config tests
2021-11-13 16:23:59 -06:00
Sam Germain
3d86b18492
Added property _ft_has_default.ccxt_futures_name and removed subclass ccxt_config properties
2021-11-13 16:23:58 -06:00
Sam Germain
3c509a1f9b
New method for combining all funding fees within a time period
2021-11-13 04:45:23 -06:00
Matthias
6267678ca9
Use doublequotes for docstrings
2021-11-09 10:40:01 +00:00
Sam Germain
bea37e5ea3
moved dry run check for funding fees to exchange
2021-11-08 01:58:09 -06:00
Matthias
de4bc7204d
Update documentation to clarify new behaviour
2021-11-07 15:36:43 +01:00
Matthias
a08dd17bc1
Use startup_candle-count to determine call count
2021-11-07 13:10:40 +01:00
Matthias
9fa64c2647
Allow multiple calls to get more candles in live-run
2021-11-07 11:31:59 +01:00
Matthias
11b77cf94c
Update test to new list-pairs format
2021-11-07 10:43:00 +01:00
Matthias
bfe3760f68
Add tests for margin mode
2021-11-07 10:43:00 +01:00
Matthias
0dd9a277d3
improve market_is_tradable tests
2021-11-07 10:43:00 +01:00
Matthias
534b0a5911
Some tests for new market checking
2021-11-07 10:43:00 +01:00
Sam Germain
8bfcf4ee09
Fixed breaking exchange tests from _get_funding_fee_dates, and commented out kraken get_funding_fees tests
2021-11-06 22:05:38 -06:00
Sam Germain
b88482b2e9
Fixed millisecond timestamp issue errors with funding fees
2021-11-06 21:45:35 -06:00
Sam Germain
6e912c1053
Updated _get_funding_fee method names, added kraken._get_funding_fee
2021-11-06 17:39:21 -06:00
Sam Germain
8a4236198f
Added test_update_funding_fees in freqtradebot, test currently fails
2021-11-03 22:52:37 -06:00
Sam Germain
3de42da29a
All funding fee test_exchange tests pass
2021-11-01 07:52:40 -06:00
Sam Germain
863e0bf837
Adding 1am tests to funding_fee_dates
2021-11-01 06:40:20 -06:00
Sam Germain
74b6335acf
Adding timezone utc to test__get_funding_fee_dates
2021-11-01 06:34:22 -06:00
Sam Germain
ba95172d07
Finished test_calculate_funding_fees
2021-11-01 06:28:03 -06:00
Sam Germain
765ee5af50
Updated conftest funding_rate and mark_price
2021-11-01 02:51:59 -06:00
Sam Germain
8b9dfafdf4
Tests for _get_funding_fee_dates
2021-11-01 01:09:57 -06:00
Sam Germain
77d247e179
Created fixtures mark_ohlcv and funding_rate_history
2021-11-01 01:04:42 -06:00
Sam Germain
5c52b21346
Added tests for funding_fee_dry_run
2021-10-31 22:24:27 -06:00
Sam Germain
a2b1838c60
Merge branch 'feat/short' into funding-fee-dry-run
2021-10-25 22:00:09 -06:00
Sam Germain
ef8b617eb2
gateio, ftx and binance all use same funding fee formula
2021-10-23 21:59:03 -06:00
Sam Germain
2a26c6fbed
Added backtesting methods back in
2021-10-23 21:33:37 -06:00
Sam Germain
ed91516f90
Changed future to swap
2021-10-23 14:10:09 -06:00
Sam Germain
1fa2600ee2
Added gateio to test__ccxt_config
2021-10-22 11:52:05 -06:00
Sam Germain
167f9aa8d9
Added gateio futures support, and added gatio to test_exchange exchanges variable
2021-10-22 11:52:05 -06:00
Sam Germain
0329da1a57
updated get_max_leverage to use new ccxt unified property
2021-10-20 08:36:48 -06:00
Sam Germain
8c80fb46c8
test__ccxt_config
2021-10-20 05:33:09 -06:00
Sam Germain
bd488cc086
Merge branch 'develop' into feat/short
2021-10-13 17:56:40 -06:00
Sam Germain
d5a1385fdc
Changes described on github
2021-10-11 04:14:59 -06:00
Matthias
a1be6124f2
Don't set bid_last_balance if None in tests
...
part of #5681
2021-10-07 07:15:09 +02:00
Matthias
29863ad2bf
Fix error when ask_last_balance is not set
...
closes #5181
2021-10-07 06:51:29 +02:00
Sam Germain
70db228f24
Merge branch 'feat/short' into funding-fee
2021-10-03 02:15:54 -06:00
Matthias
e73f5ab480
Add test confirming #5652
2021-10-03 09:49:55 +02:00
Sam Germain
e8b4cf6eaa
Merge branch 'develop' into feat/short
2021-10-02 03:15:12 -06:00
Rokas Kupstys
e025576d8c
Introduce markets_static fixture serving an immutable list of markets. Adapt pairlist/markets tests to use this new fixture.
...
This allows freely modifying markets in get_markets() without a need of updating pairlist/markets tests.
2021-09-29 10:15:05 +03:00
Sam Germain
6db2813850
merged with feat/short
2021-09-19 20:33:08 -06:00
Sam Germain
60a678fea7
merged with feat/short
2021-09-19 17:02:09 -06:00
Sam Germain
ddc203ca69
remove %s in test_exchange unix time
2021-09-19 02:26:59 -06:00
Sam Germain
2c21bbfa0c
Fixed create order margin call count tests and made _ccxt_config a computed property
2021-09-17 16:45:02 -06:00
Sam Germain
32e52cd460
Added leverage brackets dry run test
2021-09-17 00:41:00 -06:00
Sam Germain
798a0c9827
Tried to add call count to test_create_order
2021-09-17 00:10:53 -06:00
Sam Germain
57c7926515
leverage updates on exchange classes
2021-09-16 23:05:13 -06:00
Sam Germain
a8657bb1ce
Removed backtesting funding-fee code
2021-09-16 03:50:01 -06:00
Sam Germain
98b00e8daf
merged with feat/short
2021-09-15 22:28:10 -06:00
Sam Germain
cbaf477bec
changed kraken set lev implementation
2021-09-15 21:55:19 -06:00
Sam Germain
47677ccd91
Merge branch 'feat/short' into lev-exchange
2021-09-14 18:27:51 -06:00
Matthias
315ea1e116
Merge pull request #5566 from freqtrade/remove_hyperopt
...
Remove legacy hyperopt
2021-09-14 19:20:58 +02:00
Sam Germain
7e0eb0adcf
merged with feat/short
2021-09-13 14:14:54 -06:00
Matthias
a12c3ecc9b
Remove credentials whenever dry-run is set from within the exchange
2021-09-13 20:27:32 +02:00
Sam Germain
ad44048e29
customized set_leverage for different exchanges
2021-09-12 02:42:13 -06:00
Sam Germain
0c1e5afc91
Added set leverage to create_order
2021-09-12 02:02:10 -06:00
Sam Germain
1344c9f7fc
_apply_leverage_to_min_stake_amount
2021-09-12 01:31:15 -06:00
Matthias
3675df8344
Update documentation regarding Legacy Hyperopt
2021-09-12 08:18:17 +02:00
Sam Germain
5b84298e03
kraken._apply_leverage_to_stake_amount
2021-09-12 00:03:02 -06:00
Matthias
a5f90a409c
Small updates to async_history_fetch
2021-09-11 08:18:32 +02:00
Matthias
4c4604f837
Add explicit test for get_historic_ohlcv
2021-09-10 19:47:56 +02:00
Sam Germain
785b71aec1
formatting
2021-09-09 15:47:49 -06:00
Sam Germain
9f96b977f6
removed interest method from exchange, will create a separate interest PR
2021-09-09 15:47:49 -06:00
Sam Germain
93da13212c
test_fill_leverage_brackets_kraken and test_get_max_leverage_binance now pass but test_fill_leverage_brackets_ftx does not if called after test_get_max_leverage_binance
2021-09-09 15:47:49 -06:00
Sam Germain
9e73d02663
Added validating checks for trading_mode and collateral on each exchange
2021-09-09 15:47:49 -06:00
Sam Germain
619ecc9728
Added exceptions to exchange.interest_rate
2021-09-09 15:47:49 -06:00
Sam Germain
97d1306e34
Added retrier to exchange functions and reduced failing tests down to 2
2021-09-09 15:47:49 -06:00
Sam Germain
8264cc546d
Wrote dummy tests for exchange.get_interest_rate
2021-09-09 15:47:49 -06:00
Sam Germain
607e403eb2
split test_get_max_leverage into separate exchange files
2021-09-09 15:47:49 -06:00
Sam Germain
5708fee0e6
Wrote failing tests for exchange.set_leverage and exchange.set_margin_mode
2021-09-09 15:47:49 -06:00
Sam Germain
f950f039a8
added tests for min stake amount with leverage
2021-09-09 15:47:49 -06:00
Sam Germain
134a7ec59b
Implemented fill_leverage_brackets get_max_leverage and set_leverage for binance, kraken and ftx. Wrote tests test_apply_leverage_to_stake_amount and test_get_max_leverage
2021-09-09 15:47:49 -06:00
Sam Germain
455bcf5389
Added TODOs to test files
2021-09-09 15:47:49 -06:00
Sam Germain
f4e26a616f
Exchange stoploss function takes side
2021-09-09 15:47:49 -06:00
Sam Germain
dfb9937436
Added tests and docstring to exchange funding_fee methods, removed utils
2021-09-09 01:43:55 -06:00
Sam Germain
d54117990b
Added funding_fee method headers to exchange, and implemented some of the methods
2021-09-09 01:19:34 -06:00
Sam Germain
2f4b566d99
reverted back exchange.get_funding_fees method
2021-09-08 13:46:52 -06:00
Sam Germain
f5248be043
Changed funding fee tracking method, need to get funding_rate and open prices at multiple candles
2021-09-06 15:47:24 -06:00
Sam Germain
92e630eb69
Added get_funding_fees method to exchange
2021-09-04 16:40:53 -06:00
Matthias
93c1dff71b
Allow adding new additional headers
2021-09-02 21:02:45 +02:00
Matthias
1895230afe
Clarify exception on load when markets could not be loaded
...
closes #5498
2021-08-29 09:18:46 +02:00
Matthias
8a9407bac9
Don't hard-fail when fetch_ticker doesn't return a value
...
closes #5477
2021-08-25 07:13:59 +02:00
Matthias
f471915828
Add test for refresh_latest_ohlcv caching
2021-08-17 06:44:36 +02:00
Matthias
0264d77d86
Fix test for fixed typo
2021-08-16 20:02:25 +02:00
Matthias
61c076563f
Add max-slippage limiting for dry-run orders to avoid insane market order fills
2021-08-11 12:11:29 +02:00
Matthias
d8d8261f1b
Merge pull request #5318 from samgermain/combined_exchange_buy_sell
...
combined exchange.buy and exchange.sell
2021-08-02 20:11:09 +02:00
Matthias
3c5f06d5c0
Update tests/exchange/test_exchange.py
2021-08-02 08:31:33 +02:00
Matthias
cf4d1875dd
Use prohibitedIn instead of isRestricted
2021-07-29 06:56:37 +02:00
Sam Germain
25c527ee67
combined exchange.buy and exchange.sell, Adding dummy mock to create_order in tests in test_freqtradebot
2021-07-28 14:55:06 -06:00
Sam Germain
7c27525bd8
Merge get_buy_rate and get_sell_rate
2021-07-17 22:51:20 -06:00
Matthias
59a33d0fa9
Add test for ask_orderbook validation
2021-06-25 20:52:34 +02:00
Matthias
8c542e4028
Update tests for removed order_book_max option
2021-06-25 20:45:53 +02:00
Matthias
40545e62af
Merge pull request #5082 from freqtrade/dry_run_order
...
Dry run order filling
2021-06-25 18:26:01 +02:00
Matthias
39b876e37a
Log exchange responses if configured
2021-06-19 09:07:42 +02:00
Matthias
c389d44e9a
Improve filling logic
2021-06-05 15:22:52 +02:00
Matthias
db03a24109
Add tests for fill methods
2021-06-05 09:09:39 +02:00
Matthias
1e988c97ad
Update dry-run order handling to use realistic fill prices
...
closes #3389
2021-06-05 09:09:39 +02:00
Matthias
bd1984386e
Move get_sell_rate to exchange class
2021-06-02 11:41:13 +02:00
Matthias
12916243ec
Move get_buy_rate to exchange class
2021-06-02 11:30:19 +02:00
Matthias
c9ac67e985
Fix some typos
2021-05-16 14:50:25 +02:00
Matthias
8f8d5dbff5
Add tests for sl_order_with_result
2021-05-16 14:41:50 +02:00
Matthias
63c28b6519
Remove obsolete get_balance method
2021-04-28 16:00:12 +02:00
grillzoo
5e51ba6258
fix flake8
2021-04-15 21:38:00 +01:00
Théo Martin
ce23d9dfee
Fix test min stake amount
2021-04-15 01:38:08 +01:00
Théo Martin
885096f2b3
Update tests for get_min_pair_stake_amount
2021-04-15 01:22:52 +01:00
Matthias
c316531c49
make tests 3.7 compatible
2021-04-13 22:07:01 +02:00
Matthias
c2f35ce416
/balance should use cached tickers when possible
2021-04-13 20:21:03 +02:00
Matthias
e4bb6b1582
Add kucoin exchange subclass
...
Kucoin has some specific orderbook restrictions
closes #4723
2021-04-13 12:28:07 +02:00
Matthias
14e8574235
fetch_balance is never called in dry-run
2021-04-10 14:17:43 +02:00
Matthias
37c2e037f1
Rename dry_run_order to create_dry_run_order
2021-04-10 13:50:56 +02:00
Matthias
73876b61b4
Show potential errors when loading markets
2021-03-20 13:34:33 +01:00
Matthias
7ffe1fd36a
Fix calculation error for min-trade-stake
2021-03-20 07:21:22 +01:00
Matthias
0b35c0571f
Allow custom fee to be used during dry-run
...
closes #3696
2021-03-14 19:37:57 +01:00
Matthias
6389e86ed6
Add test for uvloop fix
2021-03-13 16:09:07 +01:00
Matthias
ffca09bbcb
Test ohlcv_candle_limit explicitly
2021-02-14 10:38:49 +01:00
Matthias
5622bb3247
Make candle_limit optionally timeframe dependent
2021-02-14 10:29:45 +01:00
Matthias
3110d2dbb1
Add small test cases
2021-02-09 20:09:10 +01:00
Matthias
427d762746
Improve tests for cancel_order to be more realistic
2021-02-08 19:37:24 +01:00
Matthias
cfd0bb8964
Extract min stake amount from bot to exchange class
2021-02-02 19:47:21 +01:00
Matthias
5cdd9dd445
Cache markets in the exchange object
2021-01-28 19:47:32 +01:00
nas-
f72d53351c
Added ability to keep invalid pairs while expanding expand_pairlist
2021-01-15 06:37:57 +01:00
nas-
4d7ffa8c81
Added suppoort for regex in whitelist
2021-01-12 01:13:58 +01:00
Matthias
4f126bea35
Change trades-test2 to better test correct behaviour
2021-01-07 20:06:26 +01:00
Matthias
bf182dc01e
Fix wrong key usage in trade_history_timebased
2021-01-07 20:03:34 +01:00
Matthias
bd0af1b300
Fix test warning
2020-12-20 19:38:12 +01:00
Matthias
39fec25ae0
add optional Cache arguments to refresh_pairs method
2020-12-15 09:23:27 +01:00
Matthias
f12a8afd41
Add test for ohlcv_as_df
2020-11-22 10:56:19 +01:00
Matthias
7d2bd00f0c
Update forgotten arrow.timestamp occurance
2020-11-03 09:23:07 +01:00
Matthias
887d78171c
Merge pull request #3857 from freqtrade/arrow_deprecation_timestamp
...
Convert timestamp to int_timestamp for all arrow occurances
2020-11-02 16:40:43 +01:00
Matthias
69e8da30e5
Ensure times that fall on a candle are also shifted
2020-10-27 07:04:04 +01:00
Matthias
b8c12f6576
Test if return value is an exception when downloading historic data
2020-10-23 07:50:40 +02:00
Matthias
7a092271c5
Merge branch 'develop' into arrow_deprecation_timestamp
2020-10-20 20:01:54 +02:00
Matthias
07da21e633
Fix problem when limit is > max allowed limit
2020-10-13 20:38:02 +02:00
Matthias
8165cc11df
Change get_next_limit_in_list to use list comprehension
2020-10-13 20:30:35 +02:00
Matthias
077374ac42
Implement generic solution for l2 limited limit
2020-10-13 20:02:47 +02:00
Matthias
ecddaa663b
Convert timestamp to int_timestamp for all arrow occurances
2020-10-13 06:24:01 +02:00
Matthias
9df366d943
Apply isort to tests
2020-09-28 19:43:15 +02:00
Matthias
a0fd7f4644
Update tests to merged version
2020-09-06 15:27:16 +02:00
Matthias
5fba446e9a
Merge branch 'develop' into db_keep_orders
2020-09-06 15:22:13 +02:00
Matthias
289425a434
Add test for dry-run-cancel order
2020-08-29 10:07:02 +02:00
Matthias
4ecb67d1d1
Merge branch 'develop' into db_keep_orders
2020-08-23 10:36:56 +02:00
Matthias
674b510d23
Parametrize fetch_order retry counts
2020-08-22 17:35:42 +02:00
Matthias
f2b390a271
Add fetch_order_or_stoploss wrapper
2020-08-22 09:28:36 +02:00
Matthias
0af9e913d4
Timestamps are in ms
2020-08-14 09:52:46 +02:00
Matthias
c6741ea6c3
Merge branch 'develop' into fix/broken_getpairs
2020-08-12 20:13:06 +02:00
Matthias
3915101d2d
Add more backoff to fetch_order endpoint
2020-08-02 10:32:17 +02:00
Matthias
6c77feee85
Improve some exchange logs
2020-08-02 10:18:19 +02:00
Matthias
071e82043a
Better handle cancelled buy orders
2020-08-01 15:59:50 +02:00
Matthias
5cebc9f39d
Move stoploss_on_exchange_limit_ratio to configuration schema
2020-07-15 19:28:40 +02:00
Matthias
6ee6e51ab4
Merge branch 'develop' into pr/hroff-1902/3478
2020-07-13 07:22:43 +02:00
Matthias
4d9ecf137b
Fix failing test in python 3.7
...
can't use Magicmock in 3.7 (works in 3.8 though).
2020-06-28 20:38:28 +02:00
Matthias
c6124180fe
Fix bug when fetching orders fails
2020-06-28 19:45:42 +02:00
Matthias
6362bfc36e
Fix calculate_backoff implementation
2020-06-28 19:41:21 +02:00
Matthias
cbcbb4bdb5
Rename get_stoploss_order to fetch_stoploss_order (align with fetch_order)
2020-06-28 16:30:24 +02:00
Matthias
92c70fb903
Rename get_order to fetch_order (to align to ccxt naming)
2020-06-28 16:27:35 +02:00
Matthias
e040c518ca
Dynamic backoff on DDos errors
2020-06-28 16:19:12 +02:00
Matthias
29d3ff1bc9
Adjust tests to work with ExchangeError
2020-06-28 16:04:04 +02:00
Matthias
5bd4798ed0
Add retrier to stoploss calls (but without retrying)
2020-06-28 11:56:29 +02:00
Matthias
2c45114a64
Implement DDos backoff (1s)
2020-06-28 11:17:06 +02:00
Matthias
45ffb26910
Merge branch 'develop' into pr/hroff-1902/3478
2020-06-18 19:54:46 +02:00
Matthias
e2465f979b
Correctly mock out async_reload
2020-06-17 08:33:53 +02:00
Matthias
d4fb5af456
Also reload async markets
...
fixes #2876 - Logs and Empty ticker history for new pair
2020-06-17 07:23:20 +02:00
Matthias
a3506f4d8e
Merge branch 'develop' into timeframe
2020-06-15 06:35:55 +02:00
Matthias
f80b5f9410
Merge pull request #3438 from freqtrade/ftx_stoploss
...
Ftx stoploss
2020-06-14 07:02:15 +02:00
hroff-1902
4660909e95
Validate stoploss_on_exchange_limit_ratio at startup time
2020-06-14 01:07:00 +03:00
hroff-1902
1bf333d320
Minor: fix test
2020-06-14 00:57:13 +03:00
hroff-1902
37bc2d28ad
Revert "Remove _load_async_markets"
...
This reverts commit 6744f8f052
.
2020-06-13 13:34:29 +03:00
hroff-1902
7d451638a8
Make _reload_markets() public
2020-06-10 01:39:23 +03:00
hroff-1902
6744f8f052
Remove _load_async_markets
2020-06-10 01:22:55 +03:00
Matthias
77a62b845a
Fix some comments
2020-06-03 06:11:34 +02:00
Matthias
cf50c1cb7b
Add tests for new exchange methods
2020-06-03 06:11:34 +02:00
Matthias
d90d6ed5d0
Add ftx to tested exchanges
2020-06-03 06:11:34 +02:00
Matthias
ea954b4338
Add failing test with testcase from incident
...
Full problem in #3431
2020-06-02 20:54:14 +02:00
Matthias
b74a3addc6
Update tests
2020-06-02 20:30:31 +02:00
Matthias
898def7f6c
Remove ticker_interval from exchange
2020-06-01 20:39:01 +02:00
Matthias
009ea0639f
Exchange some occurances of ticker_interval
2020-06-01 20:33:26 +02:00
Matthias
f187753f8f
Add ccxt_sync_config to simplify ccxt configuration
2020-05-30 10:45:50 +02:00
Matthias
16cd1f06b2
Rename get_order_book to fetch_l2_order_book (aligning to ccxt)
2020-05-26 20:27:35 +02:00
Matthias
5a9a31351a
Adjust empty f-strings to be non-fstrings
2020-05-18 11:40:25 +02:00
hroff-1902
8e4ffea52b
Merge pull request #3239 from freqtrade/feat/fee_handling
...
Improve fee handling
2020-05-14 18:48:48 +03:00
Matthias
d86855f2f3
Merge pull request #3129 from freqtrade/trades_to_list
...
convert dl-trades datadownload to list
2020-05-13 09:41:26 +02:00
Matthias
59bafc8d02
Implement fee rate calculation
2020-05-01 15:50:02 +02:00
Matthias
e74ed0ba7b
Add tests for fee extraction methods
2020-04-30 20:05:27 +02:00
Matthias
c775d65126
Update typehint for cancel_order
2020-04-18 06:55:25 +02:00
Matthias
5e3e0e819f
Add tests for cancel_order_with_result
2020-04-17 17:53:18 +02:00
Matthias
800891a475
Add tests for cancel_order_with_result
2020-04-17 07:18:46 +02:00
hroff-1902
df79011aba
Merge pull request #3112 from freqtrade/trade_state_updates
...
Trade state updates
2020-04-16 12:05:19 +03:00
Matthias
33b6c7de5b
Add tests for price_one_pip
2020-04-15 07:53:31 +02:00
Matthias
cfe1e4876a
Improve testcase for cancel_order_empty
2020-04-14 19:20:47 +02:00
Matthias
59f1a061f7
adapt exchange tests to use lists instead of dicts
2020-04-01 19:45:38 +02:00
Matthias
270ac2e8c1
Add check_order_cancelled_empty method to exchange
2020-03-25 09:43:04 +01:00
hroff-1902
3208faf7ed
Do not use ticker where it's not a ticker
2020-03-08 20:47:02 +03:00
Matthias
5277d71913
Add test for empty stake-currency
2020-02-29 14:56:04 +01:00
hroff-1902
e6d003f8f2
Merge pull request #2973 from freqtrade/support_non_pairs
...
Support non pairs
2020-02-26 12:20:45 +03:00
Matthias
f38accb77b
Return empty string if no quote / base currency can be found
2020-02-26 07:09:54 +01:00
Matthias
d34515a5de
Remove constraint to have pairs in base/quote format
2020-02-25 07:04:20 +01:00
Matthias
e9448dc5e2
Add tsts for quote and base currency
2020-02-25 07:01:23 +01:00
Matthias
61037ab7b8
Implement get_pair_base_curr and get_pair_quote_curr
2020-02-24 21:50:27 +01:00
Matthias
3e4f663418
Move pairlist validation to exchange (we need to use .quote) from
...
markets
2020-02-24 21:33:42 +01:00
Matthias
f5b4a6d3d7
Remove fetch_ticker caching
2020-02-22 11:10:05 +01:00
hroff-1902
64f04845b6
Merge pull request #2850 from freqtrade/try_fix_randoM-test
...
make sure asyncio_loop is not initialized within ccxt code
2020-02-03 17:45:49 +03:00
Matthias
f6c09160ab
make sure asyncio_loop is not initialized within ccxt code
2020-02-03 15:17:36 +01:00
Matthias
cf9331919f
move exchange-specific order-parsing to exchange class
...
Related to stoploss_on_exchange in combination with trailing stoploss.
Binance contains stopPrice in the info, while kraken returns the same
value as "price".
2020-01-19 19:54:30 +01:00
Matthias
16b34e11ca
Complete rename of stoploss_limit to stoploss
2020-01-19 14:40:09 +01:00
Matthias
256fc2e78c
Rename stoploss_limit to stoploss
2020-01-19 13:30:56 +01:00
Matthias
da0af489a2
Adjust tests to pass in order_types instead of rate
2020-01-19 13:25:41 +01:00
hroff-1902
2f82122fc4
Merge pull request #2763 from freqtrade/fix/precision_rounding
...
Fix/precision rounding
2020-01-17 01:25:30 +03:00
Matthias
1e58cd70ad
Adapt tests to round price up
2020-01-14 20:16:47 +01:00
Matthias
d7957bd791
add advanced tests for price_to_precision
2020-01-14 16:04:39 +01:00
Matthias
425ec53b28
Combine amount_to_precision tests into one
2020-01-14 16:01:35 +01:00
Matthias
797dc8a4da
Add more detailed tests for amount_to_precision
2020-01-14 15:54:53 +01:00
Matthias
5fcab1eee8
Align method names to internal ccxt names
...
These methods are reimplemented from ccxt so we can test their behaviour.
2020-01-12 14:55:05 +01:00
Matthias
b60d7ad42f
Use ccxt.decimal_to_precision instead of our own calculation
2020-01-12 14:41:09 +01:00
Matthias
3519cebf66
Add test for failing stake_validation
2020-01-11 13:14:19 +01:00
Matthias
60b47b6eec
Add tests for get_quote_currencies
2020-01-11 12:01:34 +01:00