diff --git a/crates/view/src/client.rs b/crates/view/src/client.rs index be7edbccd8..25fdf2315f 100644 --- a/crates/view/src/client.rs +++ b/crates/view/src/client.rs @@ -709,6 +709,7 @@ where tonic::Request::new(pb::OwnedPositionIdsRequest { trading_pair: trading_pair.map(TryInto::try_into).transpose()?, position_state: position_state.map(TryInto::try_into).transpose()?, + ..Default::default() }), ); diff --git a/crates/view/src/service.rs b/crates/view/src/service.rs index 8e3c8ce26c..cd116b4cfa 100644 --- a/crates/view/src/service.rs +++ b/crates/view/src/service.rs @@ -1717,6 +1717,7 @@ impl ViewService for ViewServer { let pb::OwnedPositionIdsRequest { position_state, trading_pair, + subaccount: _, } = request.into_inner(); let position_state: Option = position_state @@ -1741,6 +1742,9 @@ impl ViewService for ViewServer { for id in ids { yield pb::OwnedPositionIdsResponse{ position_id: Some(id.into()), + // The rust view server does not index positions by subaccount, + // so this information is invisible to it. + subaccount: None, } } };