Remove leftover comments and debug statements

This commit is contained in:
2023-01-11 19:59:27 +00:00
parent 23faeb6f71
commit 9a69120695
3 changed files with 7 additions and 29 deletions

View File

@@ -61,11 +61,7 @@ def convert_trades_to_usd(account, trades):
side = trade["side"]
direction = side_to_direction(side)
base, quote = get_base_quote(account.exchange, symbol)
print("BASE", base)
print("QUOTE", quote)
print("AMOUNT", amount)
amount_usd = common.to_currency(direction, account, amount, base, "USD")
print("TRADE AMOUNT USD", amount_usd)
trade["trade_amount_usd"] = amount_usd
if "stop_loss_percent" in trade:
trade["stop_loss_usd"] = (trade["stop_loss_percent"] / 100) * amount_usd
@@ -303,6 +299,12 @@ def get_precision(account, symbol):
return (None, None)
# TODO: create_trade helper
# account, strategy, symbol, direction
# pull all data to create the trade from the strategy
# complete all crossfilter and risk management checks, etc.
def execute_strategy(callback, strategy, func):
"""
Execute a strategy.