2024-07-17 20:21:58 +00:00
|
|
|
import datetime
|
|
|
|
import logging
|
|
|
|
from decimal import Decimal
|
|
|
|
import fin_defs
|
|
|
|
|
|
|
|
from . import run_auto_sell, AutoSellConfig
|
|
|
|
|
|
|
|
logging.basicConfig()
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
logger.setLevel('INFO')
|
|
|
|
|
|
|
|
def main():
|
|
|
|
logger.info('Initializing crypto_seller')
|
|
|
|
config = AutoSellConfig(
|
2024-07-21 10:00:55 +00:00
|
|
|
input_amount_range= (Decimal('0.5'), Decimal('1')),
|
|
|
|
interval_range= (datetime.timedelta(seconds=2),
|
|
|
|
datetime.timedelta(seconds=6)),
|
|
|
|
input_asset = fin_defs.MPC,
|
|
|
|
output_asset = fin_defs.USDT,
|
2024-07-17 20:21:58 +00:00
|
|
|
exit_when_empty = True,
|
|
|
|
)
|
|
|
|
run_auto_sell(config)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|