ibapi 5.3.0

An unofficial Rust client for the Interactive Brokers TWS API: market data, orders, and account data, with async (Tokio) and blocking clients for TWS and IB Gateway.
Documentation
use super::*;
use crate::common::test_utils::helpers::assert_proto_msg_id;

#[test]
fn encode_query_display_groups_works() {
    let bytes = encode_query_display_groups(9000).unwrap();
    assert_proto_msg_id(&bytes, OutgoingMessages::QueryDisplayGroups);
}

#[test]
fn encode_subscribe_to_group_events_works() {
    let bytes = encode_subscribe_to_group_events(9000, 1).unwrap();
    assert_proto_msg_id(&bytes, OutgoingMessages::SubscribeToGroupEvents);
}

#[test]
fn encode_update_display_group_works() {
    let bytes = encode_update_display_group(9000, "265598@SMART").unwrap();
    assert_proto_msg_id(&bytes, OutgoingMessages::UpdateDisplayGroup);
}

#[test]
fn encode_unsubscribe_from_group_events_works() {
    let bytes = encode_unsubscribe_from_group_events(9000).unwrap();
    assert_proto_msg_id(&bytes, OutgoingMessages::UnsubscribeFromGroupEvents);
}