26 lines
621 B
Python
26 lines
621 B
Python
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(
|
|
sell_amount_range= (Decimal(100), Decimal(1000)),
|
|
sell_interval_range= (datetime.timedelta(minutes=20), datetime.timedelta(minutes=60)),
|
|
token_input= fin_defs.BTC,
|
|
token_output= fin_defs.USDT,
|
|
exit_when_empty = True,
|
|
)
|
|
run_auto_sell(config)
|
|
|
|
if __name__ == '__main__':
|
|
main()
|