Advertisement
den4ik2003

Untitled

Feb 8th, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.41 KB | None | 0 0
  1. (gdb) run --n_lvl=2 --n_base=2 --base_size_to_total=1 --spread_size=0.07 --cooldown=60000 --first_order_size=0.3 --min_order_size=5 --available_balance_to_total=0.4 --symbo
  2. l=LOTTUSDT
  3. Starting program: /home/ubuntu/mira_updated/market_making/market_making --n_lvl=2 --n_base=2 --base_size_to_total=1 --spread_size=0.07 --cooldown=60000 --first_order_size=0.3 --min_order_size=5 --available_balance_to_total=0.4 --symbol=LOTTUSDT
  4. [Thread debugging using libthread_db enabled]
  5. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  6. --n_lvl=2
  7. --n_base=2
  8. --base_size_to_total=1
  9. --spread_size=0.07
  10. --cooldown=60000
  11. --first_order_size=0.3
  12. --min_order_size=5
  13. --available_balance_to_total=0.4
  14. --symbol=LOTTUSDT
  15. [New Thread 0x7ffff69ff640 (LWP 153080)]
  16. [New Thread 0x7ffff67fe640 (LWP 153081)]
  17. LOTT balance: {"asset": "LOTT","free": "4928.47","frozen": "0","update_time": 0}
  18. USDT balance: {"asset": "USDT","free": "129.766","frozen": "0","update_time": 0}
  19. [New Thread 0x7ffff65fd640 (LWP 153082)]
  20. {"code":"200 OK","data":{"listenKey":"98d9e4e392193a7de0cda2b173904bd4efae15691d418d7fcef3c2cd5b66b27a"}}
  21. [New Thread 0x7ffff5dfc640 (LWP 153083)]
  22. {"params":["spot@private.orders.v3.api","spot@private.deals.v3.api","spot@private.account.v3.api","spot@public.limit.depth.v3.api@LOTTUSDT@20"],"method":"SUBSCRIPTION"}
  23. no "c" parameter: {"code":"0","msg":"spot@private.deals.v3.api,spot@public.limit.depth.v3.api@LOTTUSDT@20,spot@private.orders.v3.api,spot@private.account.v3.api","id":"0"}
  24. [New Thread 0x7ffff55fb640 (LWP 153084)]
  25. [Thread 0x7ffff55fb640 (LWP 153084) exited]
  26. [New Thread 0x7ffff55fb640 (LWP 153106)]
  27. [Thread 0x7ffff55fb640 (LWP 153106) exited]
  28. [New Thread 0x7ffff55fb640 (LWP 153107)]
  29. [Thread 0x7ffff55fb640 (LWP 153107) exited]
  30. [New Thread 0x7ffff55fb640 (LWP 153117)]
  31. [Thread 0x7ffff55fb640 (LWP 153117) exited]
  32. [New Thread 0x7ffff55fb640 (LWP 153118)]
  33. [Thread 0x7ffff55fb640 (LWP 153118) exited]
  34. [New Thread 0x7ffff55fb640 (LWP 153119)]
  35. [Thread 0x7ffff55fb640 (LWP 153119) exited]
  36. [New Thread 0x7ffff55fb640 (LWP 153120)]
  37. [Thread 0x7ffff55fb640 (LWP 153120) exited]
  38. [New Thread 0x7ffff55fb640 (LWP 153121)]
  39. [Thread 0x7ffff55fb640 (LWP 153121) exited]
  40. [New Thread 0x7ffff55fb640 (LWP 153122)]
  41. [Thread 0x7ffff55fb640 (LWP 153122) exited]
  42. [New Thread 0x7ffff55fb640 (LWP 153123)]
  43. [Thread 0x7ffff55fb640 (LWP 153123) exited]
  44. Start!
  45. base balance: {"asset": "LOTT","free": "4928.47","frozen": "0","update_time": 0}
  46. quote balance: {"asset": "USDT","free": "129.766","frozen": "0","update_time": 0}
  47. Start buy!
  48. ask/bid: 0.013764 0.011929{"ask_price": "0.013764","ask_quantity": "1759.140000","bid_price": "0.011929","bid_quantity": "13724.430000","update_time": 93824993720576}
  49.  
  50. delta volume base: 788.555
  51.  
  52. delta volume quote 20.7626
  53.  
  54. i = 0volume_i_base = 591.416 volume i quote 15.5719
  55.  
  56. i = 1volume_i_base = 1379.97 volume i quote 36.3345
  57.  
  58. ask amount = 7.863470
  59.  
  60. bid amount = 15.571910
  61.  
  62. ask amount = 18.349480
  63.  
  64. bid amount = 36.334460
  65. [New Thread 0x7ffff55fb640 (LWP 153124)]
  66.  
  67. Account order event
  68. !{"amount": "7.863380","average_price": "0.000000","client_order_id": 140737326854976,"create_time": 1707392135280,"is_maker": false,"order_status": "NEW","price": "0.013296","quantity": "591.410000","side": "SELL","symbol": "0x555556302958","type": "LIMIT_MAKER""update_time": 1707392135289}
  69. [Thread 0x7ffff55fb640 (LWP 153124) exited]
  70. [New Thread 0x7ffff55fb640 (LWP 153125)]
  71. [New Thread 0x7ffff4dfa640 (LWP 153126)]
  72. [Thread 0x7ffff55fb640 (LWP 153125) exited]
  73.  
  74. Account order event
  75. !{"amount": "15.571850","average_price": "0.000000","client_order_id": 140737326854976,"create_time": 1707392135284,"is_maker": false,"order_status": "NEW","price": "0.012396","quantity": "1256.200000","side": "BUY","symbol": "0x555556302958","type": "LIMIT_MAKER""update_time": 1707392135294}
  76. [Thread 0x7ffff4dfa640 (LWP 153126) exited]
  77. [New Thread 0x7ffff4dfa640 (LWP 153127)]
  78.  
  79. Account order event
  80. !{"amount": "18.349460","average_price": "0.000000","client_order_id": 140737326854976,"create_time": 1707392135289[New Thread 0x7ffff55fb640 (LWP 153128)]
  81. [Thread 0x7ffff55fb640 (LWP 153128) exited]
  82. ,"is_maker": false,"order_status": "NEW","price": "0.013297","quantity": "1379.970000","side": "SELL","symbol": "0x555556302958","type": "LIMIT_MAKER""update_time": 1707392135298}
  83. [New Thread 0x7ffff4dfa640 (LWP 153129)]
  84. [Thread 0x7ffff4dfa640 (LWP 153127) exited]
  85.  
  86. Thread 1 "market_making" received signal SIGSEGV, Segmentation fault.
  87. mira::mexc_spot::connector::new_batch_orders (this=0x55555570ecd0, orders=std::vector of length 4, capacity 4 = {...}) at /home/ubuntu/mira_updated/markets/mexc_spot/src/connector.cpp:554
  88. 554 result.value[i].value.symbol = order.symbol;
  89. (gdb) result
  90. Undefined command: "result". Try "help".
  91. (gdb) info locals
  92. order = @0x5555561f95c0: {symbol = 0x555556302958, side = mira::mexc_spot::e_side::SELL, type = mira::mexc_spot::e_type::LIMIT_MAKER, update_time = 1, price = {
  93. static C_MAX_POWER_ = 16, scaled_value_ = 13296, precision_ = 6, initialized_ = 1, static produce_powers = {<No data fields>},
  94. static C_POWERS = <same as static member of an already seen type>}, average_price = {static C_MAX_POWER_ = 16, scaled_value_ = 0, precision_ = 0, initialized_ = 0,
  95. static produce_powers = {<No data fields>}, static C_POWERS = <same as static member of an already seen type>}, quantity = {static C_MAX_POWER_ = 16,
  96. scaled_value_ = 0, precision_ = 0, initialized_ = 0, static produce_powers = {<No data fields>}, static C_POWERS = <same as static member of an already seen type>},
  97. filled_quantity = {static C_MAX_POWER_ = 16, scaled_value_ = 0, precision_ = 0, initialized_ = 0, static produce_powers = {<No data fields>},
  98. static C_POWERS = <same as static member of an already seen type>}, amount = {static C_MAX_POWER_ = 16, scaled_value_ = 786347, precision_ = 5, initialized_ = 1,
  99. static produce_powers = {<No data fields>}, static C_POWERS = <same as static member of an already seen type>}, filled_amount = {static C_MAX_POWER_ = 16,
  100. scaled_value_ = 0, precision_ = 0, initialized_ = 0, static produce_powers = {<No data fields>}, static C_POWERS = <same as static member of an already seen type>},
  101. client_order_id = 93824993156501, create_time = 93824993959416, is_maker = 64, order_status = 140737346326211}
  102. i = 0
  103. request = std::vector of length 4, capacity 4 = {{symbol = "", side = "", type = "", quantity = std::optional<std::string> = {[contained value] = ""},
  104. price = std::optional<std::string> = {[contained value] = ""}, quote_order_qty = std::optional<std::string> [no contained value],
  105. new_client_order_id = std::optional<std::string> [no contained value]}, {symbol = "", side = "", type = "", quantity = std::optional<std::string> = {
  106. [contained value] = ""}, price = std::optional<std::string> = {[contained value] = ""}, quote_order_qty = std::optional<std::string> [no contained value],
  107. new_client_order_id = std::optional<std::string> [no contained value]}, {symbol = "", side = "", type = "", quantity = std::optional<std::string> = {
  108. [contained value] = ""}, price = std::optional<std::string> = {[contained value] = ""}, quote_order_qty = std::optional<std::string> [no contained value],
  109. new_client_order_id = std::optional<std::string> [no contained value]}, {symbol = "", side = "", type = "", quantity = std::optional<std::string> = {
  110. [contained value] = ""}, price = std::optional<std::string> = {[contained value] = ""}, quote_order_qty = std::optional<std::string> [no contained value],
  111. new_client_order_id = std::optional<std::string> [no contained value]}}
  112. result = {value = std::vector of length 0, capacity 0, code = mira::mexc_spot::e_market_error::OK}
  113. response = {value = std::vector of length 4, capacity 4 = {{value = {symbol = "LOTTUSDT", side = mira::mexc_spot::e_side::SELL,
  114. type = mira::mexc_spot::e_type::LIMIT_MAKER, order_id = "C02__384239767551889408049", orig_qty = "591.41", transact_time = 1707392135280},
  115. code = mira::mexc_spot::e_market_error::OK}, {value = {symbol = "LOTTUSDT", side = mira::mexc_spot::e_side::BUY, type = mira::mexc_spot::e_type::LIMIT_MAKER,
  116. order_id = "C02__384239767568666625049", orig_qty = "1256.2", transact_time = 1707392135284}, code = mira::mexc_spot::e_market_error::OK}, {value = {
  117. symbol = "LOTTUSDT", side = mira::mexc_spot::e_side::SELL, type = mira::mexc_spot::e_type::LIMIT_MAKER, order_id = "C02__384239767585443840049",
  118. orig_qty = "1379.97", transact_time = 1707392135289}, code = mira::mexc_spot::e_market_error::OK}, {value = {symbol = "LOTTUSDT",
  119. side = mira::mexc_spot::e_side::BUY, type = mira::mexc_spot::e_type::LIMIT_MAKER, order_id = "C02__384239767606415360049", orig_qty = "2931.38",
  120. transact_time = 1707392135293}, code = mira::mexc_spot::e_market_error::OK}}, code = mira::mexc_spot::e_market_error::OK}
  121. (gdb) bt
  122. #0 mira::mexc_spot::connector::new_batch_orders (this=0x55555570ecd0, orders=std::vector of length 4, capacity 4 = {...})
  123. at /home/ubuntu/mira_updated/markets/mexc_spot/src/connector.cpp:554
  124. #1 0x0000555555638c16 in MarketMakingManager::MakeNewOrders (this=0x55555570dec0, mid_price=0.0128465) at /home/ubuntu/mira_updated/market_making/main.cpp:184
  125. #2 0x000055555563b2df in MarketMakingManager::Start (this=0x55555570dec0) at /home/ubuntu/mira_updated/market_making/main.cpp:362
  126. #3 0x0000555555635df7 in main (argc=10, argv=0x7fffffffdf38) at /home/ubuntu/mira_updated/market_making/main.cpp:475
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement