diff options
author | 2024-04-12 20:38:43 +0200 | |
---|---|---|
committer | 2024-04-12 20:38:43 +0200 | |
commit | 82a9d2f0708c7f3754d5c40a60fa291bb320301b (patch) | |
tree | a36179f1eb02b7691f28ea544ccf25df646c9021 /src/main.rs | |
parent | 7d7f380e3075be51198f0ad457cc766f0641d984 (diff) |
Implemented part of the item update logic.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index fbb50ba..4959652 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,11 +60,31 @@ async fn main() -> Result<(), Box<dyn Error>> { let mut my_subscription = Subscription::new( SubscriptionMode::Merge, Some(vec![ - "item2".to_string(), + "item1".to_string(), "item2".to_string(), "item3".to_string(), + "item4".to_string(), + "item5".to_string(), + "item6".to_string(), + "item7".to_string(), + "item8".to_string(), + "item9".to_string(), + "item10".to_string(), + ]), + Some(vec![ + "stock_name".to_string(), + "last_price".to_string(), + "time".to_string(), + "pct_change".to_string(), + "bid_quantity".to_string(), + "bid".to_string(), + "ask".to_string(), + "ask_quantity".to_string(), + "min".to_string(), + "max".to_string(), + "ref_price".to_string(), + "open_price".to_string(), ]), - Some(vec!["stock_name".to_string(), "last_price".to_string()]), )?; my_subscription.set_data_adapter(Some(String::from("QUOTE_ADAPTER")))?; |