Commit Graph

974 Commits (bfdbf0248c187c9b07b6a308943bda70a94de4e2)

Author SHA1 Message Date
Matthias a3acdd5240 apply stop-reserve to minimum limits only when necessary
3 years ago
Matthias e6a125719e Slightly refactor _get_stake_amount_limit
3 years ago
Matthias 5e13b48648
Merge pull request #8386 from freqtrade/feature/price_to_precision_round
3 years ago
Matthias 19b78fbc22 Override ccxt's marketOrderRequiresPrice settings for gate
3 years ago
Matthias cde432fef0 Enable gate market orders
3 years ago
Matthias fb1541bdf6 Explicitly close loop in async tests
3 years ago
Matthias 444d18aa39 Revert binance PO fix, since ccxt has fixed this bug.
3 years ago
Matthias 159090c0e7 Add explicit tests for TRUNCATE mode
3 years ago
Matthias 0cb28f3d82 Use kwarg for rounding_mode, update tests with additional parameter
3 years ago
Matthias 02078456fc Merge branch 'develop' into pr/asuiu/8296
3 years ago
Matthias 01dfb1cba8 Revert having price_rounding_mode as configuration
3 years ago
Matthias 79a2de7a64 Reduce impact of short outages
3 years ago
Matthias 150c5510c7 Don''t fully fail bot when invalid price value is reached
3 years ago
Matthias 36c45fd14f Remove unused argument from set_leverage
3 years ago
Matthias 97c420b2df Add explicit test for okx lev_prep
3 years ago
Matthias 54d8aa7782 Test stoploss_adjust okx
3 years ago
Matthias 4690244673 Enable okx stop-price types
3 years ago
Matthias 2de5a59d89 Add test for dry-run fetching
3 years ago
Matthias a7c7f720c0 Add test for okx fetch_stop
3 years ago
Matthias 3d91dd8a98 Support post-only orders for Binance spot
3 years ago
Matthias 487469680f Use correct exception type for ccxt.InvalidOrder
3 years ago
ASU 1132fa6093 feat: Added price_rounding modes in config
3 years ago
Matthias 3f6795962f Update bybit orderbook test
3 years ago
Matthias ba38a826e9 Update missing mocks
3 years ago
Matthias feabed30a3 Update remaining exchange mock occurances
3 years ago
Matthias 2ca8b0b12e Update more exchange mocks to use EXMS
3 years ago
Matthias bcdf4e0fe8 Use variable for exchange mocks to shorten lines
3 years ago
Matthias 8b51f5f563 Lowercase exchange ID
3 years ago
Matthias 5b0bc5bbc5 Don't "fix" dry-run kucoin orders
3 years ago
Matthias 6f7ab97fc3 Improve bybit test coverage
3 years ago
Matthias 27676f4aa2 Add explicit bybit test
3 years ago
Matthias 79dc972e5a Add explicit test for kucoin
3 years ago
Matthias c8a4a773ee Fix _pairs_last_refresh_time storing the wrong date
3 years ago
Matthias 34c42be74f Fix minor stylistic errors
3 years ago
Matthias 31c7b3e136 Update binance leverage tiers
3 years ago
Matthias 22700527ac Convert limit orders to market orders if they cross a threshold
3 years ago
Matthias 9600039686 Update dry-run fill method naming
3 years ago
Matthias 3397e47ccf Rename stoploss() to create_stoploss()
3 years ago
Matthias f16fd0ad23 Reenable binanceus active test
3 years ago
Matthias a3b4678ad6 stoploss_price_type for gate
3 years ago
Matthias c229ba97a9 Update gateio terminology to Gate
3 years ago
Matthias 07e6932a17 Reenable longrun test mark
3 years ago
Matthias f440d66210 Add sample_order for gate
3 years ago
Matthias eab724fe54 Merge branch 'develop' into fut/stop_price_type
3 years ago
Matthias 980ffa6bfb Add test for binance rounding leverage
3 years ago
Matthias e2d81b0ce0 Skip binanceus ccxt test
3 years ago
Matthias 8c0c2496c2 Temporarily disable gate advanced stop orders
3 years ago
Matthias b8a527e4a0 Add gateio price type field
3 years ago
Matthias 3497de3dd5 Add more validation
3 years ago
Matthias cf9e99b8e1 Add tests for ordertype validation
3 years ago
Matthias 9bb376296d Update parse_order test
3 years ago
Matthias 50d3b7bdef Add bybit sample order
3 years ago
Matthias 42f07e6ec2 Improve order_parse tests
3 years ago
Matthias f57394c1ce Merge branch 'develop' into bybit
3 years ago
Matthias ede79590da Update ccxt compat tests with kucoin order
3 years ago
Matthias 507d3d6d9b Add ci for binance.us
3 years ago
Matthias f6ba0fe6ae bybit: fix broken ccxt tests
3 years ago
Matthias d1b069abfb bybit: Update test to align with defaultType change
3 years ago
Matthias 8665d0866d Add test for bybit startup magic
3 years ago
Matthias 31745a9dc2 bybit: Initial implementation liquidation calculation
3 years ago
Matthias 93ce963e9b Update test name
3 years ago
Matthias 752110a268 Add online tests for bybit
3 years ago
Matthias d05ecd630f Update tests for new liquidation parameter
3 years ago
Matthias 63c732a560 Bybit futures data download
3 years ago
Matthias 078b430828 Add ccxt compat tests for order parsing
3 years ago
Matthias 7092212ed5 re-add futures tickers quoteVolume assert
3 years ago
Matthias 98dcab49ab Add fetch_tickers test for futures
3 years ago
Matthias b4fcda2c11 add aiohttp proxy
3 years ago
Matthias 92a5efad0e Fix set_test_proxy usage
3 years ago
Matthias b193d8418d Deepcopy config before adding proxies
3 years ago
Matthias f46b62f1a7 Attempt to use and setup a proxy for CI
3 years ago
Matthias 394a973bbb Revert "Attempt to use and setup a proxy for CI"
3 years ago
Matthias 48ae248d2d Attempt to use and setup a proxy for CI
3 years ago
Matthias 1fc97a8008 use Unified futures naming for futures throughout tests
3 years ago
Matthias 0be0ef9e77 Remove duplicate binance test
3 years ago
Matthias 0d1172ca43 Update binance future test
3 years ago
Matthias b024fafaf8 Use futures_pair in ccxt test correctly
3 years ago
Matthias 183bf6819f Update binance pair naming in ccxt test
3 years ago
Matthias 00dbc195ac Update huobi ci to use BTC markets
3 years ago
Matthias 787d292ba0 Move "drop_candle" decision to coroutine
3 years ago
Matthias bdf6537c60 Remove unused (and pointless) exchange method
3 years ago
Matthias 74b924471a type ccxt_compat tests
3 years ago
Matthias ce13ce4b10 Update binance stoploss order types
3 years ago
Sam Germain 32d57f624e delisted bibox following ccxt PR https://github.com/ccxt/ccxt/pull/16067
3 years ago
Matthias 74e623fe5b Improve kraken test resiliance
3 years ago
Matthias 05424045b0 Temporarily disable since binance blocks US
3 years ago
Matthias c963fd720b Slightly change test setup for dry_run_order_fill
3 years ago
Matthias 30b467906c Delist FTX, following ccxt's delisting.
3 years ago
Matthias 535c365b4a Disable ftx ccxt_compat tests
3 years ago
Matthias 255f38537e Simplify stoploss behavior by combining more commonalities
4 years ago
Matthias cf6b75a3f3 Use combined stoploss_adjust where possible
4 years ago
Matthias 6e95b6667d Modify test ensuring we always have a 0 index
4 years ago
Matthias c2914feb12 Don't fail contract size repopulation if pair is no longer available
4 years ago
Matthias 28be784c2e Fix kucoin live test failure
4 years ago
Matthias 39c27cfc37 Don't fail if fetchTickers is not availlable
4 years ago
Matthias 4623c3ec1d Improve test resiliance
4 years ago
Matthias 4f967fed97 Improve ccxt tests
4 years ago
Matthias 7c702dd106 Add cache eviction
4 years ago
Matthias 92a1d58df8 Evict cache if we didn't get new candles for X hours
4 years ago
Matthias f475c6c305 Add Specific, time-sensitive test-case for new behavior
4 years ago
Matthias 638515bce5 Test advanced caching
4 years ago
Matthias 678272e2ef Improve test formatting
4 years ago
Matthias c1d8ade2fa Improve supported exchange check by supporting exchange aliases
4 years ago
Matthias 68db0bc647 move check_exchange to exchange package
4 years ago
Matthias a96aa568bf Add binance futures mode checks
4 years ago
Matthias 98ba57ffaa Better test for contract calculation change
4 years ago
Matthias 00b192b4df Add test to verify #7449
4 years ago
Matthias ca6dec3d4c Binance spot also allows market orders
4 years ago
Matthias 4182a7891a Allow leverage tier cache to be 4 weeks old.
4 years ago
Matthias 7b6e465d57 Remove gate live test skip
4 years ago
Matthias daf352e6a5 Test online candle fetching in futures, too
4 years ago
Matthias 939fb7acb3 Fix enum imports
4 years ago
Matthias 39b6cadd14 Test keyerror case for funding_Fee calculation
4 years ago
Matthias 3454a52b95 Explicitly test amount_to_contract_precision
4 years ago
Matthias f3c73189d5 Remove pointless default on wallet_balance argument
4 years ago
Matthias 4aec2db14d Remove isClose from tests in favor of pytest.approx
4 years ago
Matthias 71846ecbf2 Partially revert prior commit, use correct exchange class
4 years ago
Matthias eee2071e32 Fix non-testing liquidation test
4 years ago
Matthias 27a9f98d5f Simplify liquidation price structure, improve test cov
4 years ago
Matthias 226fa5d93c Simplify liquidation price calling structure
4 years ago
Matthias 104a73025d Uppercase TimeInForce (align with ccxt)
4 years ago
Matthias 2ef4534fee Fix ccxt / longrun tests
4 years ago
Matthias 01126c43f7 Fix liquidation price tier calculation
4 years ago
Matthias 753d1b2aad Update leverage tier terminology to be clear and aligned with ccxt
4 years ago
Matthias 6036018f35 Extract contracts_to_amount and amount_to_contracts to standalone functions
4 years ago
Matthias 5f38a574ce Add okx broker id
4 years ago
Matthias 2dc34779d5 Fix line length
4 years ago
Matthias f6d832c6d9 Add get_option to expose ft_has via method
4 years ago
Matthias 1fb2e9558f Disable caching of leverage tiers in ccxt compat methods
4 years ago
Matthias 4511634f3a improve test coverage
4 years ago
Matthias 738e95b875 Add tests for leverage tiers caching
4 years ago
Matthias 15e85797c2 Simplify to_precision tests and imports
4 years ago
Matthias 0e61c2d057 Replace Decimal with FtPrecise in trade_model
4 years ago
Matthias ed004236ce Add float initializer to FtPrecise
4 years ago
Matthias e7cb1b7375 Wrap Precise into FtPecise
4 years ago
Matthias b5c5a95b64 FTX: Use conditionalOrders endpoint to get proper stop-market order id
4 years ago
Matthias d75e0a9820 Fix Flake8 errors after flake update
4 years ago
Kavinkumar a4bada3ebe
Partial exit using average price (#6545)
4 years ago
Matthias bad15f077c Simplify fetch_positions by using already existing method
4 years ago
Matthias ea112fb583 Add test for empty order (cancelled order)
4 years ago
Matthias 6e691a016d Use leverage-tiers loading in tests
4 years ago
Matthias 4172f92bfc simplify dry-run taker/maker selection
4 years ago
Matthias 8d2e22f009 Merge branch 'develop' into pr/samgermain/6780
4 years ago
Matthias d03dfb3934 Oder cost is real cost (including leverage)
4 years ago
Matthias 7b8a5585dd Fetch 2ndary stoploss order once the order triggered.
4 years ago
Matthias 64f89af69e Add Explicit test for "has" checks
4 years ago
Matthias 6ac1aa15f5 Reenable ccxt order checks
4 years ago
Matthias f8e35d8760 Add TODO to disabled test
4 years ago
Matthias 523d8a84a8 skip "supports market order" for now until CCXT fixes their assignemnt bugs.
4 years ago
Matthias c98e7ea055 Revert allowing empty currency for futures
4 years ago
Matthias b7167ec880 Fix wrong fee calclulation for gateio futures
4 years ago
Matthias 81f7d77d74 Allow fee currency to be empty for futures
4 years ago
Matthias 2499276fca Refactor calculate_fee_rate to take separate parameters instead of an "Order"
4 years ago
Matthias 53e5483daa Store StopPrice for dry-run orders
4 years ago
Matthias 3a0f31fe89
Merge pull request #6914 from freqtrade/leverage_tiers_async
4 years ago
Matthias 50c19ece53 Fix ccxt test gateio flukyness
4 years ago
Matthias fda8248d41 Gateio allow market orders on futures markets
4 years ago
Matthias ea537b32c7 Update tests for leverage_tier_loading
4 years ago
Matthias a875a7dc40 Use unified stopPrice for binance
4 years ago
Matthias 24cf044646 Fix bybit spot mode
4 years ago
Matthias 682daa4e94 Reset logging mixin to avoid random test failure
4 years ago
Matthias eb5fe9e3ae
Merge pull request #6857 from froggleston/develop
4 years ago
Matthias ea8fda0dee Slightly improve test
4 years ago
Matthias 1ff1e3b43d
Merge pull request #6869 from freqtrade/update_levtiers
4 years ago
Matthias 681ef13174 Relax dry-run leverage test-case to simplify future updates
4 years ago
Matthias 0d388b561b Add test for "combine_funding_and_mark", fix bug
4 years ago
Matthias 2cf17e04be Init persistence for tests that use dry-run orders
4 years ago
Matthias d09b462930 Add rudimentary tests for Precise "builtin operator" workings
4 years ago
Matthias a793cf8f05 Use ccxt's "precise" to do precise math
4 years ago
Matthias 9143e9ecb1 Add some safety measures for new startup_candles verification
4 years ago
Matthias d60d0f64d2 Revert ohlcv_candle_limit logic for okx
4 years ago
Matthias 116b58e97c add "date_minus_candles" method
4 years ago
Matthias 5767d652bf Add explicit test and document behavior
4 years ago
Matthias bb1b283d95 Update some ohlcv_candle_limit calls
4 years ago
Matthias 111b04c9e6 Okx - conditional candle-length
4 years ago
Matthias 64668b11da add ohlcv_has_history - disabling kraken downloads
4 years ago
Matthias dc0c1bf87d Only fetch accounts when authenticated.
4 years ago
Matthias 6fdcf3a10a Support both position modes on OKX
4 years ago
Sam Germain 10cbb5e67c test_exchange::test_taker_or_maker fixes
4 years ago
Sam Germain 86ad5dd02a test_exchange::test_taker_or_maker fixes
4 years ago
Sam Germain dac9931b4a test_create_dry_run_order_fees
4 years ago
Sam Germain 5d9aee6b7e test_taker_or_maker
4 years ago
Matthias eb996a152a Fix fee handling for futures trades
4 years ago
Matthias f6a7e6b785 Add prepend option to download-data
4 years ago
Matthias cb5c3316d1 Simplify log output
4 years ago
Sam Germain 591a2fb7fc switch notionalFloor -> minNotional and notionalCap -> maxNotional
4 years ago
Matthias f61d4d36c3 Add test for 0 precision amount
4 years ago
Matthias baefda80d1 Enable flake8 E226 rule
4 years ago
Matthias 39d925c295 Change to precise casing instead of .lower()
4 years ago
Matthias dafc2bf361 Merge branch 'develop' into feat/short
4 years ago
Matthias 8ebef914e2 Update pricing documentation
4 years ago
Matthias 2d740230f7 price_last_balance renaming
4 years ago
Matthias d7c6520268 Update remaining tests
4 years ago
Matthias 440967e483 Update some tests
4 years ago
மனோஜ்குமார் பழனிச்சாமி 5552ad779c
Corrected test_create_order
4 years ago
Matthias bcf326a035 Initial steps to change bid/ask pricing to enter/exit
4 years ago
Matthias 0f1de435da Fix ccxt compat tests
4 years ago
Matthias d244391860 no need to "abs" cost will be fixed in ccxt
4 years ago
Matthias f509959bd4 Update
4 years ago
Matthias f5578aba48 Update trading_fee naming
4 years ago
Matthias 9b8a2435f8 Add tests for fetch_order gateio patch
4 years ago
Matthias 9a8c24ddf3 Update gateio to patch fees
4 years ago
Matthias 33229c91cb Add fetch_trading_fees endpoint
4 years ago
Matthias 78fe29cc2d
Merge pull request #6588 from samgermain/contracts
4 years ago
Matthias 46f4227329 Check if symbol is not None
4 years ago
Sam Germain d3ea14de68 test_stoploss_contract_size
4 years ago
Matthias 2c89da6bf7 Update code to properly behave when rounding open_date for funding fees
4 years ago
Sam Germain f03f586eeb funding_fee tests
4 years ago
Matthias 7d8ca63752
Merge pull request #6550 from freqtrade/short_tickerproblems
4 years ago
Matthias f44601d0cc Update ccxt-compat test config
4 years ago
Matthias 97c1316bf1 Add new validation to validate excludes
4 years ago
Matthias d32153c8d3 Validate pricing configuration
4 years ago
Matthias 0c63c0bbb3 Update Gateio stoploss adjust
4 years ago
Matthias 7868e50141 Merge branch 'develop' into feat/short
4 years ago
Matthias 208a139d2b Incorporate fetch_bids_asks to allow binance spread filter to work
4 years ago
Matthias 12948aade6 Remove unused argument
4 years ago
Matthias d5f0c6c78d Exclude alternative candletypes from timeframe check
4 years ago
Matthias cfa9458bcc Merge branch 'develop' into feat/short
4 years ago
Sam Germain 843606c9cb gateio stoploss adjust
4 years ago
Sam Germain 91549d3254 Revert "stoploss_adjust fixed breaking tests"
4 years ago
Sam Germain 7e7e596372 Revert "moved binance.stoploss_adjust to exchange class"
4 years ago
Sam Germain bf5afbcdbd Merge branch 'develop' into gateio-stoploss
4 years ago
Matthias 7825d855cd Fix flake8 error in tests
4 years ago
Matthias 11c76c3c89 Check if timeframe is available before calling exchange
4 years ago
Sam Germain 6f4d607902 stoploss_adjust fixed breaking tests
4 years ago
Sam Germain 6bb93bdc25 moved binance.stoploss_adjust to exchange class
4 years ago
Sam Germain ae4742afcb test_fetch_stoploss_order_gateio and test_cancel_stoploss_order_gateio
4 years ago
Matthias 93a91bdeee Update order_Types documentation
4 years ago
Matthias 5d4386f037 Implement order_types validation
4 years ago
Matthias 76e5d5b232 Fix stake-amount handling for dry-run
4 years ago
Matthias 7a545f49af Improve test stability by making keys optional in the ccxt test-matrix
4 years ago
Matthias 2b1a8f2fbb Update binance stoploss to use correct stop order for futures
4 years ago
Matthias 62dcebee46 Update stoploss method to new functionality
4 years ago
Matthias 011cd58377 Adjust new stoploss tests to futures world
4 years ago
Sam Germain 488da9b875 Merge branch 'develop' into feat/short
4 years ago
Matthias 79538368db Simplify liquidation price calculation
4 years ago
Matthias ab46476e63 Rename get_liquidation method
4 years ago
Matthias 8e2d3445a7 Move leverage_prep calculations to exchange class
4 years ago
Matthias 68bc2a6107 Add huobi to ccxt compat tests
4 years ago
Sam Germain 7dab70f1a5 test_ccxt_compat - ftx["futures"] = false
4 years ago
Sam Germain 64172bc98d removed TODOs in test_CCXT_compat
4 years ago
Sam Germain fbcd260bf6 flake8 import issues
4 years ago
Sam Germain af77358d6a updated test_load_leverage_tiers_okx
4 years ago
Sam Germain f5ea7827e0 removed gateio.get_max_leverage and gateio.get_maint_ratio_and_amt
4 years ago
Sam Germain b61cfada6d moved okex.load_leverage_tiers to new method
4 years ago
Matthias 14d49e85af Update Huobi stoploss to shared method
4 years ago
Matthias 292c350885 Add stoploss support for huobi
4 years ago
Matthias 9504b3eb05 Improve huobi config generation
4 years ago
Matthias 0749199097 Add stoploss tests for kucoin
4 years ago
Matthias 9d55621f42 Test fetch_position exchange method
4 years ago