Commit Graph

327 Commits

Author SHA1 Message Date
Matthias c3c745ca19 Get new files from old branch 2019-05-18 09:57:10 +02:00
Matthias 46b1ecc77d Fix #1840 - Support balances other than USDT 2019-05-11 15:27:09 +02:00
Matthias 31d271084f Move json to persistence 2019-05-06 06:55:12 +02:00
Matthias 1e056ee415 Move trade jsonification to trade class 2019-05-05 14:07:08 +02:00
Matthias 46214ce7cd Fix typo after feedback 2019-05-01 16:22:52 +02:00
Matthias f71eda1c2f Have forcesell return a result 2019-04-30 06:23:14 +02:00
Misagh c6d19a4afb
Merge pull request #1758 from freqtrade/fix/rpcheader
Missing /daily header
2019-04-12 10:45:56 +02:00
Matthias d87db70ed0 Fix missing column header 2019-04-12 07:05:15 +02:00
Matthias e75cdd4c27 Rename variable, add more tests 2019-04-10 06:59:10 +02:00
Matthias 5c4170951a Don't send too large messages 2019-04-08 19:59:30 +02:00
Matthias f139178136 rpc_counts should be in .rpc 2019-04-06 20:11:41 +02:00
Matthias 7a598f32dc Move rpc-count calculation to _rpc class 2019-04-06 19:58:45 +02:00
Misagh 0cdbe714d2 stake amount not amount 2019-04-04 12:06:45 +02:00
Matthias b437c3cf0c
Merge pull request #1729 from mishaker/telegram_sl
Removing % sign from telegram message as it is already a pct.
2019-04-03 21:09:36 +02:00
Misagh 5488c66f53 flake8 2019-04-03 20:35:37 +02:00
Misagh 9ee1dd99eb tests fixed 2019-04-03 20:28:03 +02:00
Matthias a9a5c4a052
Merge pull request #1731 from mishaker/msg_stake
This adds stake amount in base currency to the RPC status message
2019-04-03 19:31:24 +02:00
Misagh d5498c8712 adding % 2019-04-03 19:29:44 +02:00
Misagh a3fe5f5757 adding stake amount to telegram message 2019-04-03 16:28:44 +02:00
Misagh a3835b1279 flake8 2019-04-03 14:14:47 +02:00
Misagh 5f38d5ee63 removing % sign as it is already a pct 2019-04-03 14:07:33 +02:00
Misagh 53eaf85969 filtering edge pairs for RPC 2019-04-03 14:03:28 +02:00
Misagh 7b39a3084f formatting and readability 2019-04-02 20:08:10 +02:00
Misagh a6daf0d991 formatting pct 2019-04-02 20:00:58 +02:00
Misagh ab579587f2 adding percentage to telegram status messages 2019-04-01 19:13:45 +02:00
Matthias b4472a165e
Merge pull request #1707 from mishaker/telegram_msg
Telegram status message refactoring
2019-03-28 19:45:48 +01:00
Misagh 2f3f5f19cd sl percentage removed form rpc test 2019-03-28 16:26:59 +01:00
Misagh e11eb4775e stoploss precentage in telegram msg removed 2019-03-28 16:21:49 +01:00
Misagh 0e5b0ebda6 adding SL and SL percentage to telegram msg 2019-03-28 12:09:07 +01:00
Matthias 146d6bf7fb
Merge pull request #1698 from mishaker/edge_rpc
Edge RPC
2019-03-28 06:22:38 +01:00
Misagh 941921dd0f initial SL and SL added to RPC 2019-03-27 22:00:46 +01:00
Misagh 0ca3a38ba6 moved date to top and show open order only if it is not none 2019-03-27 21:39:17 +01:00
Misagh 1678a039ae removing close profit is trade is open 2019-03-27 21:32:56 +01:00
Misagh e5406ed3cf typo in docs and comments 2019-03-27 21:22:25 +01:00
Misagh 4d9ca71c82 shifting edge help message a line lower 2019-03-27 21:20:09 +01:00
Misagh 6045f07a9c telegram message concatenation refactored 2019-03-27 21:12:57 +01:00
Matthias f26ed1c8c1 Check if added pair has correct stake-currency 2019-03-25 19:40:21 +01:00
Misagh e8bfeae048 conflict with develop resolved 2019-03-25 10:16:09 +01:00
Misagh fd7278517d using items() 2019-03-25 09:48:41 +01:00
Misagh a8be277ca0 cached pairs iteration fixed + help added 2019-03-24 22:56:42 +01:00
Misagh 1dfbf6eed6 darfting edge rpc messages 2019-03-24 22:36:33 +01:00
Matthias 14167f826b Fix typehints 2019-03-24 19:44:52 +01:00
Matthias 49559f1a1a Improve documentation and help message 2019-03-24 16:33:21 +01:00
Matthias 9d6f629f6a Support adding pairs to blacklist 2019-03-24 16:28:14 +01:00
Matthias 684727b32e Add black blacklist handler (ro) 2019-03-24 16:08:48 +01:00
Matthias c8617e70a8
Merge pull request #1668 from freqtrade/fix/1658_no_telegram_updates
No telegram rate updates when orderbook is enabled
2019-03-18 19:40:32 +01:00
Matthias aa698a8412 rename /stopbuy message 2019-03-18 06:27:44 +01:00
Matthias a467d76832 Add /stopbuy command to telegram
fixes #1607
2019-03-17 19:35:25 +01:00
Matthias 6bfc37309e refactor getting sell/current rate for telegram and selling
fix #1658
2019-03-16 13:24:10 +01:00
Matthias b9b15e5f32 Align help message for forcebuy 2019-03-16 11:04:24 +01:00
Matthias 6b948cfc7e Don't move notify_sell to rpc_manager - it needs exchange stuff 2019-03-12 22:01:19 +01:00
Matthias 11cc33a982 Refactor notify_sell to rpc_manager
* Call sell_notify also when stoploss_on_exchange is hit

