mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 16:43:06 +00:00
include ema
This commit is contained in:
5
main.py
5
main.py
@@ -80,7 +80,8 @@ class TradeThread(threading.Thread):
|
||||
@staticmethod
|
||||
def _process():
|
||||
"""
|
||||
Queries the persistence layer for new trades and handles them
|
||||
Queries the persistence layer for open trades and handles them,
|
||||
otherwise a new trade is created.
|
||||
:return: None
|
||||
"""
|
||||
# Query trades from persistence layer
|
||||
@@ -214,7 +215,7 @@ def create_trade(stake_amount: float, exchange):
|
||||
pair = p
|
||||
break
|
||||
else:
|
||||
raise ValueError('No buy signal from pairs: {}'.format(','.join(whitelist)))
|
||||
raise ValueError('No buy signal from pairs: {}'.format(', '.join(whitelist)))
|
||||
|
||||
open_rate = api_wrapper.get_ticker(pair)['ask']
|
||||
amount = stake_amount / open_rate
|
||||
|
||||
Reference in New Issue
Block a user