ccxt-base 4.5.78

CCXT – CryptoCurrency eXchange Trading Library (Rust) – untyped engine (runtime, Value, REST/prediction Cores, WS infra)
Documentation
// -------------------------------------------------------------------------------

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

// -------------------------------------------------------------------------------

#![allow(non_snake_case, unused, dead_code, clippy::all)]

use crate::Value;
use super::hashkey::HashkeyCore;
use crate::exchange::ExchangeRuntime;

impl HashkeyCore {
    /// Auto-generated wrapper for the `publicGetApiV1ExchangeInfo` implicit endpoint.
    pub async fn public_get_api_v1_exchange_info(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_api_v1_exchange_info".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1Depth` implicit endpoint.
    pub async fn public_get_quote_v1_depth(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_depth".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1Trades` implicit endpoint.
    pub async fn public_get_quote_v1_trades(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_trades".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1Klines` implicit endpoint.
    pub async fn public_get_quote_v1_klines(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_klines".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1Ticker24hr` implicit endpoint.
    pub async fn public_get_quote_v1_ticker24hr(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_ticker24hr".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1TickerPrice` implicit endpoint.
    pub async fn public_get_quote_v1_ticker_price(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_ticker_price".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1TickerBookTicker` implicit endpoint.
    pub async fn public_get_quote_v1_ticker_book_ticker(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_ticker_book_ticker".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1DepthMerged` implicit endpoint.
    pub async fn public_get_quote_v1_depth_merged(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_depth_merged".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1MarkPrice` implicit endpoint.
    pub async fn public_get_quote_v1_mark_price(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_mark_price".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetQuoteV1Index` implicit endpoint.
    pub async fn public_get_quote_v1_index(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_quote_v1_index".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetApiV1FuturesFundingRate` implicit endpoint.
    pub async fn public_get_api_v1_futures_funding_rate(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_api_v1_futures_funding_rate".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetApiV1FuturesHistoryFundingRate` implicit endpoint.
    pub async fn public_get_api_v1_futures_history_funding_rate(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_api_v1_futures_history_funding_rate".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetApiV1Ping` implicit endpoint.
    pub async fn public_get_api_v1_ping(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_api_v1_ping".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `publicGetApiV1Time` implicit endpoint.
    pub async fn public_get_api_v1_time(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("public_get_api_v1_time".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1SpotOrder` implicit endpoint.
    pub async fn private_get_api_v1_spot_order(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_spot_order".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1SpotOpenOrders` implicit endpoint.
    pub async fn private_get_api_v1_spot_open_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_spot_open_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1SpotTradeOrders` implicit endpoint.
    pub async fn private_get_api_v1_spot_trade_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_spot_trade_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesLeverage` implicit endpoint.
    pub async fn private_get_api_v1_futures_leverage(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_leverage".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesOrder` implicit endpoint.
    pub async fn private_get_api_v1_futures_order(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_order".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesOpenOrders` implicit endpoint.
    pub async fn private_get_api_v1_futures_open_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_open_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesUserTrades` implicit endpoint.
    pub async fn private_get_api_v1_futures_user_trades(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_user_trades".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesPositions` implicit endpoint.
    pub async fn private_get_api_v1_futures_positions(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_positions".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesHistoryOrders` implicit endpoint.
    pub async fn private_get_api_v1_futures_history_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_history_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesBalance` implicit endpoint.
    pub async fn private_get_api_v1_futures_balance(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_balance".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesLiquidationAssignStatus` implicit endpoint.
    pub async fn private_get_api_v1_futures_liquidation_assign_status(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_liquidation_assign_status".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesRiskLimit` implicit endpoint.
    pub async fn private_get_api_v1_futures_risk_limit(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_risk_limit".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesCommissionRate` implicit endpoint.
    pub async fn private_get_api_v1_futures_commission_rate(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_commission_rate".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesGetBestOrder` implicit endpoint.
    pub async fn private_get_api_v1_futures_get_best_order(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_get_best_order".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1CoinInfo` implicit endpoint.
    pub async fn private_get_api_v1_coin_info(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_coin_info".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountVipInfo` implicit endpoint.
    pub async fn private_get_api_v1_account_vip_info(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_vip_info".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1Account` implicit endpoint.
    pub async fn private_get_api_v1_account(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountTrades` implicit endpoint.
    pub async fn private_get_api_v1_account_trades(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_trades".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountType` implicit endpoint.
    pub async fn private_get_api_v1_account_type(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_type".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountChainType` implicit endpoint.
    pub async fn private_get_api_v1_account_chain_type(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_chain_type".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountCheckApiKey` implicit endpoint.
    pub async fn private_get_api_v1_account_check_api_key(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_check_api_key".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountBalanceFlow` implicit endpoint.
    pub async fn private_get_api_v1_account_balance_flow(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_balance_flow".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1SpotSubAccountOpenOrders` implicit endpoint.
    pub async fn private_get_api_v1_spot_sub_account_open_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_spot_sub_account_open_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1SpotSubAccountTradeOrders` implicit endpoint.
    pub async fn private_get_api_v1_spot_sub_account_trade_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_spot_sub_account_trade_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1SubAccountTrades` implicit endpoint.
    pub async fn private_get_api_v1_sub_account_trades(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_sub_account_trades".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesSubAccountOpenOrders` implicit endpoint.
    pub async fn private_get_api_v1_futures_sub_account_open_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_sub_account_open_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesSubAccountHistoryOrders` implicit endpoint.
    pub async fn private_get_api_v1_futures_sub_account_history_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_sub_account_history_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1FuturesSubAccountUserTrades` implicit endpoint.
    pub async fn private_get_api_v1_futures_sub_account_user_trades(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_futures_sub_account_user_trades".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountDepositAddress` implicit endpoint.
    pub async fn private_get_api_v1_account_deposit_address(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_deposit_address".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountDepositOrders` implicit endpoint.
    pub async fn private_get_api_v1_account_deposit_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_deposit_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateGetApiV1AccountWithdrawOrders` implicit endpoint.
    pub async fn private_get_api_v1_account_withdraw_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_get_api_v1_account_withdraw_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1UserDataStream` implicit endpoint.
    pub async fn private_post_api_v1_user_data_stream(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_user_data_stream".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1SpotOrderTest` implicit endpoint.
    pub async fn private_post_api_v1_spot_order_test(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_spot_order_test".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1SpotOrder` implicit endpoint.
    pub async fn private_post_api_v1_spot_order(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_spot_order".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV11SpotOrder` implicit endpoint.
    pub async fn private_post_api_v11_spot_order(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v11_spot_order".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1SpotBatchOrders` implicit endpoint.
    pub async fn private_post_api_v1_spot_batch_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_spot_batch_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1FuturesLeverage` implicit endpoint.
    pub async fn private_post_api_v1_futures_leverage(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_futures_leverage".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1FuturesOrder` implicit endpoint.
    pub async fn private_post_api_v1_futures_order(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_futures_order".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1FuturesMarginType` implicit endpoint.
    pub async fn private_post_api_v1_futures_margin_type(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_futures_margin_type".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1FuturesPositionMargin` implicit endpoint.
    pub async fn private_post_api_v1_futures_position_margin(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_futures_position_margin".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1FuturesPositionTradingStop` implicit endpoint.
    pub async fn private_post_api_v1_futures_position_trading_stop(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_futures_position_trading_stop".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1FuturesBatchOrders` implicit endpoint.
    pub async fn private_post_api_v1_futures_batch_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_futures_batch_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1AccountAssetTransfer` implicit endpoint.
    pub async fn private_post_api_v1_account_asset_transfer(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_account_asset_transfer".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1AccountAuthAddress` implicit endpoint.
    pub async fn private_post_api_v1_account_auth_address(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_account_auth_address".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePostApiV1AccountWithdraw` implicit endpoint.
    pub async fn private_post_api_v1_account_withdraw(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_post_api_v1_account_withdraw".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privatePutApiV1UserDataStream` implicit endpoint.
    pub async fn private_put_api_v1_user_data_stream(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_put_api_v1_user_data_stream".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateDeleteApiV1SpotOrder` implicit endpoint.
    pub async fn private_delete_api_v1_spot_order(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_delete_api_v1_spot_order".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateDeleteApiV1SpotOpenOrders` implicit endpoint.
    pub async fn private_delete_api_v1_spot_open_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_delete_api_v1_spot_open_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateDeleteApiV1SpotCancelOrderByIds` implicit endpoint.
    pub async fn private_delete_api_v1_spot_cancel_order_by_ids(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_delete_api_v1_spot_cancel_order_by_ids".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateDeleteApiV1FuturesOrder` implicit endpoint.
    pub async fn private_delete_api_v1_futures_order(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_delete_api_v1_futures_order".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateDeleteApiV1FuturesBatchOrders` implicit endpoint.
    pub async fn private_delete_api_v1_futures_batch_orders(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_delete_api_v1_futures_batch_orders".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateDeleteApiV1FuturesCancelOrderByIds` implicit endpoint.
    pub async fn private_delete_api_v1_futures_cancel_order_by_ids(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_delete_api_v1_futures_cancel_order_by_ids".to_string()), optional_args).await
    }

    /// Auto-generated wrapper for the `privateDeleteApiV1UserDataStream` implicit endpoint.
    pub async fn private_delete_api_v1_user_data_stream(&mut self, optional_args: &[Value]) -> Value {
        self.call_method(Value::Str("private_delete_api_v1_user_data_stream".to_string()), optional_args).await
    }

}