We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9068d78 commit ca1a33eCopy full SHA for ca1a33e
lazer/sdk/rust/protocol/src/api.rs
@@ -224,6 +224,9 @@ impl SubscriptionParams {
224
if value.price_feed_ids.is_none() && value.symbols.is_none() {
225
return Err("either price feed ids or symbols must be specified");
226
}
227
+ if value.price_feed_ids.is_some() && value.symbols.is_some() {
228
+ return Err("either price feed ids or symbols must be specified, not both");
229
+ }
230
231
if let Some(ref ids) = value.price_feed_ids {
232
if ids.is_empty() {
0 commit comments