Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ip-172-31-31-23:~/_conn/test_strat/solutions/test/linked_file$ gdb ./test
- GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1
- Copyright (C) 2022 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Type "show copying" and "show warranty" for details.
- This GDB was configured as "x86_64-linux-gnu".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <https://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from ./test...
- (gdb) run taker/launch.config
- Starting program: /home/ubuntu/_conn/test_strat/solutions/test/linked_file/test taker/launch.config
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
- [New Thread 0x7ffff6a00640 (LWP 3342721)]
- [New Thread 0x7ffff6600640 (LWP 3342722)]
- [New Thread 0x7ffff6200640 (LWP 3342723)]
- [New Thread 0x7ffff5e00640 (LWP 3342724)]
- [New Thread 0x7ffff5a00640 (LWP 3342725)]
- [New Thread 0x7ffff5600640 (LWP 3342726)]
- [New Thread 0x7ffff5200640 (LWP 3342727)]
- [New Thread 0x7ffff4e00640 (LWP 3342728)]
- [New Thread 0x7ffff4a00640 (LWP 3342729)]
- [New Thread 0x7ffff4600640 (LWP 3342730)]
- [New Thread 0x7fffefe00640 (LWP 3342731)]
- [New Thread 0x7fffefa00640 (LWP 3342732)]
- [New Thread 0x7fffef600640 (LWP 3342734)]
- [New Thread 0x7fffef200640 (LWP 3342735)]
- [New Thread 0x7fffeee00640 (LWP 3342736)]
- [New Thread 0x7fffeea00640 (LWP 3342737)]
- [New Thread 0x7fffee600640 (LWP 3342738)]
- [New Thread 0x7fffee200640 (LWP 3342740)]
- [New Thread 0x7fffede00640 (LWP 3342741)]
- [New Thread 0x7fffeda00640 (LWP 3342742)]
- [New Thread 0x7fffed600640 (LWP 3342743)]
- [New Thread 0x7fffed200640 (LWP 3342744)]
- [New Thread 0x7fffece00640 (LWP 3342745)]
- [New Thread 0x7fffeca00640 (LWP 3342746)]
- [New Thread 0x7fffec600640 (LWP 3342747)]
- [New Thread 0x7fffe3e00640 (LWP 3342749)]
- [New Thread 0x7fffe3a00640 (LWP 3342750)]
- [New Thread 0x7fffe3600640 (LWP 3342751)]
- [New Thread 0x7fffe3200640 (LWP 3342752)]
- [New Thread 0x7fffe2e00640 (LWP 3342753)]
- [New Thread 0x7fffe2a00640 (LWP 3342754)]
- [New Thread 0x7fffe2600640 (LWP 3342755)]
- add_parser: BINANCE_FUTURES
- add_parser: BITMART_SPOT
- add_parser: MEXC_SPOT
- /home/ubuntu/keys/mexc_spot/test_1.account
- shared_parser: MEXC_SPOT
- has: BINANCE_FUTURES
- has: BITMART_SPOT
- has: MEXC_SPOT
- [New Thread 0x7fffe2200640 (LWP 3342757)]
- mcc/usdt{"fullName": "Magic Cube", "maxQuoteAmountMarket": "100000", "quoteAmountPrecisionMarket": "1", "takerCommission": "0.0005", "makerCommission": "0.0005", "permissions": ["SPOT"], "baseSizePrecision": "0.001", "symbol": "", "status": "1", "baseAssetPrecision": "2", "quoteAsset": "", "filters": [], "quotePrecision": "8", "quoteCommissionPrecision": "8", "orderTypes": ["LIMIT", "MARKET", "LIMIT_MAKER"], "quoteAssetPrecision": "8", "baseCommissionPrecision": "2", "maxQuoteAmount": "2000000", "baseAsset": "", "isSpotTradingAllowed": "true", "tradeSideType": "1", "isMarginTradingAllowed": "false", "quoteAmountPrecision": "1"}
- mcc/usdt{"symbol": "MCCUSDT", "base": "MCC", "quote": "USDT", "price_step": 0.00000001, "price_precision": 8, "market_quantity_precision": 3, "market_amount_precision": 1, "quntity_step": 0.01, "quantity_precision": 2, "min_notional": 1, "max_notional": 2e+06, "maker_commission": 0.0005, "taker_commission": 0.0005}
- run forever balance 0x555555679830
- {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "PNK", "free": 0.02, "locked": 0, "update_time": 0}, {"asset": "ORDITT", "free": 288.29, "locked": 0, "update_time": 0}, {"asset": "LAI", "free": 4250.31, "locked": 0, "update_time": 0}, {"asset": "MCC", "free": 468454, "locked": 0, "update_time": 0}, {"asset": "LOTT", "free": 15681, "locked": 0, "update_time": 0}, {"asset": "ABDS", "free": 110, "locked": 0, "update_time": 0}, {"asset": "USDT", "free": 18.9427, "locked": 0, "update_time": 0}]}
- [New Thread 0x7fffe1e00640 (LWP 3342761)]
- Initializing orderbook
- [New Thread 0x7fffe1400640 (LWP 3342762)]
- {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "PNK", "free": [New Thread 0x7fffe1000640 (LWP 3342763)]
- 0.02, "locked": 0, "update_time": 0}, {"asset": "ORDITT", "free": 288.29, "locked": 0, "update_time": 0}, {"asset": "LAI", "free": 4250.31, "locked": 0, "update_time": 0}, {"asset": "MCCsset": ": "MCCUSDT", "market": "MEXC_SPOT", "account": "TEST_1"}MCC"", "free": 468454468454{"name": "VANILLA", "separate": "0", "labels": ["50"], "symbols": [{"account": "TEST_1", "market": "MEXC_SPOT", "symbol": "MCCUSDT"}]},
- "locked": 0, "update_time": 0}, {"asset": "LOTT", "free": 15681, "locked": 0, "update_time": 0}, {"asset": "ABDS", "free": 110, "locked": 0, "update_time": 0}, {"asset": "USDT", "free": 18.9427, "locked": 0, "update_time": 0}]}
- {"asset": "PNK", "free": 0.02, "locked": 0, "update_time": 0}
- {"asset": "ORDITT", "free": 288.29, "locked": 0, "update_time": 0}
- {"asset": "LAI", "free": 4250.31, "locked": 0, "update_time": 0}
- {"asset": "MCC", "free": 468454, "locked": 0, "update_time": 0}
- {"asset": "LOTT", "free": 15681, "locked": 0, "update_time": 0}
- {"asset": "ABDS", "free": 110, "locked": 0, "update_time": 0}
- {"asset": "USDT", "free": 18.9427, "locked": 0, "update_time": 0}
- [New Thread 0x7fffd7e00640 (LWP 3342764)]
- get balance indicator 0x555555679958
- {"ok": "1"}
- mexc _feed_process str: {"id":0,"code":0,"msg":"spot@public.limit.depth.v3.api@MCCUSDT@20,spot@private.deals.v3.api,spot@private.orders.v3.api,spot@private.account.v3.api"}
- mexc _feed_process field_t: {"code": "0", "msg": "spot@public.limit.depth.v3.api@MCCUSDT@20,spot@private.deals.v3.api,spot@private.orders.v3.api,spot@private.account.v3.api", "id": "0"}
- mexc _feed_process str: {"c":"spot@public.limit.depth.v3.api@MCCUSDT@20","d":{"bids":[{"p":"0.00009556","v":"109406.03"},{"p":"0.00009555","v":"431496.48"},{"p":"0.00009236","v":"1140575.22"},{"p":"0.00009234","v":"86771.19"},{"p":"0.00009230","v":"2616351.62"},{"p":"0.00008980","v":"199833.16"},{"p":"0.00008814","v":"155017.88"},{"p":"0.00008680","v":"55728.80"},{"p":"0.00008476","v":"155221.28"},{"p":"0.00008235","v":"183905.49"},{"p":"0.00008200","v":"196516.33"},{"p":"0.00008001","v":"137482.81"},{"p":"0.00007785","v":"164883.63"},{"p":"0.00007626","v":"150333.05"},{"p":"0.00007319","v":"218342.47"},{"p":"0.00007167","v":"180623.72"},{"p":"0.00006941","v":"197037.77"},{"p":"0.00006829","v":"240727.30"},{"p":"0.00006637","v":"241370.67"},{"p":"0.00006444","v":"195633.60"}],"asks":[{"p":"0.00009558","v":"87169.92"},{"p":"0.00009952","v":"169141.30"},{"p":"0.00010234","v":"150595.72"},{"p":"0.00010639","v":"126058.40"},{"p":"0.00010943","v":"118470.77"},{"p":"0.00010959","v":"53350.00"},{"p":"0.00011271","v":"100681.11"},{"p":"0.00011419","v":"51800.00"},{"p":"0.00011487","v":"12000000.00"},{"p":"0.00011500","v":"9556.61"},{"p":"0.00011626","v":"107466.78"},{"p":"0.00011797","v":"122621.53"},{"p":"0.00011916","v":"10070.49"},{"p":"0.00012378","v":"101623.17"},{"p":"0.00012487","v":"115041.86"},{"p":"0.00012488","v":"150788.23"},{"p":"0.00013146","v":"128571.13"},{"p":"0.00013271","v":"118157.76"},{"p":"0.00013931","v":"110916.56"},{"p":"0.00014000","v":"8799.82"}],"e":"spot@public.limit.depth.v3.api","r":"172230179"},"s":"MCCUSDT","t":1736343031815}
- mexc _feed_process field_t: {"t": "1736343031815", "s": "MCCUSDT", "d": {"r": "172230179", "e": "spot@public.limit.depth.v3.api", "asks": [{"v": "87169.92", "p": "0.00009558"}, {"v": "169141.30", "p": "0.00009952"}, {"v": "150595.72", "p": "0.00010234"}, {"v": "126058.40", "p": "0.00010639"}, {"v": "118470.77", "p": "0.00010943"}, {"v": "53350.00", "p": "0.00010959"}, {"v": "100681.11", "p": "0.00011271"}, {"v": "51800.00", "p": "0.00011419"}, {"v": "12000000.00", "p": "0.00011487"}, {"v": "9556.61", "p": "0.00011500"}, {"v": "107466.78", "p": "0.00011626"}, {"v": "122621.53", "p": "0.00011797"}, {"v": "10070.49", "p": "0.00011916"}, {"v": "101623.17", "p": "0.00012378"}, {"v": "115041.86", "p": "0.00012487"}, {"v": "150788.23", "p": "0.00012488"}, {"v": "128571.13", "p": "0.00013146"}, {"v": "118157.76", "p": "0.00013271"}, {"v": "110916.56", "p": "0.00013931"}, {"v": "8799.82", "p": "0.00014000"}], "bids": [{"v": "109406.03", "p": "0.00009556"}, {"v": "431496.48", "p": "0.00009555"}, {"v": "1140575.22", "p": "0.00009236"}, {"v": "86771.19", "p": "0.00009234"}, {"v": "2616351.62", "p": "0.00009230"}, {"v": "199833.16", "p": "0.00008980"}, {"v": "155017.88", "p": "0.00008814"}, {"v": "55728.80", "p": "0.00008680"}, {"v": "155221.28", "p": "0.00008476"}, {"v": "183905.49", "p": "0.00008235"}, {"v": "196516.33", "p": "0.00008200"}, {"v": "137482.81", "p": "0.00008001"}, {"v": "164883.63", "p": "0.00007785"}, {"v": "150333.05", "p": "0.00007626"}, {"v": "218342.47", "p": "0.00007319"}, {"v": "180623.72", "p": "0.00007167"}, {"v": "197037.77", "p": "0.00006941"}, {"v": "240727.30", "p": "0.00006829"}, {"v": "241370.67", "p": "0.00006637"}, {"v": "195633.60", "p": "0.00006444"}]}, "c": "spot@public.limit.depth.v3.api@MCCUSDT@20"}
- [ 2025-01-08-13-30-31 ] MESSAGE: starts taker test!
- [ 2025-01-08-13-30-31 ] DEBUG taker test completed: OrderEvent: symbol="MCCUSDT", type="TAKER_BUY", amount: 5.5
- [ 2025-01-08-13-30-31 ] INFO execution order event process: OrderEvent: symbol="MCCUSDT", type="TAKER_BUY", amount: 5.5
- mexc _feed_process str: {"c":"spot@private.orders.v3.api","d":{"i":"C02__505668629266702336049","c":"142473831386788","o":5,"p":"0.00010511","v":"0","S":1,"a":"5.5","m":0,"A":"0.0000008722","V":"0","lv":"57543.41","s":2,"O":1736343031952,"ap":"0.00009558","cv":"57543.41","ca":"5.4999991278"},"s":"MCCUSDT","t":1736343031967}
- mexc _feed_process field_t: {"t": "1736343031967", "s": "MCCUSDT", "d": {"cv": "57543.41", "ap": "0.00009558", "i": "C02__505668629266702336049", "lv": "57543.41", "c": "142473831386788", "p": "0.00010511", "o": "5", "S": "1", "a": "5.5", "ca": "5.4999991278", "V": "0", "m": "0", "A": "0.0000008722", "v": "0", "s": "2", "O": "1736343031952"}, "c": "spot@private.orders.v3.api"}
- _account_order_filler feed: {"sym": "MCCUSDT", "cv": "57543.41", "ap": "0.00009558", "i": "C02__505668629266702336049", "lv": "57543.41", "c": "142473831386788", "p": "0.00010511", "o": "5", "S": "1", "a": "5.5", "ca": "5.4999991278", "V": "0", "m": "0", "A": "0.0000008722", "v": "0", "s": "2", "O": "1736343031952"}
- _account_order_filler symbol: {"symbol": "MCCUSDT", "base": "MCC", "quote": "USDT", "price_step": 0.00000001, "price_precision": 8, "market_quantity_precision": 3, "market_amount_precision": 1, "quntity_step": 0.01, "quantity_precision": 2, "min_notional": 1, "max_notional": 2e+06, "maker_commission": 0.0005, "taker_commission": 0.0005}
- [ 2025-01-08-13-30-31 ] INFO : WebSocketEvent: , event_time=1736343031967", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 0, "order": {"symbol": "MCCUSDT", "coid": 142473831386788, "order_id": "", "type": "MARKET", "side": "BUY", "status": "FILLED", "price": 0.00009558, "quantity": 0.000, "filled_quantity": 0.000, "update_time": 0}}
- feed_process: {"c":"spot@private.orders.v3.api","d":{"i":"C02__505668629266702336049","c":"142473831386788","o":5,"p":"0.00010511","v":"0","S":1,"a":"5.5","m":0,"A":"0.0000008722","V":"0","lv":"57543.41","s":2,"O":1736343031952,"ap":"0.00009558","cv":"57543.41","ca":"5.4999991278"},"s":"MCCUSDT","t":1736343031967}
- order symbol: 0x555555861738
- it->second.symbol 0x555555861738
- mexc _feed_process str: {"c":"spot@private.account.v3.api","d":{"a":"USDT","c":1736343031954,"cd":"128f589271cb4951b03e71e6323eb7be","f":"13.43999293609","fd":"-5.50275","l":"5.50275","ld":"5.50275","o":"ENTRUST_PLACE"},"t":1736343031967}
- mexc _feed_process field_t: {"t": "1736343031967", "d": {"fd": "-5.50275", "f": "13.43999293609", "ld": "5.50275", "l": "5.50275", "cd": "128f589271cb4951b03e71e6323eb7be", "o": "ENTRUST_PLACE", "c": "1736343031954", "a": "USDT"}, "c": "spot@private.account.v3.api"}
- $ tlm_USDT
- feed_process: {"c":"spot@private.account.v3.api","d":{"a":"USDT","c":1736343031954,"cd":"128f589271cb4951b03e71e6323eb7be","f":"13.43999293609","fd":"-5.50275","l":"5.50275","ld":"5.50275","o":"ENTRUST_PLACE"},"t":1736343031967}
- mexc _feed_process str: {"c":"spot@private.deals.v3.api","d":{"p":"0.00009558","v":"57543.41","a":"5.4999991278","S":1,"m":0,"st":0,"t":"505668629266702336X1","c":"142473831386788","i":"C02__505668629266702336049","n":"0.0027499995639","N":"USDT","T":1736343031964},"s":"MCCUSDT","t":1736343031988}
- mexc _feed_process field_t: {"t": "1736343031988", "s": "MCCUSDT", "d": {"T": "1736343031964", "n": "0.0027499995639", "i": "C02__505668629266702336049", "N": "USDT", "c": "142473831386788", "t": "505668629266702336X1", "st": "0", "m": "0", "S": "1", "a": "5.4999991278", "v": "57543.41", "p": "0.00009558"}, "c": "spot@private.deals.v3.api"}
- [ 2025-01-08-13-30-31 ] INFO : WebSocketEvent: , event_time=1736343031988", type="ACCOUNT_TRADE", event: {"stream": ACCOUNT_TRADE, "event_time": 0, "is_maker": false, "is_self_trade": false, "client_order_id": 142473831386788, "commission": {"asset": "USDT", "fee": 0.00275}, "trade": {"symbol": "MCCUSDT", "price": 0.00009558, "quantity": 57543.41, "trade_side": BUY, "trade_time": 1736343031964}}
- feed_process: {"c":"spot@private.deals.v3.api","d":{"p":"0.00009558","v":"57543.41","a":"5.4999991278","S":1,"m":0,"st":0,"t":"505668629266702336X1","c":"142473831386788","i":"C02__505668629266702336049","n":"0.0027499995639","N":"USDT","T":1736343031964},"s":"MCCUSDT","t":1736343031988}
- mexc _feed_process str: {"c":"spot@private.account.v3.api","d":{"a":"MCC","c":1736343031987,"cd":"c225025f88e547d486c77d2ed8e568e8","f":"525997.09","fd":"57543.41","l":"0","ld":"0","o":"ENTRUST"},"t":1736343031993}
- mexc _feed_process field_t: {"t": "1736343031993", "d": {"fd": "57543.41", "f": "525997.09", "ld": "0", "l": "0", "cd": "c225025f88e547d486c77d2ed8e568e8", "o": "ENTRUST", "c": "1736343031987", "a": "MCC"}, "c": "spot@private.account.v3.api"}
- $ tlm_MCC
- feed_process: {"c":"spot@private.account.v3.api","d":{"a":"MCC","c":1736343031987,"cd":"c225025f88e547d486c77d2ed8e568e8","f":"525997.09","fd":"57543.41","l":"0","ld":"0","o":"ENTRUST"},"t":1736343031993}
- mexc _feed_process str: {"c":"spot@private.account.v3.api","d":{"a":"USDT","c":1736343031987,"cd":"128f589271cb4951b03e71e6323eb7be","f":"13.4399938087261","fd":"0.0000008726361","l":"0","ld":"-5.50275","o":"ENTRUST"},"t":1736343031993}
- mexc _feed_process field_t: {"t": "1736343031993", "d": {"fd": "0.0000008726361", "f": "13.4399938087261", "ld": "-5.50275", "l": "0", "cd": "128f589271cb4951b03e71e6323eb7be", "o": "ENTRUST", "c": "1736343031987", "a": "USDT"}, "c": "spot@private.account.v3.api"}
- feed_process: {"c":"spot@private.account.v3.api","d":{"a":"USDT","c":1736343031987,"cd":"128f589271cb4951b03e71e6323eb7be","f":"13.4399938087261","fd":"0.0000008726361","l":"0","ld":"-5.50275","o":"ENTRUST"},"t":1736343031993}
- mexc _feed_process str: {"c":"spot@public.limit.depth.v3.api@MCCUSDT@20","d":{"bids":[{"p":"0.00009556","v":"109406.03"},{"p":"0.00009555","v":"431496.48"},{"p":"0.00009236","v":"1140575.22"},{"p":"0.00009234","v":"86771.19"},{"p":"0.00009230","v":"2616351.62"},{"p":"0.00008980","v":"199833.16"},{"p":"0.00008814","v":"155017.88"},{"p":"0.00008680","v":"55728.80"},{"p":"0.00008476","v":"155221.28"},{"p":"0.00008235","v":"183905.49"},{"p":"0.00008200","v":"196516.33"},{"p":"0.00008001","v":"137482.81"},{"p":"0.00007785","v":"164883.63"},{"p":"0.00007626","v":"150333.05"},{"p":"0.00007319","v":"218342.47"},{"p":"0.00007167","v":"180623.72"},{"p":"0.00006941","v":"197037.77"},{"p":"0.00006829","v":"240727.30"},{"p":"0.00006637","v":"241370.67"},{"p":"0.00006444","v":"195633.60"}],"asks":[{"p":"0.00009558","v":"29626.51"},{"p":"0.00009952","v":"169141.30"},{"p":"0.00010234","v":"150595.72"},{"p":"0.00010639","v":"126058.40"},{"p":"0.00010943","v":"118470.77"},{"p":"0.00010959","v":"53350.00"},{"p":"0.00011271","v":"100681.11"},{"p":"0.00011419","v":"51800.00"},{"p":"0.00011487","v":"12000000.00"},{"p":"0.00011500","v":"9556.61"},{"p":"0.00011626","v":"107466.78"},{"p":"0.00011797","v":"122621.53"},{"p":"0.00011916","v":"10070.49"},{"p":"0.00012378","v":"101623.17"},{"p":"0.00012487","v":"115041.86"},{"p":"0.00012488","v":"150788.23"},{"p":"0.00013146","v":"128571.13"},{"p":"0.00013271","v":"118157.76"},{"p":"0.00013931","v":"110916.56"},{"p":"0.00014000","v":"8799.82"}],"e":"spot@public.limit.depth.v3.api","r":"172230180"},"s":"MCCUSDT","t":1736343032307}
- mexc _feed_process field_t: {"t": "1736343032307", "s": "MCCUSDT", "d": {"r": "172230180", "e": "spot@public.limit.depth.v3.api", "asks": [{"v": "29626.51", "p": "0.00009558"}, {"v": "169141.30", "p": "0.00009952"}, {"v": "150595.72", "p": "0.00010234"}, {"v": "126058.40", "p": "0.00010639"}, {"v": "118470.77", "p": "0.00010943"}, {"v": "53350.00", "p": "0.00010959"}, {"v": "100681.11", "p": "0.00011271"}, {"v": "51800.00", "p": "0.00011419"}, {"v": "12000000.00", "p": "0.00011487"}, {"v": "9556.61", "p": "0.00011500"}, {"v": "107466.78", "p": "0.00011626"}, {"v": "122621.53", "p": "0.00011797"}, {"v": "10070.49", "p": "0.00011916"}, {"v": "101623.17", "p": "0.00012378"}, {"v": "115041.86", "p": "0.00012487"}, {"v": "150788.23", "p": "0.00012488"}, {"v": "128571.13", "p": "0.00013146"}, {"v": "118157.76", "p": "0.00013271"}, {"v": "110916.56", "p": "0.00013931"}, {"v": "8799.82", "p": "0.00014000"}], "bids": [{"v": "109406.03", "p": "0.00009556"}, {"v": "431496.48", "p": "0.00009555"}, {"v": "1140575.22", "p": "0.00009236"}, {"v": "86771.19", "p": "0.00009234"}, {"v": "2616351.62", "p": "0.00009230"}, {"v": "199833.16", "p": "0.00008980"}, {"v": "155017.88", "p": "0.00008814"}, {"v": "55728.80", "p": "0.00008680"}, {"v": "155221.28", "p": "0.00008476"}, {"v": "183905.49", "p": "0.00008235"}, {"v": "196516.33", "p": "0.00008200"}, {"v": "137482
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement