Advertisement
den4ik2003

Untitled

May 28th, 2025
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.24 KB | None | 0 0
  1. {'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'}
  2. launch
  3. {'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'}
  4. {'exchange_name': 'kucoin', 'symbol': 'DAG_BTC', 'decimals': [6, 4], 'strategy': 'V', 'extra_args': {}}
  5. kucoin
  6. DAG_BTC
  7. [6, 4]
  8. V
  9. {}
  10. Exchange precision: [10, 4]
  11. Precision mismatching with config values: [6, 4]
  12. symbol add_market: kucoin -> BTC
  13. TargetPriceFetching only usdt: False
  14. init quotes/usdt: {'BTC': {'ts': 1748432788301, 'price': 108794.0}, 'ETH': {'ts': 1748432788309, 'price': 2650.51}}
  15. market.min_notional: 5
  16. min_quote_size: 1e-05
  17. 1748432788535 alert {'op': 'start'}
  18.  
  19. 1748432788.5354815
  20. 1748432788614 book {'ask_price': 4.284e-07, 'bid_price': 4.23e-07}
  21.  
  22. 1748432788614 balance {'base': 2481.7313, 'quote': 0.0008356}
  23.  
  24. 1748432788727 private_trades []
  25.  
  26. 1748432788770 public_trades []
  27.  
  28. started
  29. []
  30. 1748432788869 fees {'taker': 0.3, 'maker': 0.3}
  31.  
  32. fetching kline history
  33. kline history len = 288
  34. klines done
  35. len: 142
  36. 0.0
  37. book time before: 1748432788960.4644
  38. balances: 2481.7313 0.0008356
  39. spread: 0.012765957446808418 kucoin
  40. TargetPriceFetching get_quote_in_price: BTC
  41. quote_price: 108794.01
  42. info book: {'ask_price': 4.284e-07, 'bid_price': 4.23e-07}
  43. mm_info_t - book_t: 1748432788998
  44. delta now - mm_info_t: 1748432789035
  45. lines len: 23497
  46. 4.2833670256469885e-07
  47. target: 4.2833670256469885e-07 (clip inside (4.2405333553905184e-07; 4.3262006959034586e-07))
  48. mean_vol (USDT): 1.0368594228470964
  49. mean_vol (BTC or ETH): 9.530482632702816e-06
  50. unrounded: 4.2714932450258784e-07
  51. qty: 42.036149550043596 btc-eth --> 1.9532484323427677 usdt
  52. iteration: 42.036149550043596, 4.271e-07, 0.7933275422684825
  53. 4.271e-07 4.231e-07 4.283e-07
  54. kucoin {'ask_price': 4.284e-07, 'bid_price': 4.23e-07}
  55. proceeding <class 'kucoin_connector.Kucoin'>
  56. new_limit sell {'orderId': '6836f7959d4fc6000767e2fb'}
  57. new_limit buy {'orderId': '6836f795ac47960007158d26'}
  58. {'cancelledOrderIds': ['6836f795ac47960007158d26']}
  59. 1748432794.1118405
  60. 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}]
  61.  
  62. 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}]
  63.  
  64. 1748432794183 book {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  65.  
  66. 1748432794183 balance {'base': 2439.6953, 'quote': 0.0008535}
  67.  
  68. started
  69. []
  70. 1748432794267 fees {'taker': 0.3, 'maker': 0.3}
  71.  
  72. fetching kline history
  73. klines done
  74. len: 142
  75. 0.38318097591400146
  76. book time before: 1748432794267.932
  77. balances: 2439.6953 0.0008535
  78. spread: 0.0030437836572230204 kucoin
  79. TargetPriceFetching get_quote_in_price: BTC
  80. quote_price: 108794.01
  81. info book: {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  82. mm_info_t - book_t: 1748432794304
  83. delta now - mm_info_t: 1748432794340
  84. lines len: 4
  85. 4.285023953225756e-07
  86. target: 4.285023953225756e-07 (clip inside (4.2421737136934984e-07; 4.327874192758014e-07))
  87. mean_vol (USDT): 1.1163203839535323
  88. mean_vol (BTC or ETH): 1.0260862559928919e-05
  89. unrounded: 4.280560785428648e-07
  90. qty: 39.91680883510068 btc-eth --> 1.8591140223876428 usdt
  91. iteration: 39.91680883510068, 4.281e-07, 0.7933263476065772
  92. 4.271e-07 4.272e-07 4.283e-07
  93. kucoin {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  94. Can't trade. Price 4.271e-07 is outside bounds [4.271e-07; 4.284e-07] and tight spread mode is off.
  95. {'cancelledOrderIds': []}
  96. 1748432796.569498
  97. 1748432796609 public_trades []
  98.  
  99. 1748432796617 private_trades []
  100.  
  101. 1748432796655 book {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  102.  
  103. 1748432796655 balance {'base': 2439.6953, 'quote': 0.0008535}
  104.  
  105. started
  106. []
  107. 1748432796746 fees {'taker': 0.3, 'maker': 0.3}
  108.  
  109. fetching kline history
  110. klines done
  111. len: 142
  112. 0.34368228912353516
  113. book time before: 1748432796747.104
  114. balances: 2439.6953 0.0008535
  115. spread: 0.0030437836572230204 kucoin
  116. TargetPriceFetching get_quote_in_price: BTC
  117. quote_price: 108794.01
  118. info book: {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  119. mm_info_t - book_t: 1748432796784
  120. delta now - mm_info_t: 1748432796822
  121. lines len: 3
  122. 4.2830915654185593e-07
  123. target: 4.2830915654185593e-07 (clip inside (4.240260649764374e-07; 4.325922481072745e-07))
  124. mean_vol (USDT): 1.108129466835776
  125. mean_vol (BTC or ETH): 1.0185574250234697e-05
  126. unrounded: 4.2828751702806577e-07
  127. qty: 34.30231111783611 btc-eth --> 1.5983667647101774 usdt
  128. iteration: 34.30231111783611, 4.283e-07, 0.7933255098181389
  129. 4.283e-07 4.272e-07 4.283e-07
  130. kucoin {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  131. proceeding <class 'kucoin_connector.Kucoin'>
  132. new_limit buy {'orderId': '6836f79cb7589b000746c70d'}
  133. new_limit sell {'orderId': '6836f79c4e9b15000712482c'}
  134. {'cancelledOrderIds': []}
  135. 1748432802.5881271
  136. 1748432802628 public_trades [{'price': 4.283e-07, 'quantity': 34.3023, 'side': 'sell', 'timestamp': 1748432796851}]
  137.  
  138. 1748432802666 book {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  139.  
  140. 1748432802666 balance {'base': 2439.6953, 'quote': 0.00085341}
  141.  
  142. 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}]
  143.  
  144. started
  145. []
  146. 1748432803286 fees {'taker': 0.3, 'maker': 0.3}
  147.  
  148. fetching kline history
  149. klines done
  150. len: 142
  151. 0.34098148345947266
  152. book time before: 1748432803286.4817
  153. balances: 2439.6953 0.00085341
  154. spread: 0.0030437836572230204 kucoin
  155. TargetPriceFetching get_quote_in_price: BTC
  156. quote_price: 108794.01
  157. info book: {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  158. mm_info_t - book_t: 1748432803335
  159. delta now - mm_info_t: 1748432803384
  160. lines len: 5
  161. 4.282722896467425e-07
  162. target: 4.282722896467425e-07 (clip inside (4.2398956675027504e-07; 4.325550125432099e-07))
  163. mean_vol (USDT): 1.1075693956753636
  164. mean_vol (BTC or ETH): 1.0180426253939566e-05
  165. unrounded: 4.279895217732392e-07
  166. qty: 31.284094578751088 btc-eth --> 1.456707458133001 usdt
  167. iteration: 31.284094578751088, 4.28e-07, 0.7933248985816563
  168. 4.28e-07 4.272e-07 4.283e-07
  169. kucoin {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  170. proceeding <class 'kucoin_connector.Kucoin'>
  171. new_limit sell {'orderId': '6836f7a3aeae7e0007925e43'}
  172. new_limit buy {'orderId': '6836f7a3bcfb39000730e49f'}
  173. {'cancelledOrderIds': []}
  174. 1748432805.5644221
  175. 1748432805603 public_trades [{'price': 4.28e-07, 'quantity': 31.2841, 'side': 'buy', 'timestamp': 1748432803419}]
  176.  
  177. 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}]
  178.  
  179. 1748432805631 book {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  180.  
  181. 1748432805632 balance {'base': 2439.6953, 'quote': 0.00085333}
  182.  
  183. started
  184. []
  185. 1748432805730 fees {'taker': 0.3, 'maker': 0.3}
  186.  
  187. fetching kline history
  188. klines done
  189. len: 142
  190. 0.4471947193145752
  191. book time before: 1748432805730.5544
  192. balances: 2439.6953 0.00085333
  193. spread: 0.0030437836572230204 kucoin
  194. TargetPriceFetching get_quote_in_price: BTC
  195. quote_price: 108794.01
  196. info book: {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  197. mm_info_t - book_t: 1748432805767
  198. delta now - mm_info_t: 1748432805805
  199. lines len: 3
  200. 4.282124776514973e-07
  201. target: 4.282124776514973e-07 (clip inside (4.239303528749823e-07; 4.3249460242801225e-07))
  202. mean_vol (USDT): 1.1295950345608525
  203. mean_vol (BTC or ETH): 1.0382878933875612e-05
  204. unrounded: 4.2808604659022306e-07
  205. qty: 30.245545752160336 btc-eth --> 1.4086776940235448 usdt
  206. iteration: 30.245545752160336, 4.281e-07, 0.7933244894092767
  207. 4.281e-07 4.272e-07 4.283e-07
  208. kucoin {'ask_price': 4.284e-07, 'bid_price': 4.271e-07}
  209. proceeding <class 'kucoin_connector.Kucoin'>
  210. new_limit sell {'orderId': '6836f7a5f87d5c00070e16f2'}
  211. new_limit buy {'orderId': '6836f7a50f281d00070754a2'}
  212. {'cancelledOrderIds': []}
  213. ^CTraceback (most recent call last):
  214. File "/home/ubuntu/pydmm/test_btc_eth/main.py", line 6, in <module>
  215. launch('DAG_BTC_kucoin_spot.v.user.config')
  216. File "/home/ubuntu/pydmm/test_btc_eth/launch.py", line 124, in launch
  217. bot.run_event_loop()
  218. File "/home/ubuntu/pydmm/test_btc_eth/volume.py", line 384, in run_event_loop
  219. thread.join()
  220. File "/usr/lib/python3.12/threading.py", line 1147, in join
  221. self._wait_for_tstate_lock()
  222. File "/usr/lib/python3.12/threading.py", line 1167, in _wait_for_tstate_lock
  223. if lock.acquire(block, timeout):
  224. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  225. KeyboardInterrupt
  226. ^CException ignored in: <module 'threading' from '/usr/lib/python3.12/threading.py'>
  227. Traceback (most recent call last):
  228. File "/usr/lib/python3.12/threading.py", line 1622, in _shutdown
  229. lock.acquire()
  230. KeyboardInterrupt:
  231.  
  232. (.venv) ubuntu@52:~/pydmm/test_btc_eth$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement