pub async fn broker_subaccount_api_key_create(
            &self,
            subaccount_id: impl Serialize,
            can_trade: bool,
            margin_trade: Option<bool>,
            futures_trade: Option<bool>,
            time_window: impl Into<TimeWindow>,
        ) -> BinanceResult<BrokerSubaccountApiKey> {
            self.client
                .post(SAPI_V1_BROKER_SUB_ACCOUNT_API)?
                .signed(time_window)?
                .query_arg("subAccountId", &subaccount_id)?
                .query_arg("canTrade", &can_trade)?
                .try_query_arg("marginTrade", &margin_trade)?
                .try_query_arg("futuresTrade", &futures_trade)?
                .send()
                .await
        }
/// Create Api Key for Sub Account.
///
/// * This request will generate a api key for a sub account.
/// * You need to enable "trade" option for the api key which requests this endpoint.
/// * Sub account should be enable margin before its api-key's marginTrade being enabled.
/// * Sub account should be enable futures before its api-key's futuresTrade being enabled.
Create Api Key for Sub Account.
This request will generate a api key for a sub account.
You need to enable "trade" option for the api key which requests this endpoint.
Sub account should be enable margin before its api-key's marginTrade being enabled.
Sub account should be enable futures before its api-key's futuresTrade being enabled.
Create Api Key for Sub Account . This request will generate a api key for a sub account . You need to enable " trade " option for the api key which requests this endpoint . Sub account should be enable margin before its api - key ' s marginTrade being enabled . Sub account should be enable futures before its api - key ' s futuresTrade being enabled .
pub async fn broker_subaccount_api_key_create(
            &self,
            subaccount_id: impl Serialize,
            can_trade: bool,
            margin_trade: Option<bool>,
            futures_trade: Option<bool>,
            time_window: impl Into<TimeWindow>,
        ) -> BinanceResult<BrokerSubaccountApiKey> {
            self.client
                .post(SAPI_V1_BROKER_SUB_ACCOUNT_API)?
                .signed(time_window)?
                .query_arg("subAccountId", &subaccount_id)?
                .query_arg("canTrade", &can_trade)?
                .try_query_arg("marginTrade", &margin_trade)?
                .try_query_arg("futuresTrade", &futures_trade)?
                .send()
                .await
        }
pub async fn broker_subaccount_api_key_create ( & self , subaccount_id : impl Serialize , can_trade : bool , margin_trade : Option < bool > , futures_trade : Option < bool > , time_window : impl Into < TimeWindow > , ) -> BinanceResult < BrokerSubaccountApiKey > { self . client . post ( SAPI_V1_BROKER_SUB_ACCOUNT_API ) ? . signed ( time_window ) ? . query_arg ( " " , & subaccount_id ) ? . query_arg ( " " , & can_trade ) ? . try_query_arg ( " " , & margin_trade ) ? . try_query_arg ( " " , & futures_trade ) ? . send ( ) . await }
Create Api Key for Sub Account.
Create Api Key for Sub Account .
&self
subaccount_id
impl Serialize
can_trade
bool
margin_trade
Option<bool>
futures_trade
Option<bool>
time_window
impl Into<TimeWindow>
&self
subaccount_id
impl Serialize
can_trade
bool
margin_trade
Option<bool>
futures_trade
Option<bool>
time_window
impl Into<TimeWindow>