| | |
| | | from log import logger_l2_trade_cancel, logger_l2_trade_buy, logger_l2_trade |
| | | |
| | | |
| | | def debug(random_key, code, content, *args): |
| | | logger_l2_trade.debug(("thread-id={} code={} ".format(random_key, code) + content).format(*args)) |
| | | threadIds = {} |
| | | |
| | | |
| | | def buy_debug(random_key, code, content, *args): |
| | | def debug( code, content, *args): |
| | | logger_l2_trade.debug(("thread-id={} code={} ".format(threadIds.get(code), code) + content).format(*args)) |
| | | |
| | | |
| | | def buy_debug(code, content, *args): |
| | | logger_l2_trade_buy.debug( |
| | | ("thread-id={} code={} ".format(random_key, code) + content).format(*args)) |
| | | ("thread-id={} code={} ".format(threadIds.get(code), code) + content).format(*args)) |
| | | |
| | | |
| | | def cancel_debug(random_key, code, content, *args): |
| | | def cancel_debug(code, content, *args): |
| | | logger_l2_trade_cancel.debug( |
| | | ("thread-id={} code={} ".format(random_key, code) + content).format(*args)) |
| | | ("thread-id={} code={} ".format(threadIds.get(code), code) + content).format(*args)) |