Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {'strategy': 'V', 'op': 'restart', 'markets': [{'params': {'daily_volume': 60000.0, 'left_bound': 0.0, 'right_bound': 1.0, 'history_mode': True, 'tight_spread': False, 'threshold': 1.0, 'smart_spread_size': 0.0, 'smart_daily_volume': 0.0, 'close_candles': True, 'tight_min_base': 0, 'tight_min_quote': 0, 'buy_ratio': 0.6, 'bbo_trade': False}, 'client': {'exchange_name': 'kucoin', 'symbol': 'DAG_BTC', 'decimals': [6, 4], 'strategy': 'V', 'extra_args': {}}}], 'params': {'daily_volume': 30000.0, 'left_bound': 0.0, 'right_bound': 1.0, 'history_mode': True, 'tight_spread': False, 'threshold': 1.0, 'smart_spread_size': 0.0, 'smart_daily_volume': 0.0, 'close_candles': True, 'tight_min_base': 0, 'tight_min_quote': 0, 'buy_ratio': 0.6, 'bbo_trade': False}, 'symbol': ['DAG_BTC', 'kucoin', 'spot'], 'group': 'DAG'}
- launch
- {'strategy': 'V', 'op': 'restart', 'markets': [{'params': {'daily_volume': 60000.0, 'left_bound': 0.0, 'right_bound': 1.0, 'history_mode': True, 'tight_spread': False, 'threshold': 1.0, 'smart_spread_size': 0.0, 'smart_daily_volume': 0.0, 'close_candles': True, 'tight_min_base': 0, 'tight_min_quote': 0, 'buy_ratio': 0.6, 'bbo_trade': False}, 'client': {'exchange_name': 'kucoin', 'symbol': 'DAG_BTC', 'decimals': [6, 4], 'strategy': 'V', 'extra_args': {}}}], 'params': {'daily_volume': 30000.0, 'left_bound': 0.0, 'right_bound': 1.0, 'history_mode': True, 'tight_spread': False, 'threshold': 1.0, 'smart_spread_size': 0.0, 'smart_daily_volume': 0.0, 'close_candles': True, 'tight_min_base': 0, 'tight_min_quote': 0, 'buy_ratio': 0.6, 'bbo_trade': False}, 'symbol': ['DAG_BTC', 'kucoin', 'spot'], 'group': 'DAG'}
- {'exchange_name': 'kucoin', 'symbol': 'DAG_BTC', 'decimals': [6, 4], 'strategy': 'V', 'extra_args': {}}
- kucoin
- DAG_BTC
- [6, 4]
- V
- {}
- Exchange precision: [10, 4]
- Precision mismatching with config values: [6, 4]
- symbol add_market: kucoin -> BTC
- TargetPriceFetching only usdt: False
- init quotes/usdt: {'BTC': {'ts': 1748432788301, 'price': 108794.0}, 'ETH': {'ts': 1748432788309, 'price': 2650.51}}
- market.min_notional: 5
- min_quote_size: 1e-05
- 1748432788535 alert {'op': 'start'}
- 1748432788.5354815
- 1748432788614 book {'ask_price': 4.284e-07, 'bid_price': 4.23e-07}
- 1748432788614 balance {'base': 2481.7313, 'quote': 0.0008356}
- 1748432788727 private_trades []
- 1748432788770 public_trades []
- started
- []
- 1748432788869 fees {'taker': 0.3, 'maker': 0.3}
- fetching kline history
- kline history len = 288
- klines done
- len: 142
- 0.0
- book time before: 1748432788960.4644
- balances: 2481.7313 0.0008356
- spread: 0.012765957446808418 kucoin
- TargetPriceFetching get_quote_in_price: BTC
- quote_price: 108794.01
- info book: {'ask_price': 4.284e-07, 'bid_price': 4.23e-07}
- mm_info_t - book_t: 1748432788998
- delta now - mm_info_t: 1748432789035
- lines len: 23497
- 4.2833670256469885e-07
- target: 4.2833670256469885e-07 (clip inside (4.2405333553905184e-07; 4.3262006959034586e-07))
- mean_vol (USDT): 1.0368594228470964
- mean_vol (BTC or ETH): 9.530482632702816e-06
- unrounded: 4.2714932450258784e-07
- qty: 42.036149550043596 btc-eth --> 1.9532484323427677 usdt
- iteration: 42.036149550043596, 4.271e-07, 0.7933275422684825
- 4.271e-07 4.231e-07 4.283e-07
- kucoin {'ask_price': 4.284e-07, 'bid_price': 4.23e-07}
- proceeding <class 'kucoin_connector.Kucoin'>
- new_limit sell {'orderId': '6836f7959d4fc6000767e2fb'}
- new_limit buy {'orderId': '6836f795ac47960007158d26'}
- {'cancelledOrderIds': ['6836f795ac47960007158d26']}
- 1748432794.1118405
- 1748432794148 public_trades [{'price': 4.271e-07, 'quantity': 42.036, 'side': 'buy', 'timestamp': 1748432789183}, {'price': 4.271e-07, 'quantity': 0.0001, 'side': 'buy', 'timestamp': 1748432789250}]
- 1748432794158 private_trades [{'price': 4.271e-07, 'quantity': 0.0001, 'side': 'sell', 'timestamp': 1748432789250}, {'price': 4.271e-07, 'quantity': 0.0001, 'side': 'buy', 'timestamp': 1748432789250}, {'price': 4.271e-07, 'quantity': 42.036, 'side': 'sell', 'timestamp': 1748432789183}]
- 1748432794183 book {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- 1748432794183 balance {'base': 2439.6953, 'quote': 0.0008535}
- started
- []
- 1748432794267 fees {'taker': 0.3, 'maker': 0.3}
- fetching kline history
- klines done
- len: 142
- 0.38318097591400146
- book time before: 1748432794267.932
- balances: 2439.6953 0.0008535
- spread: 0.0030437836572230204 kucoin
- TargetPriceFetching get_quote_in_price: BTC
- quote_price: 108794.01
- info book: {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- mm_info_t - book_t: 1748432794304
- delta now - mm_info_t: 1748432794340
- lines len: 4
- 4.285023953225756e-07
- target: 4.285023953225756e-07 (clip inside (4.2421737136934984e-07; 4.327874192758014e-07))
- mean_vol (USDT): 1.1163203839535323
- mean_vol (BTC or ETH): 1.0260862559928919e-05
- unrounded: 4.280560785428648e-07
- qty: 39.91680883510068 btc-eth --> 1.8591140223876428 usdt
- iteration: 39.91680883510068, 4.281e-07, 0.7933263476065772
- 4.271e-07 4.272e-07 4.283e-07
- kucoin {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- Can't trade. Price 4.271e-07 is outside bounds [4.271e-07; 4.284e-07] and tight spread mode is off.
- {'cancelledOrderIds': []}
- 1748432796.569498
- 1748432796609 public_trades []
- 1748432796617 private_trades []
- 1748432796655 book {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- 1748432796655 balance {'base': 2439.6953, 'quote': 0.0008535}
- started
- []
- 1748432796746 fees {'taker': 0.3, 'maker': 0.3}
- fetching kline history
- klines done
- len: 142
- 0.34368228912353516
- book time before: 1748432796747.104
- balances: 2439.6953 0.0008535
- spread: 0.0030437836572230204 kucoin
- TargetPriceFetching get_quote_in_price: BTC
- quote_price: 108794.01
- info book: {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- mm_info_t - book_t: 1748432796784
- delta now - mm_info_t: 1748432796822
- lines len: 3
- 4.2830915654185593e-07
- target: 4.2830915654185593e-07 (clip inside (4.240260649764374e-07; 4.325922481072745e-07))
- mean_vol (USDT): 1.108129466835776
- mean_vol (BTC or ETH): 1.0185574250234697e-05
- unrounded: 4.2828751702806577e-07
- qty: 34.30231111783611 btc-eth --> 1.5983667647101774 usdt
- iteration: 34.30231111783611, 4.283e-07, 0.7933255098181389
- 4.283e-07 4.272e-07 4.283e-07
- kucoin {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- proceeding <class 'kucoin_connector.Kucoin'>
- new_limit buy {'orderId': '6836f79cb7589b000746c70d'}
- new_limit sell {'orderId': '6836f79c4e9b15000712482c'}
- {'cancelledOrderIds': []}
- 1748432802.5881271
- 1748432802628 public_trades [{'price': 4.283e-07, 'quantity': 34.3023, 'side': 'sell', 'timestamp': 1748432796851}]
- 1748432802666 book {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- 1748432802666 balance {'base': 2439.6953, 'quote': 0.00085341}
- 1748432803203 private_trades [{'price': 4.283e-07, 'quantity': 34.3023, 'side': 'buy', 'timestamp': 1748432796851}, {'price': 4.283e-07, 'quantity': 34.3023, 'side': 'sell', 'timestamp': 1748432796851}]
- started
- []
- 1748432803286 fees {'taker': 0.3, 'maker': 0.3}
- fetching kline history
- klines done
- len: 142
- 0.34098148345947266
- book time before: 1748432803286.4817
- balances: 2439.6953 0.00085341
- spread: 0.0030437836572230204 kucoin
- TargetPriceFetching get_quote_in_price: BTC
- quote_price: 108794.01
- info book: {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- mm_info_t - book_t: 1748432803335
- delta now - mm_info_t: 1748432803384
- lines len: 5
- 4.282722896467425e-07
- target: 4.282722896467425e-07 (clip inside (4.2398956675027504e-07; 4.325550125432099e-07))
- mean_vol (USDT): 1.1075693956753636
- mean_vol (BTC or ETH): 1.0180426253939566e-05
- unrounded: 4.279895217732392e-07
- qty: 31.284094578751088 btc-eth --> 1.456707458133001 usdt
- iteration: 31.284094578751088, 4.28e-07, 0.7933248985816563
- 4.28e-07 4.272e-07 4.283e-07
- kucoin {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- proceeding <class 'kucoin_connector.Kucoin'>
- new_limit sell {'orderId': '6836f7a3aeae7e0007925e43'}
- new_limit buy {'orderId': '6836f7a3bcfb39000730e49f'}
- {'cancelledOrderIds': []}
- 1748432805.5644221
- 1748432805603 public_trades [{'price': 4.28e-07, 'quantity': 31.2841, 'side': 'buy', 'timestamp': 1748432803419}]
- 1748432805612 private_trades [{'price': 4.28e-07, 'quantity': 31.2841, 'side': 'sell', 'timestamp': 1748432803419}, {'price': 4.28e-07, 'quantity': 31.2841, 'side': 'buy', 'timestamp': 1748432803419}]
- 1748432805631 book {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- 1748432805632 balance {'base': 2439.6953, 'quote': 0.00085333}
- started
- []
- 1748432805730 fees {'taker': 0.3, 'maker': 0.3}
- fetching kline history
- klines done
- len: 142
- 0.4471947193145752
- book time before: 1748432805730.5544
- balances: 2439.6953 0.00085333
- spread: 0.0030437836572230204 kucoin
- TargetPriceFetching get_quote_in_price: BTC
- quote_price: 108794.01
- info book: {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- mm_info_t - book_t: 1748432805767
- delta now - mm_info_t: 1748432805805
- lines len: 3
- 4.282124776514973e-07
- target: 4.282124776514973e-07 (clip inside (4.239303528749823e-07; 4.3249460242801225e-07))
- mean_vol (USDT): 1.1295950345608525
- mean_vol (BTC or ETH): 1.0382878933875612e-05
- unrounded: 4.2808604659022306e-07
- qty: 30.245545752160336 btc-eth --> 1.4086776940235448 usdt
- iteration: 30.245545752160336, 4.281e-07, 0.7933244894092767
- 4.281e-07 4.272e-07 4.283e-07
- kucoin {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
- proceeding <class 'kucoin_connector.Kucoin'>
- new_limit sell {'orderId': '6836f7a5f87d5c00070e16f2'}
- new_limit buy {'orderId': '6836f7a50f281d00070754a2'}
- {'cancelledOrderIds': []}
- ^CTraceback (most recent call last):
- File "/home/ubuntu/pydmm/test_btc_eth/main.py", line 6, in <module>
- launch('DAG_BTC_kucoin_spot.v.user.config')
- File "/home/ubuntu/pydmm/test_btc_eth/launch.py", line 124, in launch
- bot.run_event_loop()
- File "/home/ubuntu/pydmm/test_btc_eth/volume.py", line 384, in run_event_loop
- thread.join()
- File "/usr/lib/python3.12/threading.py", line 1147, in join
- self._wait_for_tstate_lock()
- File "/usr/lib/python3.12/threading.py", line 1167, in _wait_for_tstate_lock
- if lock.acquire(block, timeout):
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- KeyboardInterrupt
- ^CException ignored in: <module 'threading' from '/usr/lib/python3.12/threading.py'>
- Traceback (most recent call last):
- File "/usr/lib/python3.12/threading.py", line 1622, in _shutdown
- lock.acquire()
- KeyboardInterrupt:
- (.venv) ubuntu@52:~/pydmm/test_btc_eth$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement