This commit is contained in:
parent
617514c82e
commit
f82276eac7
|
@ -214,6 +214,7 @@ def run_auto_sell(config: AutoSellConfig) -> AutoSellRunResults:
|
||||||
if input_amount_available > 0:
|
if input_amount_available > 0:
|
||||||
amount_to_sell = sample_from_range(rng, config.input_amount_range)
|
amount_to_sell = sample_from_range(rng, config.input_amount_range)
|
||||||
amount_to_sell = min(input_amount_available, amount_to_sell)
|
amount_to_sell = min(input_amount_available, amount_to_sell)
|
||||||
|
amount_to_sell = int(amount_to_sell + Decimal('0.5'))
|
||||||
logger.info('Attempting to sell %s %s', amount_to_sell, config.input_asset)
|
logger.info('Attempting to sell %s %s', amount_to_sell, config.input_asset)
|
||||||
|
|
||||||
order_details = config.seller.place_market_order(
|
order_details = config.seller.place_market_order(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user