pub async fn broker_subaccount_api_ip_restriction_set(
            &self,
            sub_account_id: impl Serialize,
            sub_account_api_key: impl Serialize,
            ip_restrict: bool,
            time_window: impl Into<TimeWindow>,
        ) -> BinanceResult<BrokerSubaccountApiIpRestriction> {
            self.client
                .post(SAPI_V1_BROKER_SUB_ACCOUNT_API_IP_RESTRICTION)?
                .signed(time_window)?
                .query_arg("subAccountId", &sub_account_id)?
                .query_arg("subAccountApiKey", &sub_account_api_key)?
                .query_arg("ipRestrict", &ip_restrict)?
                .send()
                .await
        }
/// Enable or Disable IP Restriction for Sub Account Api Key
Enable or Disable IP Restriction for Sub Account Api Key
Enable or Disable IP Restriction for Sub Account Api Key
pub async fn broker_subaccount_api_ip_restriction_set(
            &self,
            sub_account_id: impl Serialize,
            sub_account_api_key: impl Serialize,
            ip_restrict: bool,
            time_window: impl Into<TimeWindow>,
        ) -> BinanceResult<BrokerSubaccountApiIpRestriction> {
            self.client
                .post(SAPI_V1_BROKER_SUB_ACCOUNT_API_IP_RESTRICTION)?
                .signed(time_window)?
                .query_arg("subAccountId", &sub_account_id)?
                .query_arg("subAccountApiKey", &sub_account_api_key)?
                .query_arg("ipRestrict", &ip_restrict)?
                .send()
                .await
        }
pub async fn broker_subaccount_api_ip_restriction_set ( & self , sub_account_id : impl Serialize , sub_account_api_key : impl Serialize , ip_restrict : bool , time_window : impl Into < TimeWindow > , ) -> BinanceResult < BrokerSubaccountApiIpRestriction > { self . client . post ( SAPI_V1_BROKER_SUB_ACCOUNT_API_IP_RESTRICTION ) ? . signed ( time_window ) ? . query_arg ( " " , & sub_account_id ) ? . query_arg ( " " , & sub_account_api_key ) ? . query_arg ( " " , & ip_restrict ) ? . send ( ) . await }
Enable or Disable IP Restriction for Sub Account Api Key
Enable or Disable IP Restriction for Sub Account Api Key
&self
sub_account_id
impl Serialize
sub_account_api_key
impl Serialize
ip_restrict
bool
time_window
impl Into<TimeWindow>
&self
sub_account_id
impl Serialize
sub_account_api_key
impl Serialize
ip_restrict
bool
time_window
impl Into<TimeWindow>