Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chance/order counter not being updated #33

Open
kanekoshoyu opened this issue Oct 23, 2023 · 1 comment
Open

chance/order counter not being updated #33

kanekoshoyu opened this issue Oct 23, 2023 · 1 comment

Comments

@kanekoshoyu
Copy link
Owner

[2023-10-23 17:53:13][INFO][kucoin_arbitrage::broker::gatekeeper::kucoin] time_sent: SystemTime { tv_sec: 1698076393, tv_nsec: 843016101 }
[2023-10-23 17:53:13][ERROR][kucoin_arbitrage::broker::order::kucoin] ErrorMessage { msg: "global timer [order_placement_broadcast] is not found" }
[2023-10-23 17:53:13][INFO][kucoin_arbitrage::broker::order::kucoin] order placement
LimitOrder { id: "MhESL0T33wphLG8OvQS4evTEWFa-oZrAbDPCi7H0", order_type: Limit, side: Buy, symbol: "BCH-USDT", amount: "0.40740000000000004", price: "245.44" }
[2023-10-23 17:53:17][INFO][chaiwala::report::counter] Broadcast channel data rate
[2023-10-23 17:53:17][INFO][chaiwala::report::counter] orderbook : 25482 points ( 5096mps)
[2023-10-23 17:53:17][INFO][chaiwala::report::counter] best_price: 2589 points ( 517mps)
[2023-10-23 17:53:17][INFO][chaiwala::report::counter] chance : 0 points ( 0mps)
[2023-10-23 17:53:17][INFO][chaiwala::report::counter] order : 0 points ( 0mps)
[2023-10-23 17:53:17][INFO][chaiwala::report::counter] orderchange: 0 points ( 0mps)

@kanekoshoyu
Copy link
Owner Author

kanekoshoyu commented Oct 23, 2023

solved by just adding the below:

    taskpool_monitor.spawn(task_monitor_channel_mps(
        tx_chance.subscribe(),
        cx_chance.clone(),
    ));
    taskpool_monitor.spawn(task_monitor_channel_mps(
        tx_order.subscribe(),
        cx_order.clone(),
    ));
    taskpool_monitor.spawn(task_monitor_channel_mps(
        tx_orderchange.subscribe(),
        cx_orderchange.clone(),
    ));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant