1
0
crypto-seller/crypto_seller/__main__.py

27 lines
643 B
Python
Raw Normal View History

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(
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()