fix #1653
2019-03-12 21:55:00 +01:00
Matthias 48d33b070f Add stoploss to startup messages 2019-03-12 07:06:42 +01:00
Matthias 6c75b8a36a Remove pair market url 2019-02-26 19:27:28 +01:00
Matthias 0c53bd6dd4 Complete refactor, moving query_trades to persistance as get_open_trades 2019-02-25 20:00:17 +01:00
Matthias a2c01916e1 Add type-ignores to floatfmt
tabulate supports this:
30554300d7/tabulate.py?at=master&fileviewer=file-view-default#tabulate.py-1291:1294
2019-01-17 20:28:21 +01:00
Matthias efc709501a move fiat-convert to rpc - adjust imports 2018-12-11 20:27:30 +01:00
Matthias 0f2c547805 Move fiat-convert to subfolder 2018-12-11 20:26:53 +01:00
Matthias 2c27736dfe
Merge pull request #1390 from freqtrade/feat/dynamic_provider
Dynamic Pairlist provider
2018-12-09 08:39:53 +01:00
Matthias 33e9ed5a5e Print sellreason in sell-message 2018-12-04 19:58:26 +01:00
Matthias ef1208b366 Fix rpc messages 2018-12-03 20:31:25 +01:00
Matthias efcec736b5 refactor startup_messages to rpc_manger
this cleans up freqtradebot slightly
2018-11-29 20:02:12 +01:00
Matthias 23958ba96a
Merge pull request #1322 from freqtrade/feat/add_whitelist_rpc
Feat/add whitelist rpc
2018-11-14 19:13:00 +01:00
Matthias 060a1b3fbc Add /whitelist to help message 2018-11-10 20:16:20 +01:00
Matthias 08ef2730a9 Add /whitelist call to telegram 2018-11-10 20:15:06 +01:00
Matthias 02527eeea4 Add rpc_whitelist call 2018-11-10 20:07:09 +01:00
misagh 8ea9b3746b passing pair to get_trade_stake_amount 2018-11-04 18:51:54 +01:00
Matthias 7e5fd82f25
Merge pull request #1269 from freqtrade/feat/force_buy
add /forcebuy to telgram handler
2018-11-04 09:25:13 +01:00
Matthias 9cadb188d7
Merge pull request #1276 from freqtrade/fix/1272
solve /balance crashes
2018-11-02 16:05:42 +01:00
Samuel Husso ca2ffaa201
Merge pull request #1275 from freqtrade/telegram_enable_stopped
Enable analytical telegram commands when stopped
2018-10-16 19:48:23 +03:00
Matthias 701978a4b1 Add test for dust hiding 2018-10-10 22:01:22 +02:00
Matthias 792d2dbe32 Hide "dust" from /balance 2018-10-10 21:29:40 +02:00
Matthias a4d2bb6f29 Fix "No market symbol" exception in telegram calls 2018-10-10 21:28:48 +02:00
Matthias 3e8e8a55fa Enable analytical telegram commands when stopped 2018-10-10 20:58:21 +02:00
Samuel Husso 8cf435f0ba
Merge pull request #1267 from freqtrade/telegram_fix
flush session for /forcesell all
2018-10-10 08:44:44 +03:00
Matthias 44c275c801 flush session for /forcesell all 2018-10-09 21:08:56 +02:00
Matthias fbe69cee3f Add /forcebuy to telegram 2018-10-09 19:25:43 +02:00
Matthias a20ceb9e31 Add reload_conf to telegram help 2018-10-08 19:43:37 +02:00
Samuel Husso 36e0e652f0
Merge pull request #1135 from freqtrade/fix/rpc_balance_vtho
Fix /balance rpc call if coin is not properly listed
2018-08-22 07:01:40 +03:00
Nullart2 2bc7a668a3 informative startup 2018-08-15 10:39:32 +08:00
Matthias e1921c8849 Fix bug causing /balance to fail 2018-08-08 22:00:39 +02:00
Janne Sinivirta 726b94b077
Merge pull request #1069 from freqtrade/feat/movefiatconverttorpc
Feat/movefiatconverttorpc
2018-07-26 14:25:58 +03:00
Matthias 452a1cad9d don't default fiat_convert to None for outputs 2018-07-26 07:26:23 +01:00
Matthias 7b49f746d1 remove #FIX which was fixed 2018-07-25 22:47:20 +01:00
Matthias dc1ad3cbf6 whitespace issues 2018-07-24 23:08:40 +01:00
Matthias 4928686af9 Remove currency from daily table 2018-07-24 09:37:25 +01:00
Matthias 30b72ad98a don't show fiat-currency if not set 2018-07-24 08:20:32 +01:00
Matthias 456e49fe35 default fiat_currency to none 2018-07-24 00:01:51 +01:00
Matthias bd2771b8f9 use correct property 2018-07-22 14:52:58 +02:00
Matthias fae4c3a4e3 only init if stake_currency is set 2018-07-22 14:48:06 +02:00
Matthias 6cc0a72bca ADd optional to class _fiat_convert 2018-07-22 14:35:37 +02:00
Matthias 0681a806cc move cryptofiatconvert to rpc 2018-07-21 20:44:38 +02:00
Matthias 9467461160 only init FIATConvert when telegram is enabled 2018-07-21 20:13:32 +02:00
Matthias a452864b41 Use namedtuple for sell_return 2018-07-19 19:39:08 +02:00
Matthias f991109b0a Add sell-reason to sell-tree 2018-07-19 13:29:42 +02:00
Matthias 1284627219 move url to private class level 2018-07-14 13:32:35 +02:00
Matthias 120fc29643 use dict comprehension 2018-07-14 13:32:35 +02:00
Matthias ee2f6ccbe9 Add test for enable_webhook 2018-07-14 13:32:35 +02:00
Matthias 144d308e5e Allow enabling of webhook 2018-07-14 13:32:35 +02:00
Matthias 25250f7c10 don't hardcode post parameters 2018-07-14 13:32:35 +02:00
Matthias ae22af1ea3 fix typo 2018-07-14 13:32:35 +02:00
Samuel Husso fa8b349200 rpc: dont re-use variables with different types 2018-07-14 08:02:39 +03:00
gcarq a559e22f16 remove duplicate send_msg invocation 2018-07-12 17:29:02 +02:00
gcarq 7eaeb8d146 status: return arrow object instead humanized str 2018-07-12 17:27:40 +02:00
gcarq 0920fb6120 use more granular msg dict for buy/sell notifications 2018-07-12 17:16:31 +02:00
gcarq 4cb1aa1d97 use dict as argument for rpc.send_msg 2018-07-12 17:12:42 +02:00
gcarq 96a405feb7 implement name property in abstract class 2018-07-12 17:11:31 +02:00
gcarq 112998c205 refactor _rpc_balance 2018-07-12 17:11:31 +02:00
gcarq f1a370b3b9 return dict from _rpc_status and handle rendering in module impl 2018-07-12 17:10:04 +02:00
gcarq 29670b9814 remove markdown formatting from exception string 2018-07-12 17:07:19 +02:00
gcarq df8ba28ce5 convert start, stop and reload_conf to return a dict 2018-07-12 17:07:19 +02:00
Samuel Husso e808b3a2a1 rpc: get rid of extra else and fix mypy warning 2018-07-05 10:47:08 -05:00
Samuel Husso df68b0990f rpc: fstrings 2018-07-05 10:11:29 -05:00
Samuel Husso adbffc69e1 telegram: fstrings in use 2018-07-05 10:11:29 -05:00
Janne Sinivirta bf4d0a9b70 sort imports 2018-07-04 10:31:35 +03:00
xmatthias 2b099a89e4 fix styling issues 2018-06-17 23:38:07 +02:00
xmatthias 63b568989a Fix rpc for exchange objectify 2018-06-17 23:38:07 +02:00
gcarq 46080f5168 define _rpc_reload_conf as private method 2018-06-13 15:29:27 +02:00
gcarq e14c9e2090 fix potential cleanup issue 2018-06-13 12:21:54 +02:00
gcarq 83eb7a0a9d adjust logging a bit and add some comments 2018-06-13 12:21:54 +02:00
gcarq 6c1bb7983b rpc: make freqtrade a private variable 2018-06-13 12:21:54 +02:00
gcarq 34e10a145c remove Telegram.is_enabled() because RPCManager manages lifecycles 2018-06-13 12:21:54 +02:00
gcarq 3787dad212 don't import python-telegram-bot at runtime if disabled in config 2018-06-13 12:21:54 +02:00
gcarq 4048859912 rpc: remove tuple return madness 2018-06-13 12:21:54 +02:00
gcarq cddb062db5 save rpc instances only in registered_modules, add some abstract methods 2018-06-13 12:21:54 +02:00
Janne Sinivirta c46e50864b
Merge pull request #886 from freqtrade/feature/reload-conf
Reload bot config without restarting
2018-06-11 10:47:00 +03:00
gcarq 0b5d21f32a implement bot reconfiguration and expose it to telegram 2018-06-09 04:29:48 +02:00
gcarq 61b2373dd1 flush db connection after forcesell 2018-06-08 02:35:10 +02:00
xmatthias 0e699b87af don't sum percentage, but use mean instead (aligned to backtesting) 2018-06-07 20:43:28 +02:00
xmatthias 50fc5f91ca Merge branch 'develop' into mypy_typecheck 2018-06-03 10:35:56 +02:00
xmatthias 6fc21e30e5 remove unused import 2018-06-02 13:52:55 +02:00
xmatthias 4a322abd4d Typecheck improvements 2018-06-02 13:44:05 +02:00
xmatthias 69006b8fe8 flake8 2018-05-31 21:08:26 +02:00
xmatthias 0d251cbfdd rpc type hints 2018-05-31 20:55:26 +02:00
xmatthias 4733aad7ff mypy_typing 2018-05-31 20:54:37 +02:00
Pan Long a98fcee4f9 Sell filled amount or an open limit buy order in forcesell.
Currently forcesell only cancels an open limit buy order and doesn't sell the filled amount.

