Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (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
- l=LOTTUSDT
- 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
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
- --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
- [New Thread 0x7ffff69ff640 (LWP 153080)]
- [New Thread 0x7ffff67fe640 (LWP 153081)]
- LOTT balance: {"asset": "LOTT","free": "4928.47","frozen": "0","update_time": 0}
- USDT balance: {"asset": "USDT","free": "129.766","frozen": "0","update_time": 0}
- [New Thread 0x7ffff65fd640 (LWP 153082)]
- {"code":"200 OK","data":{"listenKey":"98d9e4e392193a7de0cda2b173904bd4efae15691d418d7fcef3c2cd5b66b27a"}}
- [New Thread 0x7ffff5dfc640 (LWP 153083)]
- {"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"}
- 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"}
- [New Thread 0x7ffff55fb640 (LWP 153084)]
- [Thread 0x7ffff55fb640 (LWP 153084) exited]
- [New Thread 0x7ffff55fb640 (LWP 153106)]
- [Thread 0x7ffff55fb640 (LWP 153106) exited]
- [New Thread 0x7ffff55fb640 (LWP 153107)]
- [Thread 0x7ffff55fb640 (LWP 153107) exited]
- [New Thread 0x7ffff55fb640 (LWP 153117)]
- [Thread 0x7ffff55fb640 (LWP 153117) exited]
- [New Thread 0x7ffff55fb640 (LWP 153118)]
- [Thread 0x7ffff55fb640 (LWP 153118) exited]
- [New Thread 0x7ffff55fb640 (LWP 153119)]
- [Thread 0x7ffff55fb640 (LWP 153119) exited]
- [New Thread 0x7ffff55fb640 (LWP 153120)]
- [Thread 0x7ffff55fb640 (LWP 153120) exited]
- [New Thread 0x7ffff55fb640 (LWP 153121)]
- [Thread 0x7ffff55fb640 (LWP 153121) exited]
- [New Thread 0x7ffff55fb640 (LWP 153122)]
- [Thread 0x7ffff55fb640 (LWP 153122) exited]
- [New Thread 0x7ffff55fb640 (LWP 153123)]
- [Thread 0x7ffff55fb640 (LWP 153123) exited]
- Start!
- base balance: {"asset": "LOTT","free": "4928.47","frozen": "0","update_time": 0}
- quote balance: {"asset": "USDT","free": "129.766","frozen": "0","update_time": 0}
- Start buy!
- 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}
- delta volume base: 788.555
- delta volume quote 20.7626
- i = 0volume_i_base = 591.416 volume i quote 15.5719
- i = 1volume_i_base = 1379.97 volume i quote 36.3345
- ask amount = 7.863470
- bid amount = 15.571910
- ask amount = 18.349480
- bid amount = 36.334460
- [New Thread 0x7ffff55fb640 (LWP 153124)]
- Account order event
- !{"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}
- [Thread 0x7ffff55fb640 (LWP 153124) exited]
- [New Thread 0x7ffff55fb640 (LWP 153125)]
- [New Thread 0x7ffff4dfa640 (LWP 153126)]
- [Thread 0x7ffff55fb640 (LWP 153125) exited]
- Account order event
- !{"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}
- [Thread 0x7ffff4dfa640 (LWP 153126) exited]
- [New Thread 0x7ffff4dfa640 (LWP 153127)]
- Account order event
- !{"amount": "18.349460","average_price": "0.000000","client_order_id": 140737326854976,"create_time": 1707392135289[New Thread 0x7ffff55fb640 (LWP 153128)]
- [Thread 0x7ffff55fb640 (LWP 153128) exited]
- ,"is_maker": false,"order_status": "NEW","price": "0.013297","quantity": "1379.970000","side": "SELL","symbol": "0x555556302958","type": "LIMIT_MAKER""update_time": 1707392135298}
- [New Thread 0x7ffff4dfa640 (LWP 153129)]
- [Thread 0x7ffff4dfa640 (LWP 153127) exited]
- Thread 1 "market_making" received signal SIGSEGV, Segmentation fault.
- 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
- 554 result.value[i].value.symbol = order.symbol;
- (gdb) result
- Undefined command: "result". Try "help".
- (gdb) info locals
- order = @0x5555561f95c0: {symbol = 0x555556302958, side = mira::mexc_spot::e_side::SELL, type = mira::mexc_spot::e_type::LIMIT_MAKER, update_time = 1, price = {
- static C_MAX_POWER_ = 16, scaled_value_ = 13296, precision_ = 6, initialized_ = 1, static produce_powers = {<No data fields>},
- 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,
- static produce_powers = {<No data fields>}, static C_POWERS = <same as static member of an already seen type>}, quantity = {static C_MAX_POWER_ = 16,
- 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>},
- filled_quantity = {static C_MAX_POWER_ = 16, 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>}, amount = {static C_MAX_POWER_ = 16, scaled_value_ = 786347, precision_ = 5, initialized_ = 1,
- 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,
- 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>},
- client_order_id = 93824993156501, create_time = 93824993959416, is_maker = 64, order_status = 140737346326211}
- i = 0
- request = std::vector of length 4, capacity 4 = {{symbol = "", side = "", type = "", quantity = std::optional<std::string> = {[contained value] = ""},
- price = std::optional<std::string> = {[contained value] = ""}, quote_order_qty = std::optional<std::string> [no contained value],
- new_client_order_id = std::optional<std::string> [no contained value]}, {symbol = "", side = "", type = "", quantity = std::optional<std::string> = {
- [contained value] = ""}, price = std::optional<std::string> = {[contained value] = ""}, quote_order_qty = std::optional<std::string> [no contained value],
- new_client_order_id = std::optional<std::string> [no contained value]}, {symbol = "", side = "", type = "", quantity = std::optional<std::string> = {
- [contained value] = ""}, price = std::optional<std::string> = {[contained value] = ""}, quote_order_qty = std::optional<std::string> [no contained value],
- new_client_order_id = std::optional<std::string> [no contained value]}, {symbol = "", side = "", type = "", quantity = std::optional<std::string> = {
- [contained value] = ""}, price = std::optional<std::string> = {[contained value] = ""}, quote_order_qty = std::optional<std::string> [no contained value],
- new_client_order_id = std::optional<std::string> [no contained value]}}
- result = {value = std::vector of length 0, capacity 0, code = mira::mexc_spot::e_market_error::OK}
- response = {value = std::vector of length 4, capacity 4 = {{value = {symbol = "LOTTUSDT", side = mira::mexc_spot::e_side::SELL,
- type = mira::mexc_spot::e_type::LIMIT_MAKER, order_id = "C02__384239767551889408049", orig_qty = "591.41", transact_time = 1707392135280},
- 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,
- order_id = "C02__384239767568666625049", orig_qty = "1256.2", transact_time = 1707392135284}, code = mira::mexc_spot::e_market_error::OK}, {value = {
- symbol = "LOTTUSDT", side = mira::mexc_spot::e_side::SELL, type = mira::mexc_spot::e_type::LIMIT_MAKER, order_id = "C02__384239767585443840049",
- orig_qty = "1379.97", transact_time = 1707392135289}, 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, order_id = "C02__384239767606415360049", orig_qty = "2931.38",
- transact_time = 1707392135293}, code = mira::mexc_spot::e_market_error::OK}}, code = mira::mexc_spot::e_market_error::OK}
- (gdb) bt
- #0 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
- #1 0x0000555555638c16 in MarketMakingManager::MakeNewOrders (this=0x55555570dec0, mid_price=0.0128465) at /home/ubuntu/mira_updated/market_making/main.cpp:184
- #2 0x000055555563b2df in MarketMakingManager::Start (this=0x55555570dec0) at /home/ubuntu/mira_updated/market_making/main.cpp:362
- #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