import { AcceptNonLPQuoteParamsV5, AcceptNonLPQuoteResultV5, AccountBorrowCollateralLimitV5, AccountCoinBalanceV5, AccountInfoV5, AccountInstrumentInfoResponseV5, AccountMarginModeV5, AccountOrderV5, AccountTypeV5, AddOrReduceMarginParamsV5, AddOrReduceMarginResultV5, AdjustCollateralAmountParamsV5, AdjustCollateralAmountV5, ADLAlertResponseV5, AffiliateUserInfoV5, AffiliateUserListItemV5, AllCoinsBalanceV5, AllowedDepositCoinInfoV5, AmendOrderParamsV5, AmendSpreadOrderParamsV5, ApiKeyInfoV5, APIP2PResponse, APIResponseV3, APIResponseV3WithTime, AssetInfoV5, AssetOverviewResultV5, AutoRepayModeResultV5, AvailableAmountToRepayV5, BatchAmendOrderParamsV5, BatchAmendOrderResultV5, BatchCancelOrderParamsV5, BatchCancelOrderResultV5, BatchCreateOrderResultV5, BatchOrderParamsV5, BatchOrdersRetExtInfoV5, BorrowableCoinV5, BorrowContractInfoFixedV5, BorrowCryptoLoanParamsV5, BorrowFlexibleParamsV5, BorrowFlexibleV5, BorrowHistoryFlexibleV5, BorrowHistoryRecordV5, BorrowOrderInfoFixedV5, BorrowOrderQuoteFixedV5, BrokerIssuedVoucherV5, BrokerRateLimitAllItemV5, BrokerRateLimitCapItemV5, BrokerRateLimitSetResultItemV5, BrokerVoucherSpecV5, CancelAllOrdersParamsV5, CancelAllRFQResultV5, CancelBorrowOrderFixedParamsV5, CancelOrderParamsV5, CancelRFQParamsV5, CancelRFQQuoteItemV5, CancelRFQQuoteParamsV5, CancelRFQQuoteResultV5, CancelRFQResultV5, CancelSupplyOrderFixedParamsV5, CategoryCursorListV5, CategoryListV5, CategorySymbolListV5, CategoryV5, ClosedOptionsPositionV5, ClosedPnLV5, CoinExchangeRecordV5, CoinGreeksV5, CoinInfoV5, CoinStateV5, CollateralAdjustmentHistoryV5, CollateralDataV5, CollateralInfoV5, CompletedLoanOrderV5, ConfirmNewRiskLimitParamsV5, ConvertCoinsParamsV5, ConvertCoinSpecV5, ConvertHistoryRecordV5, ConvertQuoteV5, ConvertStatusV5, CreateBorrowOrderFixedParamsV5, CreateBorrowOrderFixedV5, CreateP2PAdParamsV5, CreateRFQParamsV5, CreateRFQQuoteParamsV5, CreateRFQQuoteResultV5, CreateRFQResultV5, CreateSubApiKeyParamsV5, CreateSubApiKeyResultV5, CreateSubMemberParamsV5, CreateSubMemberResultV5, CreateSupplyOrderFixedParamsV5, CreateSupplyOrderFixedV5, CryptoLoanPositionV5, CurrencyPositionTiersV5, CursorListV5, CursorRowsV5, DCPInfoV5, DeleteSubMemberParamsV5, DeliveryPriceV5, DeliveryRecordV5, DepositAddressChainV5, DepositRecordV5, EarnHourlyYieldHistoryV5, EarnOrderHistoryV5, EarnPositionV5, EarnProductV5, EarnYieldHistoryV5, ExchangeBrokerAccountInfoV5, ExchangeBrokerEarningResultV5, ExchangeBrokerSubAccountDepositRecordV5, ExecuteRFQQuoteParamsV5, ExecuteRFQQuoteResultV5, ExecutionV5, FeeGroupStructureResponseV5, FeeRateV5, FiatTradingPairListV5, FriendReferralRecordV5, FundingAccountTransactionRecordV5, FundingRateHistoryResponseV5, GetAccountCoinBalanceParamsV5, GetAccountHistoricOrdersParamsV5, GetAccountInstrumentsInfoParamsV5, GetAccountOrdersParamsV5, GetADLAlertParamsV5, GetAffiliateUserListParamsV5, GetAllBrokerRateLimitsParamsV5, GetAllCoinsBalanceParamsV5, GetAllowedDepositCoinInfoParamsV5, GetAssetInfoParamsV5, GetAssetOverviewParamsV5, GetAutoRepayModeParamsV5, GetAvailableAmountToRepayParamsV5, GetBorrowableCoinsParamsV5, GetBorrowContractInfoFixedParamsV5, GetBorrowHistoryFlexibleParamsV5, GetBorrowHistoryParamsV5, GetBorrowOrderInfoFixedParamsV5, GetBorrowOrderQuoteFixedParamsV5, GetBrokerIssuedVoucherParamsV5, GetBrokerSubAccountDepositsV5, GetClassicTransactionLogsParamsV5, GetClosedOptionsPositionsParamsV5, GetClosedPnLParamsV5, GetCoinExchangeRecordParamsV5, GetCoinStateParamsV5, GetCollateralAdjustmentHistoryParamsV5, GetCollateralCoinsParamsV5, GetCompletedLoanOrderHistoryParamsV5, GetConvertHistoryParamsV5, GetDeliveryPriceParamsV5, GetDeliveryRecordParamsV5, GetDepositRecordParamsV5, GetEarnHourlyYieldHistoryParamsV5, GetEarnOrderHistoryParamsV5, GetEarnPositionParamsV5, GetEarnYieldHistoryParamsV5, GetExchangeBrokerEarningsParamsV5, GetExecutionListParamsV5, GetFeeGroupStructureParamsV5, GetFeeRateParamsV5, GetFiatTradingPairListParamsV5, GetFriendReferralsParamsV5, GetFundingAccountTransactionHistoryParamsV5, GetFundingRateHistoryParamsV5, GetHistoricalVolatilityParamsV5, GetIndexPriceComponentsParamsV5, GetIndexPriceKlineParamsV5, GetInstrumentsInfoParamsV5, GetInsuranceParamsV5, GetInternalDepositRecordParamsV5, GetInternalTransferParamsV5, GetKlineParamsV5, GetLoanLTVAdjustmentHistoryParamsV5, GetLongShortRatioParamsV5, GetMarkPriceKlineParamsV5, GetMaxBorrowableAmountParamsV5, GetMaxCollateralAmountParamsV5, GetMaxLoanAmountParamsV5, GetMovePositionHistoryParamsV5, GetOngoingFlexibleLoansParamsV5, GetOpenInterestParamsV5, GetOptionDeliveryPriceParamsV5, GetOrderbookParamsV5, GetP2PAccountCoinsBalanceParamsV5, GetP2PCounterpartyUserInfoParamsV5, GetP2POnlineAdsParamsV5, GetP2POrderMessagesParamsV5, GetP2POrdersParamsV5, GetP2PPendingOrdersParamsV5, GetP2PPersonalAdsParamsV5, GetPositionTiersParamsV5, GetPremiumIndexPriceKlineParamsV5, GetPreUpgradeClosedPnlParamsV5, GetPreUpgradeOptionDeliveryRecordParamsV5, GetPreUpgradeOrderHistoryParamsV5, GetPreUpgradeTradeHistoryParamsV5, GetPreUpgradeTransactionLogParamsV5, GetPreUpgradeUSDCSessionParamsV5, GetPublicTradingHistoryParamsV5, GetRenewOrderInfoFixedParamsV5, GetRepaymentHistoryFixedParamsV5, GetRepaymentHistoryFlexibleParamsV5, GetRepaymentHistoryParamsV5, GetRFQHistoryParamsV5, GetRFQListParamsV5, GetRFQPublicTradesParamsV5, GetRFQQuoteRealtimeParamsV5, GetRFQRealtimeParamsV5, GetRFQRealtimeResultV5, GetRFQTradeListParamsV5, GetRiskLimitParamsV5, GetRPIOrderbookParamsV5, GetSettlementRecordParamsV5, GetSmallBalanceListParamsV5, GetSpreadInstrumentsInfoParamsV5, GetSpreadOpenOrdersParamsV5, GetSpreadOrderHistoryParamsV5, GetSpreadTradeHistoryParamsV5, GetSubAccountAllApiKeysParamsV5, GetSubAccountDepositRecordParamsV5, GetSupplyContractInfoFixedParamsV5, GetSupplyOrderInfoFixedParamsV5, GetSupplyOrderQuoteFixedParamsV5, GetSystemStatusParamsV5, GetTickersParamsV5, GetTransactionLogParamsV5, GetUniversalTransferRecordsParamsV5, GetUnpaidLoanOrdersParamsV5, GetVIPMarginDataParamsV5, GetWalletBalanceParamsV5, GetWithdrawalAddressListParamsV5, GetWithdrawalRecordsParamsV5, HistoricalVolatilityV5, IndexPriceComponentsResponseV5, InstitutionalLoanLTVV5, InstrumentInfoResponseV5, InsuranceResponseV5, InternalDepositRecordV5, InternalTransferRecordV5, IssueVoucherParamsV5, LoanLTVAdjustmentHistoryV5, LongShortRatioV5, ManualBorrowParamsV5, ManualBorrowResultV5, ManualRepayParamsV5, ManualRepayResultV5, ManualRepayWithoutConversionParamsV5, ManualRepayWithoutConversionResultV5, MarkP2POrderAsPaidParamsV5, MaxBorrowableAmountV5, MaxLoanAmountV5, MMPModifyParamsV5, MMPStateV5, MovePositionHistoryV5, MovePositionParamsV5, MovePositionResultV5, OHLCKlineV5, OHLCVKlineV5, OngoingFlexibleLoanV5, OpenInterestResponseV5, OptionDeliveryPriceV5, OrderbookResponseV5, OrderParamsV5, OrderPriceLimitV5, OrderResultV5, OrderSideV5, P2PAccountCoinsBalanceV5, P2PAdDetailV5, P2PCounterpartyUserInfoV5, P2PCreateAdResponseV5, P2POnlineAdsResponseV5, P2POrderDetailV5, P2POrderMessageV5, P2POrdersResponseV5, P2PPersonalAdsResponseV5, P2PUserInfoV5, P2PUserPaymentV5, PositionInfoParamsV5, PositionV5, PreCheckOrderResultV5, PreUpgradeOptionsDelivery, PreUpgradeTransaction, PreUpgradeUSDCSessionSettlement, PublicTradeV5, RenewBorrowOrderFixedParamsV5, RenewBorrowOrderFixedV5, RenewOrderInfoFixedV5, RepayCollateralFixedParamsV5, RepayCollateralFlexibleParamsV5, RepayFixedParamsV5, RepayFixedV5, RepayFlexibleParamsV5, RepayFlexibleV5, RepayInstitutionalLoanParamsV5, RepayInstitutionalLoanResultV5, RepayLiabilityParamsV5, RepayLiabilityResultV5, RepaymentHistoryFixedV5, RepaymentHistoryFlexibleV5, RepaymentHistoryV5, RequestConvertQuoteParamsV5, RFQConfigV5, RFQHistory, RFQPublicTradeV5, RFQQuoteItemV5, RFQTradeV5, RiskLimitV5, RPIOrderbookResponseV5, SendP2POrderMessageParamsV5, SetAutoAddMarginParamsV5, SetAutoRepayModeParamsV5, SetBrokerRateLimitParamsV5, SetCollateralCoinParamsV5, SetLeverageParamsV5, SetLimitPriceActionParamsV5, SetRiskLimitParamsV5, SetRiskLimitResultV5, SetSpotMarginLeverageParamsV5, SettlementRecordV5, SetTPSLModeParamsV5, SetTradingStopParamsV5, SignAgreementParamsV5, SmallBalanceListV5, SpotBorrowCheckResultV5, SpotMarginStateV5, SpreadInstrumentInfoV5, SpreadOpenOrderV5, SpreadOrderbookResponseV5, SpreadOrderHistoryV5, SpreadRecentTradeV5, SpreadTickerV5, SpreadTradeV5, SubMemberV5, SubmitSpreadOrderParamsV5, SubmitStakeRedeemParamsV5, SupplyContractInfoFixedV5, SupplyOrderInfoFixedV5, SupplyOrderQuoteFixedV5, SwitchIsolatedMarginParamsV5, SwitchPositionModeParamsV5, SystemStatusItemV5, TickerLinearInverseV5, TickerOptionV5, TickerSpotV5, TPSLModeV5, TransactionLogV5, UnifiedAccountUpgradeResultV5, UniversalTransferParamsV5, UniversalTransferRecordV5, UnpaidLoanOrderV5, UpdateApiKeyParamsV5, UpdateApiKeyResultV5, UpdateP2PAdParamsV5, VaspEntityV5, VipBorrowableCoinsV5, VipCollateralCoinsV5, VIPMarginDataV5, WalletBalanceV5, WithdrawableAmountV5, WithdrawalAddressV5, WithdrawalRecordV5, WithdrawParamsV5 } from './types';
import BaseRestClient from './util/BaseRestClient';
/**
 * REST API client for V5 REST APIs
 *
 * https://bybit-exchange.github.io/docs/v5/intro
 */