After this change, forcesell will also update trade's amount to filled amount and sell the filled amount.
2018-05-26 09:55:31 +08:00
Anton d112d90e8e Make telegram message beautiful 2018-05-15 13:37:34 +03:00
Anton f175f48418 Fix get balance functionality 2018-05-15 00:31:56 +03:00
Michael Egger 5b25ed99ac
Merge pull request #652 from gcarq/feat/objectify-ccxt
CCXT into use
2018-05-12 14:04:06 +02:00
Gert Wohlgemuth 6d2afdb146 added support for showing the exposed real value on the count table (#634) 2018-05-03 11:18:35 +02:00
gcarq 403f59ef45 use native python logger 2018-04-21 20:47:06 +02:00
enenn 0ae5b75f33 Update order structure to ccxt generic structure instead of bittrex specific 2018-04-12 18:07:43 +02:00
enenn c1c6ed6ed7 Replace 'BTC_XXX' with 'XXX/BTC' for pairs and 'XXX_BTC' for files 2018-04-07 16:51:50 +02:00
enenn 1f75636e56 [1/3] Add support for multiple exchanges with ccxt (objectified version) (#585)
* remove obsolete helper functions and make _state a public member.

* remove function assertions

* revert worker() changes

* Update pytest from 3.4.2 to 3.5.0

* Adapt exchange functions to ccxt API
Remove get_market_summaries and get_wallet_health, add exception handling

* Add NetworkException

* Change pair format in constants.py

* Add tests for exchange functions that comply with ccxt

* Remove bittrex tests

* Remove Bittrex and Interface classes

* Add retrier decorator

* Remove cache from get_ticker

* Remove unused and duplicate imports

* Add keyword arguments for get_fee

* Implement 'get_pair_detail_url'

* Change get_ticker_history format to ccxt format

* Fix exchange urls dict, don't need to initialize exchanges

* Add "Using Exchange ..." logging line
2018-04-06 10:57:08 +03:00
gcarq fa7f74b4bc use native python logger 2018-03-25 21:43:00 +02:00
gcarq 3f8d7dae39 make name a required argument and add fallback to getEffectiveLevel 2018-03-25 21:42:03 +02:00
gcarq 9559f50eec remove obsolete helper functions and make _state a public member. 2018-03-21 18:50:18 +01:00
gcarq a5c62b5c10 rpc/rpc.py: fix indentation 2018-03-20 19:50:04 +01:00
gcarq 7078bc00bd rpc: apply correct typehints; remove redundant parentheses 2018-03-20 19:50:04 +01:00
gcarq d2aea7bdc1 optimize imports 2018-03-20 19:50:04 +01:00