export declare class RestClientV5 extends BaseRestClient {
    /**
     *
     ****** Custom SDK APIs
     *
     */
    /**
     * This method is used to get the latency and time sync between the client and the server.
     * This is not official API endpoint and is only used for internal testing purposes.
     * Use this method to check the latency and time sync between the client and the server.
     * Final values might vary slightly, but it should be within few ms difference.
     * If you have any suggestions or improvements to this measurement, please create an issue or pull request on GitHub.
     */
    fetchLatencySummary(): Promise<any>;
    /**
     *
     ****** Misc Bybit APIs
     *
     */
    getSystemStatus(params?: GetSystemStatusParamsV5): Promise<APIResponseV3WithTime<{
        list: SystemStatusItemV5[];
    }>>;
    getClientType(): "v5";
    fetchServerTime(): Promise<number>;
    getServerTime(): Promise<APIResponseV3WithTime<{
        timeSecond: string;
        timeNano: string;
    }>>;
    /**
     *
     ****** Demo Account APIs
     *
     */
    requestDemoTradingFunds(params?: {
        adjustType?: 0 | 1;
        utaDemoApplyMoney?: Array<{
            coin: string;
            amountStr: string;
        }>;
    }): Promise<APIResponseV3<{}>>;
    /**
     * Create a demo trading account.
     */
    createDemoAccount(): Promise<APIResponseV3<{
        subMemberId: string;
    }>>;
    /**
     *
     ****** Spread Trading APIs
     *
     */
    /**
     * Get Spread Instruments Info
     */
    getSpreadInstrumentsInfo(params?: GetSpreadInstrumentsInfoParamsV5): Promise<APIResponseV3WithTime<{
        list: SpreadInstrumentInfoV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Spread Orderbook
     */
    getSpreadOrderbook(params: {
        symbol: string;
        limit?: number;
    }): Promise<APIResponseV3WithTime<SpreadOrderbookResponseV5>>;
    /**
     * Get Spread Tickers
     */
    getSpreadTickers(params: {
        symbol: string;
    }): Promise<APIResponseV3WithTime<{
        list: SpreadTickerV5[];
    }>>;
    /**
     * Get Spread Public Recent Trades
     */
    getSpreadRecentTrades(params: {
        symbol: string;
        limit?: number;
    }): Promise<APIResponseV3WithTime<{
        list: SpreadRecentTradeV5[];
    }>>;
    /**
     * Create Spread Order
     */
    submitSpreadOrder(params: SubmitSpreadOrderParamsV5): Promise<APIResponseV3WithTime<{
        orderId: string;
        orderLinkId: string;
    }>>;
    /**
     * Amend Spread Order
     * You can only modify unfilled or partially filled orders.
     */
    amendSpreadOrder(params: AmendSpreadOrderParamsV5): Promise<APIResponseV3WithTime<{
        orderId: string;
        orderLinkId: string;
    }>>;
    /**
     * Cancel Spread Order
     */
    cancelSpreadOrder(params: {
        orderId?: string;
        orderLinkId?: string;
    }): Promise<APIResponseV3WithTime<{
        orderId: string;
        orderLinkId: string;
    }>>;
    /**
     * Cancel All Spread Orders
     *
     * When a symbol is specified, all orders for that symbol will be canceled regardless of the cancelAll field.
     * When symbol is not specified and cancelAll=true, all orders, regardless of the symbol, will be canceled.
     */
    cancelAllSpreadOrders(params?: {
        symbol?: string;
        cancelAll?: boolean;
    }): Promise<APIResponseV3WithTime<{
        list: {
            orderId: string;
            orderLinkId: string;
        }[];
        success: string;
    }>>;
    /**
     * Get Spread Open Orders
     * Query unfilled or partially filled orders in real-time.
     */
    getSpreadOpenOrders(params?: GetSpreadOpenOrdersParamsV5): Promise<APIResponseV3WithTime<{
        list: SpreadOpenOrderV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Spread Order History
     *
     * Note:
     * - orderId & orderLinkId has a higher priority than startTime & endTime
     * - Fully canceled orders are stored for up to 24 hours
     * - Single leg orders can also be found with "createType"=CreateByFutureSpread via Get Order History
     */
    getSpreadOrderHistory(params?: GetSpreadOrderHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: SpreadOrderHistoryV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Spread Trade History
     *
     * Note:
     * - In self-trade cases, both the maker and taker single-leg trades will be returned in the same request
     * - Single leg executions can also be found with "execType"=FutureSpread via Get Trade History
     */
    getSpreadTradeHistory(params?: GetSpreadTradeHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: SpreadTradeV5[];
        nextPageCursor: string;
    }>>;
    /**
     *
     ****** Market APIs
     *
     */
    /**
     * Query the kline data. Charts are returned in groups based on the requested interval.
     *
     * Covers: Spot / Linear contract / Inverse contract
     */
    getKline(params: GetKlineParamsV5): Promise<APIResponseV3WithTime<CategorySymbolListV5<OHLCVKlineV5[], 'spot' | 'linear' | 'inverse'>>>;
    /**
     * Query the mark price kline data. Charts are returned in groups based on the requested interval.
     *
     * Covers: Linear contract / Inverse contract
     */
    getMarkPriceKline(params: GetMarkPriceKlineParamsV5): Promise<APIResponseV3WithTime<CategorySymbolListV5<OHLCKlineV5[], 'linear' | 'inverse'>>>;
    /**
     * Query the index price kline data. Charts are returned in groups based on the requested interval.
     *
     * Covers: Linear contract / Inverse contract
     */
    getIndexPriceKline(params: GetIndexPriceKlineParamsV5): Promise<APIResponseV3WithTime<CategorySymbolListV5<OHLCKlineV5[], 'linear' | 'inverse'>>>;
    /**
     * Retrieve the premium index price kline data. Charts are returned in groups based on the requested interval.
     *
     * Covers: Linear contract
     */
    getPremiumIndexPriceKline(params: GetPremiumIndexPriceKlineParamsV5): Promise<APIResponseV3WithTime<CategorySymbolListV5<OHLCKlineV5[], 'linear'>>>;
    /**
     * Query a list of instruments of online trading pair.
     *
     * Covers: Spot / Linear contract / Inverse contract / Option
     *
     * Note: Spot does not support pagination, so limit & cursor are invalid.
     */
    getInstrumentsInfo<C extends CategoryV5>(params: GetInstrumentsInfoParamsV5 & {
        category: C;
    }): Promise<APIResponseV3WithTime<InstrumentInfoResponseV5<C>>>;
    /**
     * Query orderbook data
     *
     * Covers: Spot / Linear contract / Inverse contract / Option
     */
    getOrderbook(params: GetOrderbookParamsV5): Promise<APIResponseV3WithTime<OrderbookResponseV5>>;
    /**
     * Get RPI Orderbook
     * Query for orderbook depth data with RPI (Retail Price Improvement) information.
     *
     * Covers: Spot / USDT contract / USDC contract / Inverse contract
     * Contract: 50-level of RPI orderbook data
     * Spot: 50-level of RPI orderbook data
     */
    getRPIOrderbook(params: GetRPIOrderbookParamsV5): Promise<APIResponseV3WithTime<RPIOrderbookResponseV5>>;
    getTickers(params: GetTickersParamsV5<'linear' | 'inverse'>): Promise<APIResponseV3WithTime<CategoryListV5<TickerLinearInverseV5[], 'linear' | 'inverse'>>>;
    getTickers(params: GetTickersParamsV5<'option'>): Promise<APIResponseV3WithTime<CategoryListV5<TickerOptionV5[], 'option'>>>;
    getTickers(params: GetTickersParamsV5<'spot'>): Promise<APIResponseV3WithTime<CategoryListV5<TickerSpotV5[], 'spot'>>>;
    /**
     * Query historical funding rate. Each symbol has a different funding interval.
     *
     * Covers: Linear contract / Inverse perpetual
     */
    getFundingRateHistory(params: GetFundingRateHistoryParamsV5): Promise<APIResponseV3WithTime<CategoryListV5<FundingRateHistoryResponseV5[], 'linear' | 'inverse'>>>;
    /**
     * Query recent public trading data in Bybit.
     *
     * Covers: Spot / Linear contract / Inverse contract / Option
     */
    getPublicTradingHistory(params: GetPublicTradingHistoryParamsV5): Promise<APIResponseV3WithTime<CategoryListV5<PublicTradeV5[], CategoryV5>>>;
    /**
     * Get open interest of each symbol.
     *
     * Covers: Linear contract / Inverse contract
     */
    getOpenInterest(params: GetOpenInterestParamsV5): Promise<APIResponseV3WithTime<OpenInterestResponseV5>>;
    /**
     * Query option historical volatility
     * Covers: Option
     */
    getHistoricalVolatility(params: GetHistoricalVolatilityParamsV5): Promise<APIResponseV3WithTime<CategoryListV5<HistoricalVolatilityV5[], 'option'>>>;
    /**
     * Query Bybit insurance pool data (BTC/USDT/USDC etc). The data is updated every 24 hours.
     */
    getInsurance(params?: GetInsuranceParamsV5): Promise<APIResponseV3WithTime<InsuranceResponseV5>>;
    /**
     * Query risk limit of futures
     *
     * Covers: Linear contract / Inverse contract
     */
    getRiskLimit(params?: GetRiskLimitParamsV5): Promise<APIResponseV3WithTime<CategoryListV5<RiskLimitV5[], 'inverse' | 'linear'>>>;
    /**
     * Get the delivery price for option
     *
     * Covers: Option
     *
     * @deprecated use getDeliveryPrice() instead
     */
    getOptionDeliveryPrice(params: GetOptionDeliveryPriceParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<OptionDeliveryPriceV5[]>>>;
    /**
     * Get the delivery price of Inverse futures, USDC futures and Options
     *
     * Covers: USDC futures / Inverse futures / Option
     */
    getDeliveryPrice(params: GetDeliveryPriceParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<DeliveryPriceV5[]>>>;
    /**
     * Get New Delivery Price
     * Get historical option delivery prices.
     *
     * Covers: Option
     *
     * INFO
     * - It is recommended to query this endpoint 1 minute after settlement is completed, because the data returned by this endpoint may be delayed by 1 minute.
     * - By default, the most recent 50 records are returned in reverse order of "deliveryTime".
     */
    getNewDeliveryPrice(params: {
        category: 'option';
        baseCoin: string;
        settleCoin?: string;
    }): Promise<APIResponseV3WithTime<{
        category: string;
        list: {
            deliveryPrice: string;
            deliveryTime: string;
        }[];
    }>>;
    getLongShortRatio(params: GetLongShortRatioParamsV5): Promise<APIResponseV3WithTime<CursorListV5<LongShortRatioV5[]>>>;
    /**
     * Get Index Price Components
     * Query for index price components that contribute to the calculation of an index price.
     */
    getIndexPriceComponents(params: GetIndexPriceComponentsParamsV5): Promise<APIResponseV3WithTime<IndexPriceComponentsResponseV5>>;
    getOrderPriceLimit(params: {
        symbol: string;
        category: 'spot' | 'linear' | 'inverse';
    }): Promise<APIResponseV3WithTime<OrderPriceLimitV5>>;
    /**
     * Get ADL Alert
     * Query for ADL (auto-deleveraging mechanism) alerts and insurance pool information.
     *
     * Covers: USDT Perpetual / USDT Delivery / USDC Perpetual / USDC Delivery / Inverse Contracts
     * Data update frequency: every 1 minute
     */
    getADLAlert(params?: GetADLAlertParamsV5): Promise<APIResponseV3WithTime<ADLAlertResponseV5>>;
    /**
     * Get Fee Group Structure
     * Query for the group fee structure and fee rates.
     *
     * The new grouped fee structure only applies to Pro-level and Market Maker clients.
     * Covers: USDT Perpetual / USDT Delivery / USDC Perpetual / USDC Delivery / Inverse Contracts
     */
    getFeeGroupStructure(params: GetFeeGroupStructureParamsV5): Promise<APIResponseV3WithTime<FeeGroupStructureResponseV5>>;
    /**
     *
     ****** Trade APIs
     *
     */
    submitOrder(params: OrderParamsV5): Promise<APIResponseV3WithTime<OrderResultV5>>;
    amendOrder(params: AmendOrderParamsV5): Promise<APIResponseV3WithTime<OrderResultV5>>;
    cancelOrder(params: CancelOrderParamsV5): Promise<APIResponseV3WithTime<OrderResultV5>>;
    /**
     * Query unfilled or partially filled orders in real-time. To query older order records, please use the order history interface.
     */
    getActiveOrders(params: GetAccountOrdersParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<AccountOrderV5[]>>>;
    cancelAllOrders(params: CancelAllOrdersParamsV5): Promise<APIResponseV3WithTime<{
        list: OrderResultV5[];
        success: string;
    }>>;
    /**
     * Query order history. As order creation/cancellation is asynchronous, the data returned from this endpoint may delay.
     *
     * If you want to get real-time order information, you could query this endpoint or rely on the websocket stream (recommended).
     */
    getHistoricOrders(params: GetAccountHistoricOrdersParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<AccountOrderV5[]>>>;
    /**
     * Query users' execution records, sorted by execTime in descending order
     *
     * Unified account covers: Spot / Linear contract / Options
     * Normal account covers: USDT perpetual / Inverse perpetual / Inverse futures
     */
    getExecutionList(params: GetExecutionListParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<ExecutionV5[]>>>;
    /**
     * This endpoint allows you to place more than one order in a single request.
     * Covers: Option (UTA, UTA Pro) / USDT Perpetual, UDSC Perpetual, USDC Futures (UTA Pro)
     *
     * Make sure you have sufficient funds in your account when placing an order.
     * Once an order is placed, according to the funds required by the order,
     * the funds in your account will be frozen by the corresponding amount during the life cycle of the order.
     *
     * A maximum of 20 orders can be placed per request. The returned data list is divided into two lists.
     * The first list indicates whether or not the order creation was successful and the second list details the created order information.
     * The structure of the two lists are completely consistent.
     */
    batchSubmitOrders(category: 'spot' | 'option' | 'linear' | 'inverse', orders: BatchOrderParamsV5[]): Promise<APIResponseV3WithTime<{
        list: BatchCreateOrderResultV5[];
    }, BatchOrdersRetExtInfoV5>>;
    /**
     * This endpoint allows you to amend more than one open order in a single request.
     * Covers: Option (UTA, UTA Pro) / USDT Perpetual, UDSC Perpetual, USDC Futures (UTA Pro)
     *
     * You can modify unfilled or partially filled orders. Conditional orders are not supported.
     *
     * A maximum of 20 orders can be amended per request.
     */
    batchAmendOrders(category: 'spot' | 'option' | 'linear' | 'inverse', orders: BatchAmendOrderParamsV5[]): Promise<APIResponseV3WithTime<{
        list: BatchAmendOrderResultV5[];
    }, BatchOrdersRetExtInfoV5>>;
    /**
     * This endpoint allows you to cancel more than one open order in a single request.
     * Covers: Option (UTA, UTA Pro) / USDT Perpetual, UDSC Perpetual, USDC Futures (UTA Pro)
     *
     * You must specify orderId or orderLinkId. If orderId and orderLinkId is not matched, the system will process orderId first.
     *
     * You can cancel unfilled or partially filled orders. A maximum of 20 orders can be cancelled per request.
     */
    batchCancelOrders(category: 'spot' | 'option' | 'linear' | 'inverse', orders: BatchCancelOrderParamsV5[]): Promise<APIResponseV3WithTime<{
        list: BatchCancelOrderResultV5[];
    }, BatchOrdersRetExtInfoV5>>;
    /**
     * Query the qty and amount of borrowable coins in spot account.
     *
     * Covers: Spot (Unified Account)
     */
    getSpotBorrowCheck(symbol: string, side: OrderSideV5): Promise<APIResponseV3WithTime<SpotBorrowCheckResultV5>>;
    /**
     * This endpoint allows you to set the disconnection protect time window. Covers: option (unified account).
     *
     * If you need to turn it on/off, you can contact your client manager for consultation and application.
     * The default time window is 10 seconds.
     *
     * Only for institutional clients!
     *
     * If it doesn't work, use v2!
     */
    setDisconnectCancelAllWindow(category: 'option', timeWindow: number): Promise<APIResponseV3<undefined>>;
    /**
     * This endpoint allows you to set the disconnection protect time window. Covers: option (unified account).
     *
     * If you need to turn it on/off, you can contact your client manager for consultation and application.
     * The default time window is 10 seconds.
     *
     * Only for institutional clients!
     */
    setDisconnectCancelAllWindowV2(params: {
        product?: 'OPTION' | 'SPOT' | 'DERIVATIVES';
        timeWindow: number;
    }): Promise<APIResponseV3<undefined>>;
    /**
     * Pre-check order to calculate changes in IMR and MMR before placing an order
     *
     * This endpoint supports orders with category = inverse, linear, option.
     * Only Cross Margin mode and Portfolio Margin mode are supported, isolated margin mode is not supported.
     * category = inverse is not supported in Cross Margin mode.
     * Conditional order is not supported.
     */
    preCheckOrder(params: OrderParamsV5): Promise<APIResponseV3WithTime<PreCheckOrderResultV5>>;
    /**
     *
     ****** Position APIs
     *
     */
    /**
     * Query real-time position data, such as position size, cumulative realizedPNL.
     *
     * 0: cross margin. 1: isolated margin
     *
     * Unified account covers: Linear contract / Options
     *
     * Normal account covers: USDT perpetual / Inverse perpetual / Inverse futures
     *
     * Note: this will give a 404 error if you query the `option` category if your account is not unified
     */
    getPositionInfo(params: PositionInfoParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<PositionV5[]>>>;
    /**
     * Set the leverage
     *
     * Unified account covers: Linear contract
     *
     * Normal account covers: USDT perpetual / Inverse perpetual / Inverse futures
     *
     * Note: Under one-way mode, buyLeverage must be the same as sellLeverage
     */
    setLeverage(params: SetLeverageParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Select cross margin mode or isolated margin mode.
     * 0: cross margin. 1: isolated margin
     *
     * Covers: USDT perpetual (Normal account) / Inverse contract (Normal account).
     *
     * Switching margin modes will cause orders in progress to be cancelled.
     * Please make sure that there are no open orders before you switch margin modes.
     */
    switchIsolatedMargin(params: SwitchIsolatedMarginParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * @deprecated
     * This endpoint sets the take profit/stop loss (TP/SL) mode to full or partial.
     *
     * Unified account covers: Linear contract; normal account covers: USDT perpetual, inverse perpetual, inverse futures.
     *
     * For partial TP/SL mode, you can set the TP/SL size smaller than position size.
     */
    setTPSLMode(params: SetTPSLModeParamsV5): Promise<APIResponseV3WithTime<{
        tpSlMode: TPSLModeV5;
    }>>;
    /**
     * Switches the position mode for USDT perpetual and Inverse futures.
     *
     * If you are in one-way Mode, you can only open one position on Buy or Sell side.
     *
     * If you are in hedge mode, you can open both Buy and Sell side positions simultaneously.
     *
     * Position mode. 0: Merged Single. 3: Both Sides.
     */
    switchPositionMode(params: SwitchPositionModeParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * @deprecated
     * The risk limit will limit the maximum position value you can hold under different margin requirements.
     * If you want to hold a bigger position size, you need more margin.
     *
     * This interface can set the risk limit of a single position.
     * If the order exceeds the current risk limit when placing an order, it will be rejected.
     */
    setRiskLimit(params: SetRiskLimitParamsV5): Promise<APIResponseV3WithTime<SetRiskLimitResultV5>>;
    /**
     * This endpoint allows you to set the take profit, stop loss or trailing stop for a position.
     * Passing these parameters will create conditional orders by the system internally.
     *
     * The system will cancel these orders if the position is closed, and adjust the qty according to the size of the open position.
     *
     * Unified account covers: Linear contract.
     * Normal account covers: USDT perpetual / Inverse perpetual / Inverse futures.
     */
    setTradingStop(params: SetTradingStopParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * This endpoint allows you to turn on/off auto-add-margin for an isolated margin position.
     *
     * Covers: USDT perpetual (Normal Account).
     */
    setAutoAddMargin(params: SetAutoAddMarginParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Manually add or reduce margin for isolated margin position
     *
     * Unified account covers: USDT perpetual / USDC perpetual / USDC futures / Inverse contract
     * Normal account covers: USDT perpetual / Inverse contract
     */
    addOrReduceMargin(params: AddOrReduceMarginParamsV5): Promise<APIResponseV3WithTime<AddOrReduceMarginResultV5>>;
    /**
     * Query user's closed profit and loss records. The results are sorted by createdTime in descending order.
     *
     * Unified account covers: Linear contract
     * Normal account covers: USDT perpetual / Inverse perpetual / Inverse futures
     */
    getClosedPnL(params: GetClosedPnLParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<ClosedPnLV5[]>>>;
    /**
     * Get Closed Options Positions
     * Query user's closed options positions, sorted by closeTime in descending order
     *
     * INFO
     * Only supports users to query closed options positions in recently 6 months
     * Fee and price retain 8 decimal places and do not omit the last 0
     */
    getClosedOptionsPositions(params?: GetClosedOptionsPositionsParamsV5): Promise<APIResponseV3WithTime<{
        nextPageCursor: string;
        category: string;
        list: ClosedOptionsPositionV5[];
    }>>;
    /**
     * Move positions between sub-master, master-sub, or sub-sub UIDs.
     *
     * Unified account covers: USDT perpetual / USDC contract / Spot / Option
     *
     * INFO
     * The endpoint can only be called by master UID api key
     * UIDs must be the same master-sub account relationship
     * The trades generated from move-position endpoint will not be displayed in the Recent Trade (Rest API & Websocket)
     * There is no trading fee
     * fromUid and toUid both should be Unified trading accounts, and they need to be one-way mode when moving the positions
     * Please note that once executed, you will get execType=MovePosition entry from Get Trade History, Get Closed Pnl, and stream from Execution.
     */
    movePosition(params: MovePositionParamsV5): Promise<APIResponseV3WithTime<MovePositionResultV5>>;
    /**
     * Query moved position data by master UID api key.
     *
     * Unified account covers: USDT perpetual / USDC contract / Spot / Option
     */
    getMovePositionHistory(params?: GetMovePositionHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: MovePositionHistoryV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Confirm new risk limit.
     *
     * It is only applicable when the user is marked as only reducing positions (please see the isReduceOnly field in the Get Position Info interface).
     * After the user actively adjusts the risk level, this interface is called to try to calculate the adjusted risk level, and if it passes (retCode=0),
     * the system will remove the position reduceOnly mark. You are recommended to call Get Position Info to check isReduceOnly field.
     *
     * Unified account covers: USDT perpetual / USDC contract / Inverse contract
     * Classic account covers: USDT perpetual / Inverse contract
     */
    confirmNewRiskLimit(params: ConfirmNewRiskLimitParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     *
     ****** Pre-upgrade APIs
     *
     */
    /**
     * Get those orders which occurred before you upgrade the account to Unified account.
     *
     * For now, it only supports to query USDT perpetual, USDC perpetual, Inverse perpetual and futures.
     *
     *   - can get all status in 7 days
     *   - can only get filled orders beyond 7 days
     */
    getPreUpgradeOrderHistory(params: GetPreUpgradeOrderHistoryParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<AccountOrderV5[]>>>;
    /**
     * Get users' execution records which occurred before you upgrade the account to Unified account, sorted by execTime in descending order
     *
     * For now, it only supports to query USDT perpetual, Inverse perpetual and futures.
     *
     *   - You may have multiple executions in a single order.
     *   - You can query by symbol, baseCoin, orderId and orderLinkId, and if you pass multiple params,
     *      the system will process them according to this priority: orderId > orderLinkId > symbol > baseCoin.
     */
    getPreUpgradeTradeHistory(params: GetPreUpgradeTradeHistoryParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<ExecutionV5[]>>>;
    /**
     * Query user's closed profit and loss records. The results are sorted by createdTime in descending order.
     *
     * For now, it only supports to query USDT perpetual, Inverse perpetual and futures.
     */
    getPreUpgradeClosedPnl(params: GetPreUpgradeClosedPnlParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<ClosedPnLV5[]>>>;
    /**
     * Query transaction logs which occurred in the USDC Derivatives wallet before the account was upgraded to a Unified account.
     *
     * You can get USDC Perpetual, Option records.
     *
     * INFO
     * USDC Perpeual & Option support the recent 6 months data. Please download older data via GUI
     */
    getPreUpgradeTransactions(params: GetPreUpgradeTransactionLogParamsV5): Promise<APIResponseV3WithTime<{
        list: PreUpgradeTransaction[];
        nextPageCursor: string;
    }>>;
    /**
     * Query delivery records of Option before you upgraded the account to a Unified account, sorted by deliveryTime in descending order.
     *
     * INFO
     * Supports the recent 6 months data. Please download older data via GUI
     */
    getPreUpgradeOptionDeliveryRecord(params: GetPreUpgradeOptionDeliveryRecordParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<PreUpgradeOptionsDelivery[]>>>;
    /**
     * Query session settlement records of USDC perpetual before you upgrade the account to Unified account.
     *
     * INFO
     * USDC Perpetual support the recent 6 months data. Please download older data via GUI
     */
    getPreUpgradeUSDCSessionSettlements(params: GetPreUpgradeUSDCSessionParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<PreUpgradeUSDCSessionSettlement[]>>>;
    /**
     *
     ****** Account APIs
     *
     */
    /**
     * Obtain wallet balance, query asset information of each currency, and account risk rate information under unified margin mode.
     *
     * By default, currency information with assets or liabilities of 0 is not returned.
     */
    getWalletBalance(params: GetWalletBalanceParamsV5): Promise<APIResponseV3WithTime<{
        list: WalletBalanceV5[];
    }>>;
    /**
     * Query the available amount to transfer of a specific coin in the Unified wallet.
     *
     * @param coinName Coin name, uppercase only
     */
    getTransferableAmount(params: {
        coinName: string;
    }): Promise<APIResponseV3WithTime<{
        availableWithdrawal: string;
    }>>;
    /**
     * Get Account Instruments Info
     * Query for the instrument specification of online trading pairs that available to users.
     *
     * Covers: SPOT / USDT contract / USDC contract / Inverse contract
     *
     * Includes RPI permission information (isPublicRpi, myRpiPermission)
     */
    getAccountInstrumentsInfo<C extends 'spot' | 'linear' | 'inverse'>(params: GetAccountInstrumentsInfoParamsV5 & {
        category: C;
    }): Promise<APIResponseV3WithTime<AccountInstrumentInfoResponseV5<C>>>;
    /**
     * Upgrade to unified account.
     *
     * Banned/OTC loan/Net asset unsatisfying/Express path users cannot upgrade the account to Unified Account for now.
     */
    upgradeToUnifiedAccount(): Promise<APIResponseV3WithTime<UnifiedAccountUpgradeResultV5>>;
    /**
     * Get interest records, sorted in reverse order of creation time.
     *
     * Unified account
     */
    getBorrowHistory(params?: GetBorrowHistoryParamsV5): Promise<APIResponseV3WithTime<CursorListV5<BorrowHistoryRecordV5[]>>>;
    /**
     * You can manually repay the liabilities of Unified account
     * Applicable: Unified Account
     * Permission: USDC Contracts
     *
     * - Input the specific coin: repay the liability of this coin in particular
     * - No coin specified: repay the liability of all coins
     */
    repayLiability(params?: RepayLiabilityParamsV5): Promise<APIResponseV3WithTime<CursorListV5<RepayLiabilityResultV5[]>>>;
    /**
     * Manual Repay
     *
     * If neither coin nor amount is passed, then repay all the liabilities.
     * If coin is passed and amount is not, the coin will be repaid in full.
     *
     * When repaying, the system will first use the spot available balance of the debt currency.
     * If that's not enough, the remaining amount will be repaid by converting other assets.
     *
     * Repayment is prohibited between 04:00 and 05:30 per hour.
     */
    manualRepay(params?: ManualRepayParamsV5): Promise<APIResponseV3WithTime<ManualRepayResultV5>>;
    /**
     * You can decide whether the assets in the Unified account needs to be collateral coins.
     */
    setCollateralCoin(params: SetCollateralCoinParamsV5): Promise<APIResponseV3WithTime<{}>>;
    batchSetCollateralCoin(params: {
        request: SetCollateralCoinParamsV5[];
    }): Promise<APIResponseV3WithTime<{
        list: SetCollateralCoinParamsV5[];
    }>>;
    /**
     * Get the collateral information of the current unified margin account, including loan interest rate,
     * loanable amount, collateral conversion rate, whether it can be mortgaged as margin, etc.
     */
    getCollateralInfo(currency?: string): Promise<APIResponseV3WithTime<{
        list: CollateralInfoV5[];
    }>>;
    /**
     * Get current account Greeks information
     */
    getCoinGreeks(baseCoin?: string): Promise<APIResponseV3WithTime<{
        list: CoinGreeksV5[];
    }>>;
    /**
     * Get the trading fee rate.
     * Covers: Spot / USDT perpetual / Inverse perpetual / Inverse futures / Options
     */
    getFeeRate(params: GetFeeRateParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<FeeRateV5[]>>>;
    /**
     * Query the margin mode and the upgraded status of account
     */
    getAccountInfo(): Promise<APIResponseV3<AccountInfoV5>>;
    /**
     * Query the DCP configuration of the account's contracts (USDT perpetual, USDC perpetual and USDC Futures) / spot / options.
     *
     * Only the configured main / sub account can query information from this API. Calling this API by an account always returns empty.
     *
     * INFO
     * support linear contract (USDT, USDC Perp & USDC Futures) / Spot / Options only
     * Unified account only
     */
    getDCPInfo(): Promise<APIResponseV3WithTime<{
        dcpInfos: DCPInfoV5[];
    }>>;
    /**
     * Query transaction logs in Unified account.
     */
    getTransactionLog(params?: GetTransactionLogParamsV5): Promise<APIResponseV3WithTime<CursorListV5<TransactionLogV5[]>>>;
    /**
     * Query transaction logs in the derivatives wallet (classic account), and inverse derivatives wallet (upgraded to UTA).
     *
     * API key permission: "Contract - Position"
     */
    getClassicTransactionLogs(params?: GetClassicTransactionLogsParamsV5): Promise<APIResponseV3WithTime<{
        list: TransactionLogV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Query the SMP group ID of self match prevention.
     */
    getSMPGroup(): Promise<APIResponseV3WithTime<{
        smpGroup: number;
    }>>;
    /**
     * Default is regular margin mode.
     *
     * This mode is valid for USDT Perp, USDC Perp and USDC Option.
     */
    setMarginMode(marginMode: AccountMarginModeV5): Promise<APIResponseV3<{
        reasons: {
            reasonCode: string;
            reasonMsg: string;
        }[];
    }>>;
    /**
     * Turn on/off Spot hedging feature in Portfolio margin for Unified account.
     *
     * INFO
     * Only unified account is applicable
     * Only portfolio margin mode is applicable
     */
    setSpotHedging(params: {
        setHedgingMode: 'ON' | 'OFF';
    }): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Set Limit Price Behaviour
     * You can configure how the system behaves when your limit order price exceeds the highest bid or lowest ask price.
     *
     * Spot: If the order price exceeds the boundary, the system rejects the request.
     * Futures: If the order price exceeds the boundary, the system will automatically adjust the price to the nearest allowed boundary.
     */
    setLimitPriceAction(params: SetLimitPriceActionParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Get Limit Price Behaviour
     * You can get configuration how the system behaves when your limit order price exceeds the highest bid or lowest ask price.
     */
    getLimitPriceAction(): Promise<APIResponseV3WithTime<{
        lpaSpot: boolean;
        lpaPerp: boolean;
    }>>;
    /**
     * Configure Market Maker Protection (MMP)
     */
    setMMP(params: MMPModifyParamsV5): Promise<APIResponseV3<undefined>>;
    /**
     * Once the mmp triggered, you can unfreeze the account via this endpoint
     */
    resetMMP(baseCoin: string): Promise<APIResponseV3<undefined>>;
    /**
     * Get MMP State
     */
    getMMPState(baseCoin: string): Promise<APIResponseV3WithTime<{
        result: MMPStateV5[];
    }>>;
    /**
     *
     ****** Asset APIs
     *
     */
    /**
     * Asset Overview
     * Query master account or subaccount's total assets and detailed asset holdings across different accounts and product categories.
     *
     * INFO: For accountType=Alpha, on-chain assets are not included in the returned data in current version.
     */
    getAssetOverview(params?: GetAssetOverviewParamsV5): Promise<APIResponseV3WithTime<AssetOverviewResultV5>>;
    /**
     * Funding Account Transaction History
     * Transaction log in Funding Account. Supports filtering by transaction type and time range.
     *
     * INFO: createTimeFrom and createTimeTo must be used together. Interval cannot exceed 7 days. If neither provided, defaults to last 7 days.
     */
    getFundingAccountTransactionHistory(params?: GetFundingAccountTransactionHistoryParamsV5): Promise<APIResponseV3WithTime<{
        nextPageCursor: string;
        list: FundingAccountTransactionRecordV5[];
    }>>;
    /**
     * Query option delivery records, sorted by deliveryTime in descending order.
     *
     * Covers: Option
     */
    getDeliveryRecord(params: GetDeliveryRecordParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<DeliveryRecordV5[]>>>;
    /**
     * Query session settlement records of USDC perpetual
     *
     * Covers: Linear contract (USDC Perpetual only, Unified Account)
     */
    getSettlementRecords(params: GetSettlementRecordParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<SettlementRecordV5[]>>>;
    /**
     * Query the coin exchange records.
     *
     * CAUTION: You may experience long delays with this endpoint.
     */
    getCoinExchangeRecords(params?: GetCoinExchangeRecordParamsV5): Promise<APIResponseV3WithTime<{
        orderBody: CoinExchangeRecordV5[];
        nextPageCursor?: string;
    }>>;
    /**
     * Query coin information, including chain information, withdraw and deposit status.
     */
    getCoinInfo(coin?: string): Promise<APIResponseV3WithTime<{
        rows: CoinInfoV5[];
    }>>;
    /**
     * Query the sub UIDs under a main UID
     *
     * CAUTION: Can query by the master UID's api key only
     */
    getSubUID(): Promise<APIResponseV3WithTime<{
        subMemberIds: string[];
        transferableSubMemberIds: string[];
    }>>;
    /**
     * Query asset information.
     *
     * INFO
     * For now, it can query SPOT only.
     */
    getAssetInfo(params: GetAssetInfoParamsV5): Promise<APIResponseV3WithTime<{
        spot: AssetInfoV5;
    }>>;
    /**
     * Query all coin balances of all account types under the master account and sub accounts.
     *
     * It is not allowed to get the master account coin balance via sub account API key.
     */
    getAllCoinsBalance(params: GetAllCoinsBalanceParamsV5): Promise<APIResponseV3WithTime<AllCoinsBalanceV5>>;
    /**
     * Query the balance of a specific coin in a specific account type. Supports querying sub UID's balance.
     *
     * CAUTION: Can query by the master UID's api key only.
     */
    getCoinBalance(params: GetAccountCoinBalanceParamsV5): Promise<APIResponseV3<AccountCoinBalanceV5>>;
    /**
     * Query withdrawable amount.
     */
    getWithdrawableAmount(params: {
        coin: string;
    }): Promise<APIResponseV3<{
        rows: WithdrawableAmountV5[];
    }>>;
    /**
     * Query the transferable coin list between each account type.
     */
    getTransferableCoinList(fromAccountType: AccountTypeV5, toAccountType: AccountTypeV5): Promise<APIResponseV3WithTime<{
        list: string[];
    }>>;
    /**
     * Create the internal transfer between different account types under the same UID.
     * Each account type has its own acceptable coins, e.g, you cannot transfer USDC from SPOT to CONTRACT.
     *
     * Please refer to the getTransferableCoinList() API to find out more.
     */
    createInternalTransfer(transferId: string, coin: string, amount: string, fromAccountType: AccountTypeV5, toAccountType: AccountTypeV5): Promise<APIResponseV3WithTime<{
        transferId: string;
        status: string;
    }>>;
    /**
     * Query the internal transfer records between different account types under the same UID.
     */
    getInternalTransferRecords(params?: GetInternalTransferParamsV5): Promise<APIResponseV3WithTime<CursorListV5<InternalTransferRecordV5[]>>>;
    /**
     * Enable Universal Transfer for Sub UID
     *
     * Use this endpoint to enable a subaccount to take part in a universal transfer.
     * It is a one-time switch which, once thrown, enables a subaccount permanently.
     * If not set, your subaccount cannot use universal transfers.
     *
     * @deprecated - You no longer need to configure transferable sub UIDs.
     * Now, all sub UIDs are automatically enabled for universal transfer.
     *
     */
    enableUniversalTransferForSubUIDs(subMemberIds: string[]): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Transfer between sub-sub or main-sub. Please make sure you have enabled universal transfer on your sub UID in advance.
     */
    createUniversalTransfer(params: UniversalTransferParamsV5): Promise<APIResponseV3WithTime<{
        transferId: string;
        status: string;
    }>>;
    /**
     * Query universal transfer records
     *
     * CAUTION
     * Can query by the master UID's API key only
     */
    getUniversalTransferRecords(params?: GetUniversalTransferRecordsParamsV5): Promise<APIResponseV3WithTime<CursorListV5<UniversalTransferRecordV5[]>>>;
    /**
     * Query allowed deposit coin information.
     * To find out paired chain of coin, please refer to the coin info api.
     */
    getAllowedDepositCoinInfo(params?: GetAllowedDepositCoinInfoParamsV5): Promise<APIResponseV3WithTime<{
        configList: AllowedDepositCoinInfoV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Set auto transfer account after deposit. The same function as the setting for Deposit on web GUI
     */
    setDepositAccount(params: {
        accountType: AccountTypeV5;
    }): Promise<APIResponseV3WithTime<{
        status: 0 | 1;
    }>>;
    /**
     * Query deposit records.
     *
     * TIP
     * endTime - startTime should be less than 30 days. Query last 30 days records by default.
     *
     * Can use main or sub UID api key to query deposit records respectively.
     */
    getDepositRecords(params?: GetDepositRecordParamsV5): Promise<APIResponseV3WithTime<{
        rows: DepositRecordV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Query subaccount's deposit records by MAIN UID's API key.
     *
     * TIP: Query deposit records of SPOT only
     *      endTime - startTime should be less than 30 days.
     *      Queries for the last 30 days worth of records by default.
     */
    getSubAccountDepositRecords(params: GetSubAccountDepositRecordParamsV5): Promise<APIResponseV3WithTime<{
        rows: DepositRecordV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Internal Deposit Records (across Bybit)
     * Query deposit records through Bybit platform
     *
     * RULES
     * The maximum difference between the start time and the end time is 30 days.
     * Support to get deposit records by Master or Sub Member Api Key
     */
    getInternalDepositRecords(params?: GetInternalDepositRecordParamsV5): Promise<APIResponseV3WithTime<{
        rows: InternalDepositRecordV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Query the deposit address information of MASTER account.
     */
    getMasterDepositAddress(coin: string, chainType?: string): Promise<APIResponseV3WithTime<{
        coin: string;
        chains: DepositAddressChainV5[];
    }>>;
    /**
     * Query the deposit address information of SUB account.
     */
    getSubDepositAddress(coin: string, chainType: string, subMemberId: string): Promise<APIResponseV3WithTime<{
        coin: string;
        chains: DepositAddressChainV5;
    }>>;
    /**
     * @deprecated - duplicate function, use getSubDepositAddress() instead
     * Query the deposit address information of SUB account.
     * @deprecated Duplicate endpoint - Use getSubDepositAddress() instead
     *
     * CAUTION
     * Can use master UID's api key only
     */
    querySubMemberAddress(coin: string, chainType: string, subMemberId: string): Promise<APIResponseV3<{
        coin: string;
        chains: DepositAddressChainV5;
    }>>;
    /**
     * Query withdrawal records.
     */
    getWithdrawalRecords(params?: GetWithdrawalRecordsParamsV5): Promise<APIResponseV3<CursorRowsV5<WithdrawalRecordV5[]>>>;
    /**
     * Get Withdrawal Address List
     * Query the withdrawal addresses in the address book.
     *
     * TIP: The API key for querying this endpoint must have withdrawal permissions.
     */
    getWithdrawalAddressList(params?: GetWithdrawalAddressListParamsV5): Promise<APIResponseV3WithTime<{
        rows: WithdrawalAddressV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Exchange Entity List.
     *
     * This endpoint is particularly used for kyc=KOR users. When withdraw funds, you need to fill entity id.
     */
    getExchangeEntities(): Promise<APIResponseV3WithTime<{
        vasp: VaspEntityV5[];
    }>>;
    /**
     * Withdraw assets from the SPOT account.
     *
     * CAUTION: Make sure you have whitelisted your wallet address before calling this endpoint.
     *
     * You can make an off-chain transfer if the target wallet address is from Bybit. This means that no blockchain fee will be charged.
     */
    submitWithdrawal(params: WithdrawParamsV5): Promise<APIResponseV3WithTime<{
        id: string;
    }>>;
    /**
     * Cancel the withdrawal
     *
     * CAUTION: Can query by the master UID's api key only
     */
    cancelWithdrawal(id: string): Promise<APIResponseV3WithTime<{
        status: 0 | 1;
    }>>;
    /**
     * Query the coin list of convert from (to).
     */
    getConvertCoins(params: ConvertCoinsParamsV5): Promise<APIResponseV3WithTime<{
        coins: ConvertCoinSpecV5[];
    }>>;
    /**
     * Request a quote for converting coins.
     */
    requestConvertQuote(params: RequestConvertQuoteParamsV5): Promise<APIResponseV3WithTime<ConvertQuoteV5>>;
    /**
     * Confirm a quote for converting coins.
     */
    confirmConvertQuote(params: {
        quoteTxId: string;
    }): Promise<APIResponseV3WithTime<{
        quoteTxId: string;
        exchangeStatus: 'init' | 'processing' | 'success' | 'failure';
    }>>;
    /**
     * Query the exchange result by sending quoteTxId.
     */
    getConvertStatus(params: {
        quoteTxId: string;
        accountType: 'eb_convert_funding' | 'eb_convert_uta' | 'eb_convert_spot' | 'eb_convert_contract' | 'eb_convert_inverse';
    }): Promise<APIResponseV3WithTime<{
        result: ConvertStatusV5;
    }>>;
    /**
     * Query the conversion history.
     */
    getConvertHistory(params?: GetConvertHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: ConvertHistoryRecordV5[];
    }>>;
    /**
     * Get Small Balance Coins
     * Query small-balance coins with a USDT equivalent of less than 10 USDT.
     * Ensure total amount for each conversion transaction is between 1.0e-8 and 200 USDT.
     *
     * INFO:
     * - API key permission: Convert
     * - API rate limit: 10 req/s
     */
    getSmallBalanceList(params: GetSmallBalanceListParamsV5): Promise<APIResponseV3WithTime<SmallBalanceListV5>>;
    /**
     * Get Fiat Trading Pair List
     * Query for the list of coins you can convert to/from.
     *
     * INFO:
     * - For buy side (side=0): buy crypto, sell fiat
     * - For sell side (side=1): sell crypto, buy fiat
     */
    getFiatTradingPairList(params?: GetFiatTradingPairListParamsV5): Promise<APIResponseV3WithTime<FiatTradingPairListV5>>;
    /**
     *
     ****** User APIs
     *
     */
    /**
     * Create a new sub user id. Use master user's api key only.
     *
     * The API key must have one of the permissions to be allowed to call the following API endpoint.
     * - master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"
     */
    createSubMember(params: CreateSubMemberParamsV5): Promise<APIResponseV3WithTime<CreateSubMemberResultV5>>;
    /**
     * To create new API key for those newly created sub UID. Use master user's api key only.
     *
     * TIP: The API key must have one of the permissions to be allowed to call the following API endpoint.
     * - master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"
     */
    createSubUIDAPIKey(params: CreateSubApiKeyParamsV5): Promise<APIResponseV3WithTime<CreateSubApiKeyResultV5>>;
    /**
     * This endpoint allows you to get a list of all sub UID of master account. At most 10k subaccounts.
     */
    getSubUIDList(): Promise<APIResponseV3WithTime<{
        subMembers: SubMemberV5[];
    }>>;
    /**
     * This endpoint allows you to get a list of all sub UID of master account. No limit on the number of subaccounts.
     */
    getSubUIDListUnlimited(params?: {
        pageSize?: string;
        nextCursor?: string;
    }): Promise<APIResponseV3WithTime<{
        subMembers: SubMemberV5[];
        nextCursor: string;
    }>>;
    /**
     * Froze sub uid. Use master user's api key only.
     *
     * TIP: The API key must have one of the permissions to be allowed to call the following API endpoint.
     * - master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"
     */
    setSubUIDFrozenState(subuid: number, frozen: 0 | 1): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Get the information of the api key. Use the api key pending to be checked to call the endpoint.
     * Both master and sub user's api key are applicable.
     *
     * TIP: Any permission can access this endpoint.
     */
    getQueryApiKey(): Promise<APIResponseV3WithTime<ApiKeyInfoV5>>;
    /**
     * Query all api keys information of a sub UID.
     */
    getSubAccountAllApiKeys(params: GetSubAccountAllApiKeysParamsV5): Promise<APIResponseV3WithTime<{
        result: ApiKeyInfoV5[];
        nextPageCursor: string;
    }>>;
    getUIDWalletType(params: {
        memberIds: string;
    }): Promise<APIResponseV3WithTime<{
        accounts: {
            uid: string;
            accountType: string[];
        }[];
    }>>;
    /**
     * Modify the settings of a master API key. Use the API key pending to be modified to call the endpoint. Use master user's API key only.
     *
     * TIP: The API key must have one of the permissions to be allowed to call the following API endpoint.
     * - master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"
     */
    updateMasterApiKey(params: UpdateApiKeyParamsV5): Promise<APIResponseV3WithTime<UpdateApiKeyResultV5>>;
    /**
     * This endpoint modifies the settings of a sub API key.
     * Use the API key pending to be modified to call the endpoint or use master account api key to manage its sub account api key.
     * The API key must have one of the below permissions in order to call this endpoint
     *
     *  - sub API key: "Account Transfer", "Sub Member Transfer"
     *  - master API Key: "Account Transfer", "Sub Member Transfer", "Withdrawal"
     */
    updateSubApiKey(params: UpdateApiKeyParamsV5): Promise<APIResponseV3<UpdateApiKeyResultV5>>;
    /**
     * Delete a sub UID. Before deleting the UID, please make sure there are no assets.
     *
     * TIP:
     * The API key must have one of the permissions to be allowed to call the following API endpoint.
     * - master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"
     */
    deleteSubMember(params: DeleteSubMemberParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Delete the api key of master account. Use the api key pending to be delete to call the endpoint. Use master user's api key only.
     *
     * TIP:
     * The API key must have one of the permissions to be allowed to call the following API endpoint.
     * - master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"
     *
     * DANGER: BE CAREFUL! The API key used to call this interface will be invalid immediately.
     */
    deleteMasterApiKey(): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Delete the api key of sub account. Use the api key pending to be delete to call the endpoint. Use sub user's api key only.
     *
     * TIP:
     * The API key must have one of the permissions to be allowed to call the following API endpoint.
     * - sub API key: "Account Transfer", "Sub Member Transfer"
     * - master API Key: "Account Transfer", "Sub Member Transfer", "Withdrawal"
     *
     * DANGER: BE CAREFUL! The sub API key used to call this interface will be invalid immediately.
     */
    deleteSubApiKey(params?: {
        apikey?: string;
    }): Promise<APIResponseV3WithTime<{}>>;
    /**
     *
     ****** Affiliate APIs
     *
     */
    /**
     * Get Affiliate User List.
     * To use this endpoint, you should have an affiliate account and only tick "affiliate" permission while creating the API key.
     *
     * TIP:
     * - Use master UID only
     * - The api key can only have "Affiliate" permission
     */
    getAffiliateUserList(params?: GetAffiliateUserListParamsV5): Promise<APIResponseV3WithTime<{
        list: AffiliateUserListItemV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Affiliate User Info.
     *
     * This API is used for affiliate to get their users information.
     *
     * TIP
     * Use master UID only
     * The api key can only have "Affiliate" permission
     * The transaction volume and deposit amount are the total amount of the user done on Bybit, and have nothing to do with commission settlement. Any transaction volume data related to commission settlement is subject to the Affiliate Portal.
     */
    getAffiliateUserInfo(params: {
        uid: string;
    }): Promise<APIResponseV3WithTime<AffiliateUserInfoV5>>;
    /**
     * Get Friend Referrals
     * Query the friend's invitee data.
     *
     * TIP: Any permission can access this endpoint.
     */
    getFriendReferrals(params?: GetFriendReferralsParamsV5): Promise<APIResponseV3WithTime<{
        nextCursor: string;
        records: FriendReferralRecordV5[];
    }>>;
    /**
     * Sign Agreement
     * To trade metals commodity contracts (e.g. XAUUSDT, XAGUSDT Perpetuals), complete the agreement signing first.
     * Recommended to sign in advance via API so you can trade immediately when contracts go live.
     *
     * INFO
     * - Only the master account can sign. Subaccounts are not supported.
     * - Once the master has signed, all subaccounts will be eligible to trade.
     * - API key must have: Account Transfer, Subaccount Transfer, or Withdrawal.
     * - Trading without signing returns code=110123, msg=You must agree to the Trading Terms.
     */
    signAgreement(params: SignAgreementParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     *
     ****** Spot Margin Trade APIs (UTA)
     *
     */
    /**
     * Get VIP Margin Data.
     *
     * This margin data is for Unified account in particular.
     *
     * INFO
     * Do not need authentication
     */
    getVIPMarginData(params?: GetVIPMarginDataParamsV5): Promise<APIResponseV3WithTime<VIPMarginDataV5>>;
    /**
     * Get Historical Interest Rate
     * You can query up to six months borrowing interest rate of Margin trading.
     * INFO: Need authentication, the api key needs "Spot" permission. Only supports Unified account.
     */
    getHistoricalInterestRate(params: {
        currency: string;
        vipLevel?: string;
        startTime?: number;
        endTime?: number;
    }): Promise<APIResponseV3WithTime<{
        list: {
            timestamp: number;
            currency: string;
            hourlyBorrowRate: string;
            vipLevel: string;
        }[];
    }>>;
    /**
     * Turn spot margin trade on / off in your UTA account.
     *
     * CAUTION
     * Your account needs to turn on spot margin first.
     */
    toggleSpotMarginTrade(spotMarginMode: '1' | '0'): Promise<APIResponseV3WithTime<{
        spotMarginMode: '1' | '0';
    }>>;
    /**
     * @deprecated Use setSpotMarginLeverageV2 instead, which uses an object parameter instead. This method will be replaced by setSpotMarginLeverageV2 in a future release.
     */
    setSpotMarginLeverage(leverage: string): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Set the user's maximum leverage in spot cross margin.
     * CAUTION: Your account needs to enable spot margin first; i.e., you must have finished the quiz on web / app.
     */
    setSpotMarginLeverageV2(params: SetSpotMarginLeverageParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Query the Spot margin status and leverage of Unified account.
     *
     * Covers: Margin trade (Unified Account)
     */
    getSpotMarginState(): Promise<APIResponseV3WithTime<SpotMarginStateV5>>;
    /**
     * Manual borrow for UTA
     */
    manualBorrow(params: ManualBorrowParamsV5): Promise<APIResponseV3WithTime<ManualBorrowResultV5>>;
    /**
     * Get max borrowable amount
     */
    getMaxBorrowableAmount(params: GetMaxBorrowableAmountParamsV5): Promise<APIResponseV3WithTime<MaxBorrowableAmountV5>>;
    /**
     * Get loan position risk information (position tiers)
     */
    getPositionTiers(params?: GetPositionTiersParamsV5): Promise<APIResponseV3WithTime<{
        list: CurrencyPositionTiersV5[];
    }>>;
    /**
     * Get currency leverage information (coin state)
     */
    getCoinState(params?: GetCoinStateParamsV5): Promise<APIResponseV3WithTime<{
        list: CoinStateV5[];
    }>>;
    /**
     * Get available amount to repay
     */
    getAvailableAmountToRepay(params: GetAvailableAmountToRepayParamsV5): Promise<APIResponseV3WithTime<AvailableAmountToRepayV5>>;
    /**
     * Manual repay without asset conversion
     *
     * IMPORTANT: Repayment is prohibited between 04:00 and 05:30 per hour.
     * When repaying, system will only use the spot available balance of the debt currency.
     */
    manualRepayWithoutConversion(params: ManualRepayWithoutConversionParamsV5): Promise<APIResponseV3WithTime<ManualRepayWithoutConversionResultV5>>;
    /**
     * Get Auto Repay Mode
     * Get spot automatic repayment mode.
     *
     * INFO:
     * - If currency is not passed, automatic repay mode for all currencies will be returned
     */
    getAutoRepayMode(params?: GetAutoRepayModeParamsV5): Promise<APIResponseV3WithTime<AutoRepayModeResultV5>>;
    /**
     * Set Auto Repay Mode
     * Set spot automatic repayment mode.
     *
     * INFO:
     * - If currency is not passed, spot automatic repayment will be enabled for all currencies
     * - If autoRepayMode of a currency is set to 1, the system will automatically make repayments
     *   without asset conversion to that currency at 0 and 30 minutes every hour
     * - The amount of repayments is the minimum of available spot balance and liability
     */
    setAutoRepayMode(params: SetAutoRepayModeParamsV5): Promise<APIResponseV3WithTime<AutoRepayModeResultV5>>;
    /**
     *
     ****** Spot Margin Trade APIs (Normal)
     *
     */
    /**
     * Get Margin Coin Info
     */
    getSpotMarginCoinInfo(coin?: string): Promise<APIResponseV3WithTime<{
        list: {
            coin: string;
            conversionRate: string;
            liquidationOrder: number;
        }[];
    }>>;
    /**
     * Get Borrowable Coin Info
     */
    getSpotMarginBorrowableCoinInfo(coin?: string): Promise<APIResponseV3WithTime<{
        list: {
            coin: string;
            borrowingPrecision: number;
            repaymentPrecision: number;
        }[];
    }>>;
    /**
     * Get Interest & Quota
     */
    getSpotMarginInterestAndQuota(coin: string): Promise<APIResponseV3WithTime<{
        list: {
            coin: string;
            interestRate: string;
            loanAbleAmount: string;
            maxLoanAmount: string;
        }[];
    }>>;
    /**
     * Get Loan Account Info
     */
    getSpotMarginLoanAccountInfo(): Promise<APIResponseV3WithTime<{
        acctBalanceSum: string;
        debtBalanceSum: string;
        loanAccountList: {
            free: string;
            interest: string;
            loan: string;
            remainAmount: string;
            locked: string;
            tokenId: string;
            total: string;
        }[];
        riskRate: string;
        status: number;
        switchStatus: number;
    }>>;
    /**
     * Borrow
     */
    spotMarginBorrow(params: {
        coin: string;
        qty: string;
    }): Promise<APIResponseV3WithTime<{
        transactId: string;
    }>>;
    /**
     * Repay
     */
    spotMarginRepay(params: {
        coin: string;
        qty?: string;
        completeRepayment: 0 | 1;
    }): Promise<APIResponseV3WithTime<{
        repayId: string;
    }>>;
    /**
     * Get Borrow Order Detail
     */
    getSpotMarginBorrowOrderDetail(params?: {
        startTime?: number;
        endTime?: number;
        coin?: string;
        status?: 0 | 1 | 2;
        limit?: number;
    }): Promise<APIResponseV3WithTime<{
        list: {
            accountId: string;
            coin: string;
            createdTime: number;
            id: string;
            interestAmount: string;
            interestBalance: string;
            loanAmount: string;
            loanBalance: string;
            remainAmount: string;
            status: string;
            type: string;
        }[];
    }>>;
    /**
     * Get Repayment Order Detail
     */
    getSpotMarginRepaymentOrderDetail(params?: {
        startTime?: number;
        endTime?: number;
        coin?: string;
        limit?: number;
    }): Promise<APIResponseV3WithTime<{
        list: {
            accountId: string;
            coin: string;
            repaidAmount: string;
            repayId: string;
            repayMarginOrderId: string;
            repayTime: string;
            transactIds: {
                repaidInterest: string;
                repaidPrincipal: string;
                repaidSerialNumber: string;
                transactId: string;
            }[];
        }[];
    }>>;
    /**
     * Turn spot margin trade on / off in your NORMAL account.
     */
    toggleSpotCrossMarginTrade(params: {
        switch: 1 | 0;
    }): Promise<APIResponseV3WithTime<{
        switchStatus: '1' | '0';
    }>>;
    /**
     *
     ****** Crypto Loan - Legacy
     *
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     */
    /**
     * Get Collateral Coins
     *
     * INFO: Do not need authentication
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     */
    getCollateralCoins(params?: {
        vipLevel?: string;
        currency?: string;
    }): Promise<APIResponseV3WithTime<{
        vipCoinList: VipCollateralCoinsV5[];
    }>>;
    /**
     * Get Borrowable Coins
     *
     * INFO: Do not need authentication
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     */
    getBorrowableCoins(params?: {
        vipLevel?: string;
        currency?: string;
    }): Promise<APIResponseV3WithTime<{
        vipCoinList: VipBorrowableCoinsV5[];
    }>>;
    /**
     * Get Account Borrow/Collateral Limit
     * Query the account borrowable/collateral limit
     *
     * Permission: "Spot trade"
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     */
    getAccountBorrowCollateralLimit(params: {
        loanCurrency: string;
        collateralCurrency: string;
    }): Promise<APIResponseV3WithTime<AccountBorrowCollateralLimitV5>>;
    /**
     * Borrow Crypto Loan
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     * Permission: "Spot trade"
     *
     * INFO:
     * The loan funds are released to the Funding account
     * The collateral funds are deducted from the Funding account, so make sure you have enough collateral amount in the funding wallet
     */
    borrowCryptoLoan(params: BorrowCryptoLoanParamsV5): Promise<APIResponseV3WithTime<{
        orderId: string;
    }>>;
    /**
     * Repay Crypto Loan
     *
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     * You can repay partial loan. If there is interest occurred, interest will be repaid in priority
     *
     * Permission: "Spot trade"
     *
     * INFO:
     * The repaid amount will be deducted from Funding account
     * The collateral amount will not be auto returned when you don't fully repay the debt, but you can also adjust collateral amount
     */
    repayCryptoLoan(params: {
        orderId: string;
        amount: string;
    }): Promise<APIResponseV3WithTime<{
        repayId: string;
    }>>;
    /**
     * Get Unpaid Loan Orders
     * Query the ongoing loan orders, which are not fully repaid
     *
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     * Permission: "Spot trade"
     */
    getUnpaidLoanOrders(params?: GetUnpaidLoanOrdersParamsV5): Promise<APIResponseV3WithTime<{
        list: UnpaidLoanOrderV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Repayment Transaction History
     * Query repaid transaction history
     *
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     * Permission: "Spot trade"
     *
     * INFO:
     * Support querying last 6 months completed loan orders
     * Only successful repayments can be queried
     */
    getRepaymentHistory(params?: GetRepaymentHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: RepaymentHistoryV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Completed Loan Order History
     * Query the completed loan orders
     *
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     * Permission: "Spot trade"
     *
     * INFO:
     * Support querying last 6 months completed loan orders
     */
    getCompletedLoanOrderHistory(params?: GetCompletedLoanOrderHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: CompletedLoanOrderV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Max. Allowed Reduction Collateral Amount
     * Query the maximum allowed reduction collateral amount
     *
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     * Permission: "Spot trade"
     */
    getMaxAllowedReductionCollateralAmount(params: {
        orderId: string;
    }): Promise<APIResponseV3WithTime<{
        maxCollateralAmount: string;
    }>>;
    /**
     * Adjust Collateral Amount
     * You can increase or reduce collateral amount. When you reduce, please follow the max. allowed reduction amount.
     *
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     * Permission: "Spot trade"
     *
     * INFO:
     * The adjusted collateral amount will be returned to or deducted from Funding account
     */
    adjustCollateralAmount(params: {
        orderId: string;
        amount: string;
        direction: '0' | '1';
    }): Promise<APIResponseV3WithTime<{
        adjustId: string;
    }>>;
    /**
     * Get Loan LTV Adjustment History
     * Query the transaction history of collateral amount adjustment
     *
     * @deprecated - Use "Crypto Loan - New" Endpoints instead
     *
     * Permission: "Spot trade"
     *
     * INFO:
     * Support querying last 6 months adjustment transactions
     * Only the ltv adjustment transactions launched by the user can be queried
     */
    getLoanLTVAdjustmentHistory(params?: GetLoanLTVAdjustmentHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: LoanLTVAdjustmentHistoryV5[];
        nextPageCursor: string;
    }>>;
    /**
     *
     ****** Crypto Loan New
     *
     */
    /**
     * Get Borrowable Coins New
     *
     */
    getLoanBorrowableCoins(params?: GetBorrowableCoinsParamsV5): Promise<APIResponseV3WithTime<{
        list: BorrowableCoinV5[];
    }>>;
    /**
     * Get Collateral Coins New
     *
     */
    getLoanCollateralCoins(params?: GetCollateralCoinsParamsV5): Promise<APIResponseV3WithTime<CollateralDataV5>>;
    /**
     * Get Max. Allowed Collateral Reduction Amount New
     *
     */
    getMaxCollateralAmount(params: GetMaxCollateralAmountParamsV5): Promise<APIResponseV3WithTime<{
        maxCollateralAmount: string;
    }>>;
    /**
     * Obtain Max Loan Amount
     * Check the maximum borrowable amount & remaining individual platform limit for crypto loans.
     *
     * INFO:
     * - Permission: "Spot trade"
     * - UID rate limit: 5 req/s
     */
    getMaxLoanAmount(params: GetMaxLoanAmountParamsV5): Promise<APIResponseV3WithTime<MaxLoanAmountV5>>;
    /**
     * Adjust Collateral Amount New
     * You can increase or reduce your collateral amount. When you reduce, please obey the Get Max. Allowed Collateral Reduction Amount
     */
    updateCollateralAmount(params: AdjustCollateralAmountParamsV5): Promise<APIResponseV3WithTime<AdjustCollateralAmountV5>>;
    /**
     * Get Collateral Adjustment History New
     * Query for your LTV adjustment history.
     *
     */
    getCollateralAdjustmentHistory(params?: GetCollateralAdjustmentHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: CollateralAdjustmentHistoryV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Crypto Loan Position New
     *
     */
    getCryptoLoanPosition(): Promise<APIResponseV3WithTime<CryptoLoanPositionV5>>;
    /**
     *
     ****** Crypto Loan New - Flexible Loan
     *
     */
    /**
     * Borrow Flexible Loan
     * Fully or partially repay a loan. If interest is due, that is paid off first, with the loaned amount being paid off only after due interest.
     *
     */
    borrowFlexible(params: BorrowFlexibleParamsV5): Promise<APIResponseV3WithTime<BorrowFlexibleV5>>;
    /**
     * Repay Flexible Loan
     * Fully or partially repay a loan. If interest is due, that is paid off first, with the loaned amount being paid off only after due interest.
     *
     */
    repayFlexible(params: RepayFlexibleParamsV5): Promise<APIResponseV3WithTime<RepayFlexibleV5>>;
    /**
     * Collateral Repayment
     * Pay interest first, then repay the principal.
     */
    repayCollateralFlexible(params: RepayCollateralFlexibleParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Get Flexible Loans
     * Query for your ongoing loans
     *
     */
    getOngoingFlexibleLoans(params?: GetOngoingFlexibleLoansParamsV5): Promise<APIResponseV3WithTime<{
        list: OngoingFlexibleLoanV5[];
    }>>;
    /**
     * Get Borrow Orders History
     *
     */
    getBorrowHistoryFlexible(params?: GetBorrowHistoryFlexibleParamsV5): Promise<APIResponseV3WithTime<{
        list: BorrowHistoryFlexibleV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Repayment Orders History
     *
     */
    getRepaymentHistoryFlexible(params?: GetRepaymentHistoryFlexibleParamsV5): Promise<APIResponseV3WithTime<{
        list: RepaymentHistoryFlexibleV5[];
        nextPageCursor: string;
    }>>;
    /**
     *
     ****** Fixed Loan
     *
     */
    /**
     * Get Supplying Market
     * If you want to supply, you can use this endpoint to check whether there are any suitable counterparty borrow orders available.
     *
     */
    getSupplyOrderQuoteFixed(params: GetSupplyOrderQuoteFixedParamsV5): Promise<APIResponseV3WithTime<{
        list: SupplyOrderQuoteFixedV5[];
    }>>;
    /**
     * Get Borrowing Market
     * If you want to borrow, you can use this endpoint to check whether there are any suitable counterparty supply orders available.
     *
     */
    getBorrowOrderQuoteFixed(params: GetBorrowOrderQuoteFixedParamsV5): Promise<APIResponseV3WithTime<{
        list: BorrowOrderQuoteFixedV5[];
    }>>;
    /**
     * Create Borrow Order
     * The loan funds are released to the Funding wallet.
     * The collateral funds are deducted from the Funding wallet, so make sure you have enough collateral amount in the Funding wallet.
     */
    createBorrowOrderFixed(params: CreateBorrowOrderFixedParamsV5): Promise<APIResponseV3WithTime<CreateBorrowOrderFixedV5>>;
    /**
     * Create Supply Order
     *
     * Permission: "Spot trade"
     */
    createSupplyOrderFixed(params: CreateSupplyOrderFixedParamsV5): Promise<APIResponseV3WithTime<CreateSupplyOrderFixedV5>>;
    /**
     * Cancel Borrow Order
     *
     */
    cancelBorrowOrderFixed(params: CancelBorrowOrderFixedParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Cancel Supply Order
     */
    cancelSupplyOrderFixed(params: CancelSupplyOrderFixedParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Get Borrow Contract Info
     *
     */
    getBorrowContractInfoFixed(params?: GetBorrowContractInfoFixedParamsV5): Promise<APIResponseV3WithTime<{
        list: BorrowContractInfoFixedV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Supply Contract Info
     *
     */
    getSupplyContractInfoFixed(params?: GetSupplyContractInfoFixedParamsV5): Promise<APIResponseV3WithTime<{
        list: SupplyContractInfoFixedV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Borrow Order Info
     *
     */
    getBorrowOrderInfoFixed(params?: GetBorrowOrderInfoFixedParamsV5): Promise<APIResponseV3WithTime<{
        list: BorrowOrderInfoFixedV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Supply Order Info
     *
     */
    getSupplyOrderInfoFixed(params?: GetSupplyOrderInfoFixedParamsV5): Promise<APIResponseV3WithTime<{
        list: SupplyOrderInfoFixedV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Repay Fixed Loan
     * Either loanId or loanCurrency needs to be passed
     *
     */
    repayFixed(params: RepayFixedParamsV5): Promise<APIResponseV3WithTime<RepayFixedV5>>;
    /**
     * Collateral Repayment
     * Pay interest first, then repay the principal.
     *
     */
    repayCollateralFixed(params: RepayCollateralFixedParamsV5): Promise<APIResponseV3WithTime<{}>>;
    /**
     * Get Repayment History
     *
     */
    getRepaymentHistoryFixed(params?: GetRepaymentHistoryFixedParamsV5): Promise<APIResponseV3WithTime<{
        list: RepaymentHistoryFixedV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Renew Borrow Order
     * This endpoint allows you to re-borrow the principal that was previously repaid.
     * The renewal amount is the same as the amount previously repaid on this loan.
     *
     * Permission: "Spot trade"
     * UID rate limit: 1 req / second
     */
    renewBorrowOrderFixed(params: RenewBorrowOrderFixedParamsV5): Promise<APIResponseV3WithTime<RenewBorrowOrderFixedV5>>;
    /**
     * Get Renew Order Info
     * Query for renew order information
     *
     * Permission: "Spot trade"
     * UID rate limit: 5 req / second
     */
    getRenewOrderInfoFixed(params?: GetRenewOrderInfoFixedParamsV5): Promise<APIResponseV3WithTime<{
        list: RenewOrderInfoFixedV5[];
        nextPageCursor: string;
    }>>;
    /**
     *
     ****** Institutional Lending
     *
     */
    /**
     * Get Product Info
     */
    getInstitutionalLendingProductInfo(productId?: string): Promise<APIResponseV3WithTime<{
        marginProductInfo: any[];
    }>>;
    /**
     * Get Margin Coin Info
     * @deprecated
     */
    getInstitutionalLendingMarginCoinInfo(productId?: string): Promise<APIResponseV3WithTime<{
        marginToken: any[];
    }>>;
    /**
     * Get Margin Coin Info With Conversion Rate
     */
    getInstitutionalLendingMarginCoinInfoWithConversionRate(productId?: string): Promise<APIResponseV3WithTime<{
        marginToken: any[];
    }>>;
    /**
     * Get Loan Orders
     */
    getInstitutionalLendingLoanOrders(params?: {
        orderId?: string;
        startTime?: number;
        endTime?: number;
        limit?: number;
    }): Promise<APIResponseV3WithTime<{
        loanInfo: any[];
    }>>;
    /**
     * Get Repay Orders
     */
    getInstitutionalLendingRepayOrders(params?: {
        startTime?: number;
        endTime?: number;
        limit?: number;
    }): Promise<APIResponseV3WithTime<{
        repayInfo: any[];
    }>>;
    /**
     * Get LTV
     * @deprecated
     */
    getInstitutionalLendingLTV(): Promise<APIResponseV3WithTime<InstitutionalLoanLTVV5>>;
    /**
     * Get LTV with Ladder Conversion Rate
     */
    getInstitutionalLendingLTVWithLadderConversionRate(): Promise<APIResponseV3WithTime<InstitutionalLoanLTVV5>>;
    /**
     * Bind or unbind UID for the institutional loan product.
     *
     * INFO
     * Risk unit designated UID cannot be unbound
     * This endpoint can only be called by uids in the risk unit list
     * The UID must be upgraded to UTA Pro if you try to bind it.
     * When the API is operated through the API Key of any UID in the risk unit, the UID is bound or unbound in the risk unit.
     */
    bindOrUnbindUID(params: {
        uid: string;
        operate: '0' | '1';
    }): Promise<APIResponseV3WithTime<{
        uid: string;
        operate: '0' | '1';
    }>>;
    /**
     * Repay Institutional Loan
     * Repay INS loan independently.
     *
     * IMPORTANT:
     * - Only the designated Risk Unit UID is allowed to call this API
     * - The repayment is processed asynchronously and usually takes 2-3 minutes
     * - Confirm repayment status via Get Repayment Orders before initiating next repayment
     * - When repaying, principal amount will be deducted from Unified wallet (interest not included)
     * - Please contact RM before executing
     */
    repayInstitutionalLoan(params: RepayInstitutionalLoanParamsV5): Promise<APIResponseV3WithTime<RepayInstitutionalLoanResultV5>>;
    /**
     *
     ****** Broker
     *
     */
    /**
     * Get Exchange Broker Earning.
     *
     * INFO
     * Use exchange broker master account to query
     * The data can support up to past 1 months until T-1. To extract data from over a month ago, please contact your Relationship Manager
     * begin & end are either entered at the same time or not entered, and latest 7 days data are returned by default
     * API rate limit: 10 req / sec
     */
    getExchangeBrokerEarnings(params?: GetExchangeBrokerEarningsParamsV5): Promise<APIResponseV3WithTime<ExchangeBrokerEarningResultV5>>;
    /**
     * Get Exchange Broker Account Info.
     *
     * INFO
     * Use exchange broker master account to query
     * API rate limit: 10 req / sec
     */
    getExchangeBrokerAccountInfo(): Promise<APIResponseV3WithTime<ExchangeBrokerAccountInfoV5>>;
    /**
     * Get Sub Account Deposit Records.
     *
     * Exchange broker can query subaccount's deposit records by main UID's API key without specifying uid.
     *
     * API rate limit: 300 req / min
     *
     * TIP
     * endTime - startTime should be less than 30 days. Queries for the last 30 days worth of records by default.
     */
    getBrokerSubAccountDeposits(params?: GetBrokerSubAccountDepositsV5): Promise<APIResponseV3WithTime<{
        rows: ExchangeBrokerSubAccountDepositRecordV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Query Voucher Spec
     */
    getBrokerVoucherSpec(params: {
        id: string;
    }): Promise<APIResponseV3WithTime<BrokerVoucherSpecV5>>;
    /**
     * Issue a voucher to a user
     *
     * INFO
     * Use exchange broker master account to issue
     */
    issueBrokerVoucher(params: IssueVoucherParamsV5): Promise<APIResponseV3<undefined>>;
    /**
     * Query an issued voucher
     *
     * INFO
     * Use exchange broker master account to query
     */
    getBrokerIssuedVoucher(params: GetBrokerIssuedVoucherParamsV5): Promise<APIResponseV3<BrokerIssuedVoucherV5>>;
    /**
     * Set Rate Limit
     * Exchange broker only. Set the rate limit for sub accounts.
     *
     * API rate limit: 1 req per second
     *
     * INFO
     * - If the UID calling this endpoint is a master account, the UIDs specified in the uids parameter must belong to its subaccounts. The master account itself cannot set a custom rate limit.
     * - If the UID requesting this endpoint is a subaccount, the UID can only be itself in uids.
     * - Only exchange broker account can call this endpoint
     */
    setBrokerRateLimit(params: SetBrokerRateLimitParamsV5): Promise<APIResponseV3WithTime<{
        result: BrokerRateLimitSetResultItemV5[];
    }>>;
    /**
     * Get Rate Limit Cap
     * Get your exchange broker account entity total rate limit usage and cap, across the board.
     *
     * API rate limit: 5 req per second
     *
     * INFO
     * - Only Main UIDs can query this endpoint
     * - Only exchange broker account can call this endpoint
     * - If you never apply for a specific config via account manager, it gives empty response.
     */
    getBrokerRateLimitCap(): Promise<APIResponseV3WithTime<{
        list: BrokerRateLimitCapItemV5[];
    }>>;
    /**
     * Get All Rate Limits
     * Use the master account to query for all your UID-level rate limits, including all master accounts and subaccounts.
     *
     * API rate limit: 1 req per second
     *
     * INFO
     * - Only exchange broker account can call this endpoint
     * - The accounts that have never had a rate limit configured via Set Rate Limit will not appear in the response and will use the default rate limit.
     */
    getAllBrokerRateLimits(params?: GetAllBrokerRateLimitsParamsV5): Promise<APIResponseV3WithTime<{
        list: BrokerRateLimitAllItemV5[];
        nextPageCursor: string;
    }>>;
    /**
     *
     ****** EARN
     *
     */
    /**
     * Get Product Info for Earn products
     *
     * INFO: Do not need authentication
     */
    getEarnProduct(params: {
        category: string;
        coin?: string;
    }): Promise<APIResponseV3WithTime<{
        list: EarnProductV5[];
    }>>;
    /**
     * Stake or Redeem Earn products
     *
     * INFO: API key needs "Earn" permission
     *
     * NOTE: In times of high demand for loans in the market for a specific cryptocurrency,
     * the redemption of the principal may encounter delays and is expected to be processed
     * within 48 hours. Once the redemption request is initiated, it cannot be canceled,
     * and your principal will continue to earn interest until the process is completed.
     */
    submitStakeRedeem(params: SubmitStakeRedeemParamsV5): Promise<APIResponseV3WithTime<{
        orderId: string;
        orderLinkId: string;
    }>>;
    /**
     * Get Stake/Redeem Order History
     *
     * INFO: API key needs "Earn" permission
     *
     * Note:
     * - For category = OnChain, either orderId or orderLinkId is required
     * - If both are passed, make sure they're matched, otherwise returning empty result
     * - Supports batch query with productId, startTime, endTime, limit, cursor
     */
    getEarnOrderHistory(params: GetEarnOrderHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: EarnOrderHistoryV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Staked Position
     *
     * INFO: API key needs "Earn" permission
     *
     * Note: Fully redeemed position is also returned in the response
     */
    getEarnPosition(params: GetEarnPositionParamsV5): Promise<APIResponseV3WithTime<{
        list: EarnPositionV5[];
    }>>;
    /**
     * Get Yield History
     *
     * INFO: API key needs "Earn" permission
     */
    getEarnYieldHistory(params: GetEarnYieldHistoryParamsV5): Promise<APIResponseV3WithTime<{
        yield: EarnYieldHistoryV5[];
        nextPageCursor: string;
    }>>;
    /**
     * Get Hourly Yield History
     *
     * INFO: API key needs "Earn" permission
     */
    getEarnHourlyYieldHistory(params: GetEarnHourlyYieldHistoryParamsV5): Promise<APIResponseV3WithTime<{
        list: EarnHourlyYieldHistoryV5[];
        nextPageCursor: string;
    }>>;
    /**
     *
     ****** RFQ APIs
     *
     */
    /**
     * Create RFQ
     * Create a new request for quote (RFQ) to specified counterparties
     */
    createRFQ(params: CreateRFQParamsV5): Promise<APIResponseV3WithTime<CreateRFQResultV5>>;
    /**
     * Get RFQ Configuration
     * Query the information of the quoting party that can participate in the transaction
     * and your own deskCode and other configuration information
     */
    getRFQConfig(): Promise<APIResponseV3WithTime<RFQConfigV5>>;
    /**
     * Cancel RFQ
     * Cancel your inquiry
     * Pass at least one rfqId or rfqLinkId
     */
    cancelRFQ(params: CancelRFQParamsV5): Promise<APIResponseV3WithTime<CancelRFQResultV5>>;
    /**
     * Cancel All RFQ
     * Cancel all your inquiry forms
     */
    cancelAllRFQ(): Promise<APIResponseV3WithTime<CancelAllRFQResultV5>>;
    /**
     * Create Quote
     * Allow the quotation party specified in the inquiry form to quote
     * Pass at least one quoteBuyList and quoteSellList
     */
    createRFQQuote(params: CreateRFQQuoteParamsV5): Promise<APIResponseV3WithTime<CreateRFQQuoteResultV5>>;
    /**
     * Execute Quote
     * Execute quotes, only for the creator of the inquiry form
     * Need to view the execution result through the /v5/rfq/blocktrade-list interface
     */
    executeRFQQuote(params: ExecuteRFQQuoteParamsV5): Promise<APIResponseV3WithTime<ExecuteRFQQuoteResultV5>>;
    /**
     * Cancel Quote
     * Cancel a quotation
     * Pass at least one quoteId, rfqId, and quoteLinkId
     */
    cancelRFQQuote(params: CancelRFQQuoteParamsV5): Promise<APIResponseV3WithTime<CancelRFQQuoteResultV5>>;
    /**
     * Cancel All Quotes
     * Cancel all quotations
     */
    cancelAllRFQQuotes(): Promise<APIResponseV3WithTime<{
        data: CancelRFQQuoteItemV5[];
    }>>;
    /**
     * Get Real-time RFQ Information
     * Obtain the inquiry information sent or received by the user, query from rfq-engine without delay
     * Pass both rfqId and rfqLinkId, rfqId shall prevail
     * Sort in reverse order according to the creation time of rfq and return it
     */
    getRFQRealtimeInfo(params?: GetRFQRealtimeParamsV5): Promise<APIResponseV3WithTime<GetRFQRealtimeResultV5>>;
    /**
     * Get Historical RFQ Information
     * Obtain the information of the inquiry form sent or received by the user, query from the database
     * Pass both rfqId and rfqLinkId, rfqId shall prevail
     * Sort in reverse order according to the creation time of rfq and return it
     */
    getRFQHistory(params?: GetRFQListParamsV5): Promise<APIResponseV3WithTime<RFQHistory>>;
    /**
     * Get Real-time Quote Information
     * Obtain quotation information sent or received by users, query from rfq-engine without delay
     * Pass quoteId and quoteLinkId, quoteId shall prevail
     * Pass both rfqId and rfqLinkId, rfqId shall prevail
     * Sort in reverse order according to the creation time of the quotation
     * Return all non-final quotes
     */
    getRFQRealtimeQuote(params?: GetRFQQuoteRealtimeParamsV5): Promise<APIResponseV3WithTime<{
        list: RFQQuoteItemV5[];
    }>>;
    /**
     * Get Historical Quote Information
     * Obtain the quotation information sent or received by the user, query from the database
     * Pass quoteId and quoteLinkId, quoteId shall prevail
     * Pass both rfqId and rfqLinkId, rfqId shall prevail
     * Sort in reverse order according to the creation time of the quotation
     */
    getRFQHistoryQuote(params?: GetRFQHistoryParamsV5): Promise<APIResponseV3WithTime<{
        cursor: string;
        list: RFQQuoteItemV5[];
    }>>;
    /**
     * Get Trade Information
     * Obtain transaction information executed by the user
     */
    getRFQTrades(params?: GetRFQTradeListParamsV5): Promise<APIResponseV3WithTime<{
        cursor: string;
        list: RFQTradeV5[];
    }>>;
    /**
     * Get RFQ Public Transaction Data
     * Get the recently executed RFQ successfullys
     */
    getRFQPublicTrades(params?: GetRFQPublicTradesParamsV5): Promise<APIResponseV3WithTime<{
        cursor: string;
        list: RFQPublicTradeV5[];
    }>>;
    /**
     * Accept non-LP Quote
     * Accept non-LP Quote.
     *
     * INFO:
     * - Up to 50 requests per second
     */
    acceptNonLPQuote(params: AcceptNonLPQuoteParamsV5): Promise<APIResponseV3WithTime<AcceptNonLPQuoteResultV5>>;
    /**
     *
     ****** P2P TRADING
     *
     */
    /**
     *
     * General P2P
     */
    /**
     * Get coin balance of all account types under the master account, and sub account.
     *
     * Note: this field is mandatory for accountType=UNIFIED, and supports up to 10 coins each request
     */
    getP2PAccountCoinsBalance(params: GetP2PAccountCoinsBalanceParamsV5): Promise<APIResponseV3WithTime<P2PAccountCoinsBalanceV5>>;
    /**
     *
     * Advertisement P2P
     */
    /**
     * Get market online ads list
     */
    getP2POnlineAds(params: GetP2POnlineAdsParamsV5): Promise<APIResponseV3WithTime<P2POnlineAdsResponseV5>>;
    /**
     * Post new P2P advertisement
     */
    createP2PAd(params: CreateP2PAdParamsV5): Promise<APIResponseV3WithTime<P2PCreateAdResponseV5>>;
    /**
     * Cancel P2P advertisement
     */
    cancelP2PAd(params: {
        itemId: string;
    }): Promise<APIResponseV3WithTime<{
        securityRiskToken: string;
        riskTokenType: string;
        riskVersion: string;
        needSecurityRisk: boolean;
    }>>;
    /**
     * Update or relist P2P advertisement
     */
    updateP2PAd(params: UpdateP2PAdParamsV5): Promise<APIResponseV3WithTime<P2PCreateAdResponseV5>>;
    /**
     * Get personal P2P ads list
     *
     */
    getP2PPersonalAds(params: GetP2PPersonalAdsParamsV5): Promise<APIResponseV3WithTime<P2PPersonalAdsResponseV5>>;
    /**
     * Get P2P ad details
     */
    getP2PAdDetail(params: {
        itemId: string;
    }): Promise<APIResponseV3WithTime<P2PAdDetailV5>>;
    /**
     *
     * Orders P2P
     */
    /**
     * Get all P2P orders
     *
     */
    getP2POrders(params: GetP2POrdersParamsV5): Promise<APIResponseV3WithTime<P2POrdersResponseV5>>;
    /**
     * Get P2P order details
     *
     */
    getP2POrderDetail(params: {
        orderId: string;
    }): Promise<APIResponseV3WithTime<P2POrderDetailV5>>;
    /**
     * Get pending P2P orders
     */
    getP2PPendingOrders(params: GetP2PPendingOrdersParamsV5): Promise<APIResponseV3WithTime<P2POrdersResponseV5>>;
    /**
     * Mark P2P order as paid
     */
    markP2POrderAsPaid(params: MarkP2POrderAsPaidParamsV5): Promise<APIResponseV3WithTime<null>>;
    /**
     * Release digital assets in a P2P order
     */
    releaseP2POrder(params: {
        orderId: string;
    }): Promise<APIResponseV3WithTime<null>>;
    /**
     * Send chat message in a P2P order
     */
    sendP2POrderMessage(params: SendP2POrderMessageParamsV5): Promise<APIResponseV3WithTime<null>>;
    /**
     * Upload chat file for P2P order (Node.js only)
     *
     * Note: You must provide a Buffer. To upload from a file path, read it into a Buffer first:
     * ```typescript
     * import fs from 'fs';
     * const buffer = fs.readFileSync('./path/to/file.png');
     * await client.uploadP2PChatFile({ fileBuffer: buffer, fileName: 'file.png' });
     * ```
     *
     * Supported file types: jpg, png, jpeg, pdf, mp4
     */
    uploadP2PChatFile(params: {
        fileBuffer: Buffer;
        fileName: string;
    }): Promise<APIResponseV3WithTime<{
        url: string;
        type: string;
        uploadId: string | null;
    }>>;
    /**
     * Get chat messages in a P2P order
     */
    getP2POrderMessages(params: GetP2POrderMessagesParamsV5): Promise<APIP2PResponse<P2POrderMessageV5[]>>;
    /**
     *
     * User P2P
     */
    /**
     * Get P2P user account information
     */
    getP2PUserInfo(): Promise<APIResponseV3WithTime<P2PUserInfoV5>>;
    /**
     * Get counterparty user information in a P2P order
     */
    getP2PCounterpartyUserInfo(params: GetP2PCounterpartyUserInfoParamsV5): Promise<APIResponseV3WithTime<P2PCounterpartyUserInfoV5>>;
    /**
     * Get user payment information
     */
    getP2PUserPayments(): Promise<APIResponseV3WithTime<P2PUserPaymentV5[]>>;
    /**
     *
     ****** API Rate Limit Management APIs
     *
     */
    /**
     * Set API rate limit
     *
     * API rate limit: 50 req per second
     *
     * INFO
     * - If UID requesting this endpoint is a master account, uids in the input parameter must be subaccounts of the master account.
     * - If UID requesting this endpoint is not a master account, uids in the input parameter must be the UID requesting this endpoint
     * - UID requesting this endpoint must be an institutional user.
     */
    setApiRateLimit(params: {
        list: {
            uids: string;
            bizType: string;
            rate: number;
        }[];
    }): Promise<APIResponseV3WithTime<{
        result: {
            uids: string;
            bizType: string;
            rate: number;
            success: boolean;
            msg: string;
        }[];
    }>>;
    /**
     * Query API rate limit
     *
     * API rate limit: 50 req per second
     *
     * INFO
     * - A master account can query api rate limit of its own and subaccounts.
     * - A subaccount can only query its own api rate limit.
     */
    queryApiRateLimit(params: {
        uids: string;
    }): Promise<APIResponseV3WithTime<{
        list: {
            uids: string;
            bizType: string;
            rate: number;
        }[];
    }>>;
    /**
     * Get Rate Limit Cap
     * Get your institution's total rate limit usage and cap, across the board.
     *
     * API rate limit: 50 req per second
     * Main UIDs or sub UIDs can query this endpoint, but a main UID can only see the rate limits of subs below it.
     */
    getRateLimitCap(): Promise<APIResponseV3WithTime<{
        list: {
            bizType: string;
            totalRate: number;
            insCap: number;
            uidCap: number;
        }[];
    }>>;
    /**
     * Get All Rate Limits
     * Query for all your UID-level rate limits, including all master accounts and subaccounts.
     *
     * API rate limit: 50 req per second
     */
    getAllRateLimits(params?: {
        limit?: string;
        cursor?: string;
        uids?: string;
    }): Promise<APIResponseV3WithTime<{
        list: {
            uids: string;
            bizType: string;
            rate: number;
        }[];
        nextPageCursor: string;
    }>>;
}
