bybit-api 4.6.3 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/rest-client-v5.d.ts +182 -2
- package/lib/rest-client-v5.js +248 -0
- package/lib/rest-client-v5.js.map +1 -1
- package/lib/types/request/index.d.ts +3 -0
- package/lib/types/request/index.js +3 -0
- package/lib/types/request/index.js.map +1 -1
- package/lib/types/request/v5-account.d.ts +1 -0
- package/lib/types/request/v5-alpha-lp.d.ts +42 -0
- package/lib/types/request/v5-alpha-lp.js +6 -0
- package/lib/types/request/v5-alpha-lp.js.map +1 -0
- package/lib/types/request/v5-alpha-prediction.d.ts +91 -0
- package/lib/types/request/v5-alpha-prediction.js +6 -0
- package/lib/types/request/v5-alpha-prediction.js.map +1 -0
- package/lib/types/request/v5-asset.d.ts +10 -0
- package/lib/types/request/v5-crypto-loan.d.ts +3 -0
- package/lib/types/request/v5-earn.d.ts +3 -0
- package/lib/types/request/v5-position.d.ts +4 -0
- package/lib/types/request/v5-rwa.d.ts +30 -0
- package/lib/types/request/v5-rwa.js +6 -0
- package/lib/types/request/v5-rwa.js.map +1 -0
- package/lib/types/request/v5-trade.d.ts +1 -0
- package/lib/types/response/index.d.ts +3 -0
- package/lib/types/response/index.js +3 -0
- package/lib/types/response/index.js.map +1 -1
- package/lib/types/response/v5-account.d.ts +2 -0
- package/lib/types/response/v5-alpha-lp.d.ts +121 -0
- package/lib/types/response/v5-alpha-lp.js +6 -0
- package/lib/types/response/v5-alpha-lp.js.map +1 -0
- package/lib/types/response/v5-alpha-prediction.d.ts +225 -0
- package/lib/types/response/v5-alpha-prediction.js +6 -0
- package/lib/types/response/v5-alpha-prediction.js.map +1 -0
- package/lib/types/response/v5-asset.d.ts +3 -0
- package/lib/types/response/v5-crypto-loan.d.ts +51 -0
- package/lib/types/response/v5-earn.d.ts +34 -0
- package/lib/types/response/v5-market.d.ts +3 -0
- package/lib/types/response/v5-position.d.ts +10 -0
- package/lib/types/response/v5-rwa.d.ts +73 -0
- package/lib/types/response/v5-rwa.js +6 -0
- package/lib/types/response/v5-rwa.js.map +1 -0
- package/lib/types/response/v5-trade.d.ts +5 -0
- package/lib/types/websockets/ws-events.d.ts +6 -0
- package/llms.txt +11177 -9930
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
[][1]
|
|
8
8
|
[](https://www.codefactor.io/repository/github/tiagosiebler/bybit-api)
|
|
9
9
|
[](https://t.me/nodetraders)
|
|
10
|
+
[](https://deepwiki.com/tiagosiebler/bybit-api)
|
|
10
11
|
|
|
11
12
|
<p align="center">
|
|
12
13
|
<a href="https://www.npmjs.com/package/bybit-api">
|
package/lib/rest-client-v5.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AcceptNonLPQuoteParamsV5, AcceptNonLPQuoteResultV5, AccountBorrowCollateralLimitV5, AccountCoinBalanceV5, AccountInfoV5, AccountInstrumentInfoResponseV5, AccountMarginModeV5, AccountOrderV5, AccountTypeV5, AddOrReduceMarginParamsV5, AddOrReduceMarginResultV5, AdjustCollateralAmountParamsV5, AdjustCollateralAmountV5, ADLAlertResponseV5, AdvanceEarnAdvanceProductInfoV5, AdvanceEarnOrderListV5, AdvanceEarnPlaceOrderResultV5, AdvanceEarnPositionListV5, AdvanceEarnProductExtraInfoV5, AffiliateSubAffiliateListResultV5, AffiliateUserInfoV5, AffiliateUserListItemV5, AllCoinsBalanceV5, AllowedDepositCoinInfoV5, AlphaAssetDetailResultV5, AlphaAssetListResultV5, AlphaBizTokenDetailsV5, AlphaBizTokenPriceListResultV5, AlphaBizTokenV5, AlphaPayTokenV5, AlphaTradeOrderListResultV5, AlphaTradeQuoteResultV5, 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, CardAssetRecordsResultV5, CardMallItemListResultV5, CardPointBalanceV5, CardPointCashbackDetailV5, CardPointRecordsResultV5, CardPointTierInfoV5, CategoryCursorListV5, CategoryListV5, CategorySymbolListV5, CategoryV5, ClaimPwmWithdrawableFundsParamsV5, ClaimPwmWithdrawableFundsResultV5, ClosedOptionsPositionV5, ClosedPnLV5, CoinExchangeRecordV5, CoinGreeksV5, CoinInfoV5, CoinStateV5, CollateralAdjustmentHistoryV5, CollateralDataV5, CollateralInfoV5, CompletedLoanOrderV5, ConfirmNewRiskLimitParamsV5, ConvertCoinsParamsV5, ConvertCoinSpecV5, ConvertHistoryRecordV5, ConvertQuoteV5, ConvertStatusV5, CreateBorrowOrderFixedParamsV5, CreateBorrowOrderFixedV5, CreateP2PAdParamsV5, CreatePwmAssetManagerInvestmentPlanParamsV5, CreatePwmAssetManagerInvestmentPlanResultV5, CreatePwmCustomizeInvestmentPlanParamsV5, CreatePwmCustomizeInvestmentPlanResultV5, CreatePwmFundParamsV5, CreatePwmFundResultV5, CreatePwmFundSubAccountParamsV5, CreatePwmFundSubAccountResultV5, CreateRFQParamsV5, CreateRFQQuoteParamsV5, CreateRFQQuoteResultV5, CreateRFQResultV5, CreateStrategyOrderParamsV5, CreateStrategyOrderResultV5, CreateSubApiKeyParamsV5, CreateSubApiKeyResultV5, CreateSubMemberParamsV5, CreateSubMemberResultV5, CreateSupplyOrderFixedParamsV5, CreateSupplyOrderFixedV5, CryptoLoanPositionV5, CurrencyPositionTiersV5, CursorListV5, CursorRowsV5, DCPInfoV5, DeleteSubMemberParamsV5, DeliveryPriceV5, DeliveryRecordV5, DepositAddressChainV5, DepositRecordV5, EarnAprHistoryPointV5, EarnHourlyYieldHistoryV5, EarnOrderHistoryV5, EarnPositionV5, EarnProductV5, EarnTokenDailyYieldRecordV5, EarnTokenHistoryAprPointV5, EarnTokenHourlyYieldRecordV5, EarnTokenOrderV5, EarnTokenPositionV5, EarnTokenProductV5, EarnYieldHistoryV5, ExchangeBrokerAccountInfoV5, ExchangeBrokerEarningResultV5, ExchangeBrokerSubAccountDepositRecordV5, ExecuteAlphaTradeParamsV5, ExecuteAlphaTradeResultV5, ExecuteRFQQuoteParamsV5, ExecuteRFQQuoteResultV5, ExecutionV5, FeeGroupStructureResponseV5, FeeRateV5, FiatTradingPairListV5, FixedRateBorrowContractInfoV5, FixedRateBorrowOrderInfoV5, FixedRateBorrowParamsV5, FixedRateBorrowQuoteV5, FixedRateBorrowResultV5, FixedTermEarnOrderListV5, FixedTermEarnPlaceOrderResultV5, FixedTermEarnPositionListV5, FixedTermEarnProductListV5, FriendReferralRecordV5, FundingAccountTransactionRecordV5, FundingRateHistoryResponseV5, GetAccountCoinBalanceParamsV5, GetAccountHistoricOrdersParamsV5, GetAccountInstrumentsInfoParamsV5, GetAccountOrdersParamsV5, GetADLAlertParamsV5, GetAdvanceEarnOrderListParamsV5, GetAdvanceEarnPositionListParamsV5, GetAdvanceEarnProductExtraInfoParamsV5, GetAdvanceEarnProductParamsV5, GetAffiliateSubAffiliateListParamsV5, GetAffiliateUserInfoParamsV5, GetAffiliateUserListParamsV5, GetAllBrokerRateLimitsParamsV5, GetAllCoinsBalanceParamsV5, GetAllowedDepositCoinInfoParamsV5, GetAlphaAssetDetailParamsV5, GetAlphaBizTokenDetailsParamsV5, GetAlphaBizTokenListParamsV5, GetAlphaBizTokenPriceListParamsV5, GetAlphaPayTokenListParamsV5, GetAlphaTradeOrderListParamsV5, GetAlphaTradeQuoteParamsV5, GetAssetInfoParamsV5, GetAssetOverviewParamsV5, GetAutoRepayModeParamsV5, GetAvailableAmountToRepayParamsV5, GetBorrowableCoinsParamsV5, GetBorrowContractInfoFixedParamsV5, GetBorrowHistoryFlexibleParamsV5, GetBorrowHistoryParamsV5, GetBorrowOrderInfoFixedParamsV5, GetBorrowOrderQuoteFixedParamsV5, GetBrokerIssuedVoucherParamsV5, GetBrokerSubAccountDepositsV5, GetClassicTransactionLogsParamsV5, GetClosedOptionsPositionsParamsV5, GetClosedPnLParamsV5, GetCoinExchangeRecordParamsV5, GetCoinStateParamsV5, GetCollateralAdjustmentHistoryParamsV5, GetCollateralCoinsParamsV5, GetCompletedLoanOrderHistoryParamsV5, GetConvertHistoryParamsV5, GetDeliveryPriceParamsV5, GetDeliveryRecordParamsV5, GetDepositRecordParamsV5, GetEarnAprHistoryParamsV5, GetEarnHourlyYieldHistoryParamsV5, GetEarnOrderHistoryParamsV5, GetEarnPositionParamsV5, GetEarnTokenDailyYieldParamsV5, GetEarnTokenHistoryAprParamsV5, GetEarnTokenHourlyYieldParamsV5, GetEarnTokenOrderListParamsV5, GetEarnTokenPositionParamsV5, GetEarnTokenProductParamsV5, GetEarnYieldHistoryParamsV5, GetExchangeBrokerEarningsParamsV5, GetExecutionListParamsV5, GetFeeGroupStructureParamsV5, GetFeeRateParamsV5, GetFiatTradingPairListParamsV5, GetFixedRateBorrowContractInfoParamsV5, GetFixedRateBorrowOrderInfoParamsV5, GetFixedRateBorrowOrderQuoteParamsV5, GetFixedTermEarnOrderListParamsV5, GetFixedTermEarnPositionParamsV5, GetFixedTermEarnProductParamsV5, GetFriendReferralsParamsV5, GetFundingAccountTransactionHistoryParamsV5, GetFundingRateHistoryParamsV5, GetHistoricalVolatilityParamsV5, GetHoldToEarnAirdropYieldHistoryParamsV5, GetIndexPriceComponentsParamsV5, GetIndexPriceKlineParamsV5, GetInstrumentsInfoParamsV5, GetInsuranceParamsV5, GetInternalDepositRecordParamsV5, GetInternalTransferParamsV5, GetKlineParamsV5, GetLiquidityMiningProductParamsV5, GetLoanLTVAdjustmentHistoryParamsV5, GetLongShortRatioParamsV5, GetMarkPriceKlineParamsV5, GetMaxBorrowableAmountParamsV5, GetMaxCollateralAmountParamsV5, GetMaxLoanAmountParamsV5, GetMovePositionHistoryParamsV5, GetOngoingFlexibleLoansParamsV5, GetOpenInterestParamsV5, GetOptionDeliveryPriceParamsV5, GetOrderbookParamsV5, GetP2PAccountCoinsBalanceParamsV5, GetP2PCounterpartyUserInfoParamsV5, GetP2POnlineAdsParamsV5, GetP2POrderMessagesParamsV5, GetP2POrdersParamsV5, GetP2PPendingOrdersParamsV5, GetP2PPersonalAdsParamsV5, GetPayInfoParamsV5, GetPortfolioMarginInfoParamsV5, GetPositionTiersParamsV5, GetPremiumIndexPriceKlineParamsV5, GetPreUpgradeClosedPnlParamsV5, GetPreUpgradeOptionDeliveryRecordParamsV5, GetPreUpgradeOrderHistoryParamsV5, GetPreUpgradeTradeHistoryParamsV5, GetPreUpgradeTransactionLogParamsV5, GetPreUpgradeUSDCSessionParamsV5, GetPublicTradingHistoryParamsV5, GetPwmAllFundOrdersParamsV5, GetPwmAllFundsParamsV5, GetPwmAssetManagerInvestmentPlansParamsV5, GetPwmFundHistoricalNavParamsV5, GetPwmFundTransferRecordsParamsV5, GetPwmInvestmentPlanAssetTrendParamsV5, GetPwmInvestmentPlanDetailParamsV5, GetPwmInvestmentPlanOrdersParamsV5, GetPwmPendingInvestmentPlanDetailParamsV5, GetRenewOrderInfoFixedParamsV5, GetRepaymentHistoryFixedParamsV5, GetRepaymentHistoryFlexibleParamsV5, GetRepaymentHistoryParamsV5, GetRFQHistoryParamsV5, GetRFQListParamsV5, GetRFQPublicTradesParamsV5, GetRFQQuoteRealtimeParamsV5, GetRFQRealtimeParamsV5, GetRFQRealtimeResultV5, GetRFQTradeListParamsV5, GetRiskLimitParamsV5, GetRPIOrderbookParamsV5, GetSettlementRecordParamsV5, GetSmallBalanceListParamsV5, GetSpotMarginCurrencyDataParamsV5, GetSpotMarginLiabilityInfoParamsV5, GetSpreadInstrumentsInfoParamsV5, GetSpreadMaxQtyParamsV5, GetSpreadOpenOrdersParamsV5, GetSpreadOrderHistoryParamsV5, GetSpreadTradeHistoryParamsV5, GetStrategyListParamsV5, GetStrategyOrderListParamsV5, GetSubAccountAllApiKeysParamsV5, GetSubAccountDepositRecordParamsV5, GetSupplyContractInfoFixedParamsV5, GetSupplyOrderInfoFixedParamsV5, GetSupplyOrderQuoteFixedParamsV5, GetSystemStatusParamsV5, GetTickersParamsV5, GetTotalMembersAssetsParamsV5, GetTradeInfoForAnalysisParamsV5, GetTransactionLogParamsV5, GetUniversalTransferRecordsParamsV5, GetUnpaidLoanOrdersParamsV5, GetVIPMarginDataParamsV5, GetWalletBalanceParamsV5, GetWithdrawalAddressListParamsV5, GetWithdrawalRecordsParamsV5, HistoricalVolatilityV5, HoldToEarnAirdropProductsResultV5, HoldToEarnAirdropYieldHistoryResultV5, IndexPriceComponentsResponseV5, InstitutionalLoanLTVV5, InstrumentInfoResponseV5, InsuranceResponseV5, InternalDepositRecordV5, InternalTransferRecordV5, InvestMorePwmInvestmentPlanParamsV5, InvestMorePwmInvestmentPlanResultV5, IssueVoucherParamsV5, LiquidityMiningProductResultV5, LoanLTVAdjustmentHistoryV5, LongShortRatioV5, ManagePwmAssetManagerInvestmentPlanParamsV5, ManagePwmAssetManagerInvestmentPlanResultV5, ManagePwmFundOrderParamsV5, ManagePwmFundOrderResultV5, ManualBorrowParamsV5, ManualBorrowResultV5, ManualRepayParamsV5, ManualRepayResultV5, ManualRepayWithoutConversionParamsV5, ManualRepayWithoutConversionResultV5, MarkP2POrderAsPaidParamsV5, MaxBorrowableAmountV5, MaxLoanAmountV5, MMPModifyParamsV5, MMPStateV5, ModifyEarnPositionParamsV5, MovePositionHistoryV5, MovePositionParamsV5, MovePositionResultV5, OHLCKlineV5, OHLCVKlineV5, OngoingFlexibleLoanV5, OpenInterestResponseV5, OptionAssetInfoNestedResultV5, OptionDeliveryPriceV5, OrderbookResponseV5, OrderParamsV5, OrderPriceLimitV5, OrderResultV5, OrderSideV5, P2PAccountCoinsBalanceV5, P2PAdDetailV5, P2PCounterpartyUserInfoV5, P2PCreateAdResponseV5, P2POnlineAdsResponseV5, P2POrderDetailV5, P2POrderMessageV5, P2POrdersResponseV5, P2PPersonalAdsResponseV5, P2PUserInfoV5, P2PUserPaymentV5, PayInfoResultV5, PlaceEarnTokenOrderParamsV5, PlaceEarnTokenOrderResultV5, PortfolioMarginInfoResultV5, PositionInfoParamsV5, PositionV5, PreCheckOrderResultV5, PreUpgradeOptionsDelivery, PreUpgradeTransaction, PreUpgradeUSDCSessionSettlement, PublicTradeV5, PwmAllFundOrdersResultV5, PwmAllFundsResultV5, PwmAssetManagerInvestmentPlansResultV5, PwmFundHistoricalNavResultV5, PwmFundTransferParamsV5, PwmFundTransferRecordV5, PwmFundTransferResultV5, PwmInvestmentPlanAssetTrendResultV5, PwmInvestmentPlanDetailV5, PwmInvestmentPlanListResultV5, PwmInvestmentPlanOrdersResultV5, PwmPendingInvestmentPlanDetailV5, PwmSubscribableProductInfoResultV5, QueryCardAssetRecordsParamsV5, QueryCardMallItemListParamsV5, QueryCardPointCashbackDetailParamsV5, QueryCardPointRecordsParamsV5, RedeemFixedTermEarnParamsV5, RedeemFixedTermEarnResultV5, RedeemPwmInvestmentPlanParamsV5, RedeemPwmInvestmentPlanResultV5, RenewBorrowOrderFixedParamsV5, RenewBorrowOrderFixedV5, RenewFixedRateBorrowParamsV5, 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, SetDeltaNeutralModeParamsV5, SetFixedTermEarnAutoInvestParamsV5, SetLeverageParamsV5, SetLimitPriceActionParamsV5, SetRiskLimitParamsV5, SetRiskLimitResultV5, SetSpotMarginLeverageParamsV5, SettlementRecordV5, SettlePwmFundProfitParamsV5, SettlePwmFundProfitResultV5, SetTPSLModeParamsV5, SetTradingStopParamsV5, SignAgreementParamsV5, SmallBalanceListV5, SpotBorrowCheckResultV5, SpotMarginCurrencyDataV5, SpotMarginLiabilityInfoV5, SpotMarginStateV5, SpreadInstrumentInfoV5, SpreadMaxQtyResultV5, SpreadOpenOrderV5, SpreadOrderbookResponseV5, SpreadOrderHistoryV5, SpreadRecentTradeV5, SpreadTickerV5, SpreadTradeV5, StopStrategyParamsV5, StopStrategyResultV5, StrategyListResultV5, StrategyOrderListResultV5, SubMemberV5, SubmitAdvanceEarnPlaceOrderParamsV5, SubmitFixedTermEarnOrderParamsV5, SubmitSpreadOrderParamsV5, SubmitStakeRedeemParamsV5, SubscribePwmInvestmentPlanParamsV5, SubscribePwmInvestmentPlanResultV5, SupplyContractInfoFixedV5, SupplyOrderInfoFixedV5, SupplyOrderQuoteFixedV5, SwitchIsolatedMarginParamsV5, SwitchPositionModeParamsV5, SystemStatusItemV5, TickerLinearInverseV5, TickerOptionV5, TickerSpotV5, TotalMembersAssetsResultV5, TPSLModeV5, TradeInfoForAnalysisResultV5, TransactionLogV5, UnifiedAccountUpgradeResultV5, UniversalTransferParamsV5, UniversalTransferRecordV5, UnpaidLoanOrderV5, UpdateApiKeyParamsV5, UpdateApiKeyResultV5, UpdateP2PAdParamsV5, UserSettingConfigV5, VaspEntityV5, VipBorrowableCoinsV5, VipCollateralCoinsV5, VIPMarginDataV5, WalletBalanceV5, WithdrawableAmountV5, WithdrawalAddressV5, WithdrawalRecordV5, WithdrawParamsV5 } from './types';
|
|
1
|
+
import { AcceptNonLPQuoteParamsV5, AcceptNonLPQuoteResultV5, AccountBorrowCollateralLimitV5, AccountCoinBalanceV5, AccountInfoV5, AccountInstrumentInfoResponseV5, AccountMarginModeV5, AccountOrderV5, AccountTypeV5, AddOrReduceMarginParamsV5, AddOrReduceMarginResultV5, AdjustCollateralAmountParamsV5, AdjustCollateralAmountV5, ADLAlertResponseV5, AdvanceEarnAdvanceProductInfoV5, AdvanceEarnOrderListV5, AdvanceEarnPlaceOrderResultV5, AdvanceEarnPositionListV5, AdvanceEarnProductExtraInfoV5, AffiliateSubAffiliateListResultV5, AffiliateUserInfoV5, AffiliateUserListItemV5, AllCoinsBalanceV5, AllowedDepositCoinInfoV5, AlphaAssetDetailResultV5, AlphaAssetListResultV5, AlphaBizTokenDetailsV5, AlphaBizTokenPriceListResultV5, AlphaBizTokenV5, AlphaLPOrderListResultV5, AlphaLPPayTokenListResultV5, AlphaLPPayTokenPriceResultV5, AlphaLPPoolInfoV5, AlphaLPPoolListResultV5, AlphaLPPositionListResultV5, AlphaPayTokenV5, AlphaPredictionEngineStatusV5, AlphaPredictionEventDetailV5, AlphaPredictionOrderBookV5, AlphaPredictionOrderEstimateV5, AlphaPredictionOrderListResultV5, AlphaPredictionPayTokenV5, AlphaPredictionPortfolioSummaryV5, AlphaPredictionPositionHistoryResultV5, AlphaPredictionPositionListResultV5, AlphaPredictionPriceHistoryV5, AlphaPredictionSideMarketListResultV5, AlphaPredictionSportsGroupStageDetailV5, AlphaPredictionSportsMatchListResultV5, AlphaPredictionSportsTimelineStagesV5, AlphaPredictionTokenPriceV5, AlphaTradeOrderListResultV5, AlphaTradeQuoteResultV5, 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, CardAssetRecordsResultV5, CardMallItemListResultV5, CardPointBalanceV5, CardPointCashbackDetailV5, CardPointRecordsResultV5, CardPointTierInfoV5, CategoryCursorListV5, CategoryListV5, CategorySymbolListV5, CategoryV5, ClaimPwmWithdrawableFundsParamsV5, ClaimPwmWithdrawableFundsResultV5, ClosedOptionsPositionV5, ClosedPnLV5, CoinExchangeRecordV5, CoinGreeksV5, CoinInfoV5, CoinStateV5, CollateralAdjustmentHistoryV5, CollateralDataV5, CollateralInfoV5, CompletedLoanOrderV5, ConfirmNewRiskLimitParamsV5, ConvertCoinsParamsV5, ConvertCoinSpecV5, ConvertHistoryRecordV5, ConvertQuoteV5, ConvertStatusV5, CreateBorrowOrderFixedParamsV5, CreateBorrowOrderFixedV5, CreateP2PAdParamsV5, CreatePwmAssetManagerInvestmentPlanParamsV5, CreatePwmAssetManagerInvestmentPlanResultV5, CreatePwmCustomizeInvestmentPlanParamsV5, CreatePwmCustomizeInvestmentPlanResultV5, CreatePwmFundParamsV5, CreatePwmFundResultV5, CreatePwmFundSubAccountParamsV5, CreatePwmFundSubAccountResultV5, CreateRFQParamsV5, CreateRFQQuoteParamsV5, CreateRFQQuoteResultV5, CreateRFQResultV5, CreateStrategyOrderParamsV5, CreateStrategyOrderResultV5, CreateSubApiKeyParamsV5, CreateSubApiKeyResultV5, CreateSubMemberParamsV5, CreateSubMemberResultV5, CreateSupplyOrderFixedParamsV5, CreateSupplyOrderFixedV5, CryptoLoanPositionV5, CurrencyPositionTiersV5, CursorListV5, CursorRowsV5, DCPInfoV5, DeleteSubMemberParamsV5, DeliveryPriceV5, DeliveryRecordV5, DepositAddressChainV5, DepositRecordV5, EarnAprHistoryPointV5, EarnCouponListResultV5, EarnHourlyYieldHistoryV5, EarnOrderHistoryV5, EarnPositionV5, EarnProductV5, EarnTokenDailyYieldRecordV5, EarnTokenHistoryAprPointV5, EarnTokenHourlyYieldRecordV5, EarnTokenOrderV5, EarnTokenPositionV5, EarnTokenProductV5, EarnYieldHistoryV5, ExchangeBrokerAccountInfoV5, ExchangeBrokerEarningResultV5, ExchangeBrokerSubAccountDepositRecordV5, ExecuteAlphaLPRedeemParamsV5, ExecuteAlphaLPRedeemResultV5, ExecuteAlphaLPStakeParamsV5, ExecuteAlphaLPStakeResultV5, ExecuteAlphaPredictionBuyParamsV5, ExecuteAlphaPredictionOrderResultV5, ExecuteAlphaPredictionSellParamsV5, ExecuteAlphaTradeParamsV5, ExecuteAlphaTradeResultV5, ExecuteRFQQuoteParamsV5, ExecuteRFQQuoteResultV5, ExecutionV5, FeeGroupStructureResponseV5, FeeRateV5, FiatTradingPairListV5, FixedRateBorrowContractInfoV5, FixedRateBorrowOrderInfoV5, FixedRateBorrowParamsV5, FixedRateBorrowQuoteV5, FixedRateBorrowResultV5, FixedTermEarnOrderListV5, FixedTermEarnPlaceOrderResultV5, FixedTermEarnPositionListV5, FixedTermEarnProductListV5, FriendReferralRecordV5, FundingAccountTransactionRecordV5, FundingRateHistoryResponseV5, FuturesLeverageResultV5, GetAccountCoinBalanceParamsV5, GetAccountHistoricOrdersParamsV5, GetAccountInstrumentsInfoParamsV5, GetAccountOrdersParamsV5, GetADLAlertParamsV5, GetAdvanceEarnOrderListParamsV5, GetAdvanceEarnPositionListParamsV5, GetAdvanceEarnProductExtraInfoParamsV5, GetAdvanceEarnProductParamsV5, GetAffiliateSubAffiliateListParamsV5, GetAffiliateUserInfoParamsV5, GetAffiliateUserListParamsV5, GetAllBrokerRateLimitsParamsV5, GetAllCoinsBalanceParamsV5, GetAllowedDepositCoinInfoParamsV5, GetAlphaAssetDetailParamsV5, GetAlphaBizTokenDetailsParamsV5, GetAlphaBizTokenListParamsV5, GetAlphaBizTokenPriceListParamsV5, GetAlphaLPOrderListParamsV5, GetAlphaLPPayTokenListParamsV5, GetAlphaLPPayTokenPriceParamsV5, GetAlphaLPPoolInfoParamsV5, GetAlphaLPPoolListParamsV5, GetAlphaPayTokenListParamsV5, GetAlphaPredictionEventDetailParamsV5, GetAlphaPredictionOrderBookParamsV5, GetAlphaPredictionOrderEstimateParamsV5, GetAlphaPredictionOrderListParamsV5, GetAlphaPredictionPortfolioSummaryParamsV5, GetAlphaPredictionPositionHistoryParamsV5, GetAlphaPredictionPositionListParamsV5, GetAlphaPredictionPriceHistoryParamsV5, GetAlphaPredictionSideMarketListParamsV5, GetAlphaPredictionSportsGroupStageDetailParamsV5, GetAlphaPredictionSportsMatchListParamsV5, GetAlphaPredictionSportsTimelineStagesParamsV5, GetAlphaPredictionTokenPriceParamsV5, GetAlphaTradeOrderListParamsV5, GetAlphaTradeQuoteParamsV5, GetAssetInfoParamsV5, GetAssetOverviewParamsV5, GetAutoRepayModeParamsV5, GetAvailableAmountToRepayParamsV5, GetBorrowableCoinsParamsV5, GetBorrowContractInfoFixedParamsV5, GetBorrowHistoryFlexibleParamsV5, GetBorrowHistoryParamsV5, GetBorrowOrderInfoFixedParamsV5, GetBorrowOrderQuoteFixedParamsV5, GetBrokerIssuedVoucherParamsV5, GetBrokerSubAccountDepositsV5, GetClassicTransactionLogsParamsV5, GetClosedOptionsPositionsParamsV5, GetClosedPnLParamsV5, GetCoinDeltaAmountParamsV5, GetCoinExchangeRecordParamsV5, GetCoinStateParamsV5, GetCollateralAdjustmentHistoryParamsV5, GetCollateralCoinsParamsV5, GetCompletedLoanOrderHistoryParamsV5, GetConvertHistoryParamsV5, GetDeliveryPriceParamsV5, GetDeliveryRecordParamsV5, GetDepositRecordParamsV5, GetEarnAprHistoryParamsV5, GetEarnCouponListParamsV5, GetEarnHourlyYieldHistoryParamsV5, GetEarnOrderHistoryParamsV5, GetEarnPositionParamsV5, GetEarnTokenDailyYieldParamsV5, GetEarnTokenHistoryAprParamsV5, GetEarnTokenHourlyYieldParamsV5, GetEarnTokenOrderListParamsV5, GetEarnTokenPositionParamsV5, GetEarnTokenProductParamsV5, GetEarnYieldHistoryParamsV5, GetExchangeBrokerEarningsParamsV5, GetExecutionListParamsV5, GetFeeGroupStructureParamsV5, GetFeeRateParamsV5, GetFiatTradingPairListParamsV5, GetFixedRateBorrowContractInfoParamsV5, GetFixedRateBorrowOrderInfoParamsV5, GetFixedRateBorrowOrderQuoteParamsV5, GetFixedTermEarnOrderListParamsV5, GetFixedTermEarnPositionParamsV5, GetFixedTermEarnProductParamsV5, GetFriendReferralsParamsV5, GetFundingAccountTransactionHistoryParamsV5, GetFundingRateHistoryParamsV5, GetFuturesLeverageParamsV5, GetHistoricalVolatilityParamsV5, GetHoldToEarnAirdropYieldHistoryParamsV5, GetIndexPriceComponentsParamsV5, GetIndexPriceKlineParamsV5, GetInstrumentsInfoParamsV5, GetInsuranceParamsV5, GetInternalDepositRecordParamsV5, GetInternalTransferParamsV5, GetKlineParamsV5, GetLiquidityMiningProductParamsV5, GetLoanLTVAdjustmentHistoryParamsV5, GetLongShortRatioParamsV5, GetMarkPriceKlineParamsV5, GetMaxBorrowableAmountParamsV5, GetMaxCollateralAmountParamsV5, GetMaxLoanAmountParamsV5, GetMovePositionHistoryParamsV5, GetOngoingFlexibleLoansParamsV5, GetOpenInterestParamsV5, GetOptionDeliveryPriceParamsV5, GetOrderbookParamsV5, GetP2PAccountCoinsBalanceParamsV5, GetP2PCounterpartyUserInfoParamsV5, GetP2POnlineAdsParamsV5, GetP2POrderMessagesParamsV5, GetP2POrdersParamsV5, GetP2PPendingOrdersParamsV5, GetP2PPersonalAdsParamsV5, GetPayInfoParamsV5, GetPortfolioMarginInfoParamsV5, GetPositionTiersParamsV5, GetPremiumIndexPriceKlineParamsV5, GetPreUpgradeClosedPnlParamsV5, GetPreUpgradeOptionDeliveryRecordParamsV5, GetPreUpgradeOrderHistoryParamsV5, GetPreUpgradeTradeHistoryParamsV5, GetPreUpgradeTransactionLogParamsV5, GetPreUpgradeUSDCSessionParamsV5, GetPublicTradingHistoryParamsV5, GetPwmAllFundOrdersParamsV5, GetPwmAllFundsParamsV5, GetPwmAssetManagerInvestmentPlansParamsV5, GetPwmFundHistoricalNavParamsV5, GetPwmFundTransferRecordsParamsV5, GetPwmInvestmentPlanAssetTrendParamsV5, GetPwmInvestmentPlanDetailParamsV5, GetPwmInvestmentPlanOrdersParamsV5, GetPwmPendingInvestmentPlanDetailParamsV5, GetRenewOrderInfoFixedParamsV5, GetRepaymentHistoryFixedParamsV5, GetRepaymentHistoryFlexibleParamsV5, GetRepaymentHistoryParamsV5, GetRFQHistoryParamsV5, GetRFQListParamsV5, GetRFQPublicTradesParamsV5, GetRFQQuoteRealtimeParamsV5, GetRFQRealtimeParamsV5, GetRFQRealtimeResultV5, GetRFQTradeListParamsV5, GetRiskLimitParamsV5, GetRPIOrderbookParamsV5, GetRWANavChartParamsV5, GetRWAOrderListParamsV5, GetRWAProductListParamsV5, GetSettlementRecordParamsV5, GetSmallBalanceListParamsV5, GetSpotMarginCurrencyDataParamsV5, GetSpotMarginLiabilityInfoParamsV5, GetSpreadInstrumentsInfoParamsV5, GetSpreadMaxQtyParamsV5, GetSpreadOpenOrdersParamsV5, GetSpreadOrderHistoryParamsV5, GetSpreadTradeHistoryParamsV5, GetStrategyListParamsV5, GetStrategyOrderListParamsV5, GetSubAccountAllApiKeysParamsV5, GetSubAccountDepositRecordParamsV5, GetSupplyContractInfoFixedParamsV5, GetSupplyOrderInfoFixedParamsV5, GetSupplyOrderQuoteFixedParamsV5, GetSystemStatusParamsV5, GetTickersParamsV5, GetTotalMembersAssetsParamsV5, GetTradeInfoForAnalysisParamsV5, GetTransactionLogParamsV5, GetUniversalTransferRecordsParamsV5, GetUnpaidLoanOrdersParamsV5, GetVIPMarginDataParamsV5, GetWalletBalanceParamsV5, GetWithdrawalAddressListParamsV5, GetWithdrawalRecordsParamsV5, HistoricalVolatilityV5, HoldToEarnAirdropProductsResultV5, HoldToEarnAirdropYieldHistoryResultV5, IndexPriceComponentsResponseV5, InstitutionalLendingCoinDeltaAmountV5, InstitutionalLendingProductInfoV5, InstitutionalLoanLTVV5, InstrumentInfoResponseV5, InsuranceResponseV5, InternalDepositRecordV5, InternalTransferRecordV5, InvestMorePwmInvestmentPlanParamsV5, InvestMorePwmInvestmentPlanResultV5, IssueVoucherParamsV5, LiquidityMiningProductResultV5, LoanLTVAdjustmentHistoryV5, LongShortRatioV5, ManagePwmAssetManagerInvestmentPlanParamsV5, ManagePwmAssetManagerInvestmentPlanResultV5, ManagePwmFundOrderParamsV5, ManagePwmFundOrderResultV5, ManualBorrowParamsV5, ManualBorrowResultV5, ManualRepayParamsV5, ManualRepayResultV5, ManualRepayWithoutConversionParamsV5, ManualRepayWithoutConversionResultV5, MarkP2POrderAsPaidParamsV5, MaxBorrowableAmountV5, MaxLoanAmountV5, MMPModifyParamsV5, MMPStateV5, ModifyEarnPositionParamsV5, MovePositionHistoryV5, MovePositionParamsV5, MovePositionResultV5, OHLCKlineV5, OHLCVKlineV5, OngoingFlexibleLoanV5, OpenInterestResponseV5, OptionAssetInfoNestedResultV5, OptionDeliveryPriceV5, OrderbookResponseV5, OrderParamsV5, OrderPriceLimitV5, OrderResultV5, OrderSideV5, P2PAccountCoinsBalanceV5, P2PAdDetailV5, P2PCounterpartyUserInfoV5, P2PCreateAdResponseV5, P2POnlineAdsResponseV5, P2POrderDetailV5, P2POrderMessageV5, P2POrdersResponseV5, P2PPersonalAdsResponseV5, P2PUserInfoV5, P2PUserPaymentV5, PayInfoResultV5, PlaceEarnTokenOrderParamsV5, PlaceEarnTokenOrderResultV5, PlaceRWAOrderParamsV5, PlaceRWAOrderResultV5, PortfolioMarginInfoResultV5, PositionInfoParamsV5, PositionV5, PreCheckOrderResultV5, PreUpgradeOptionsDelivery, PreUpgradeTransaction, PreUpgradeUSDCSessionSettlement, PublicTradeV5, PwmAllFundOrdersResultV5, PwmAllFundsResultV5, PwmAssetManagerInvestmentPlansResultV5, PwmFundHistoricalNavResultV5, PwmFundTransferParamsV5, PwmFundTransferRecordV5, PwmFundTransferResultV5, PwmInvestmentPlanAssetTrendResultV5, PwmInvestmentPlanDetailV5, PwmInvestmentPlanListResultV5, PwmInvestmentPlanOrdersResultV5, PwmPendingInvestmentPlanDetailV5, PwmSubscribableProductInfoResultV5, QueryCardAssetRecordsParamsV5, QueryCardMallItemListParamsV5, QueryCardPointCashbackDetailParamsV5, QueryCardPointRecordsParamsV5, RedeemFixedTermEarnParamsV5, RedeemFixedTermEarnResultV5, RedeemPwmInvestmentPlanParamsV5, RedeemPwmInvestmentPlanResultV5, RenewBorrowOrderFixedParamsV5, RenewBorrowOrderFixedV5, RenewFixedRateBorrowParamsV5, RenewOrderInfoFixedV5, RepayCollateralFixedParamsV5, RepayCollateralFlexibleParamsV5, RepayFixedParamsV5, RepayFixedV5, RepayFlexibleParamsV5, RepayFlexibleV5, RepayInstitutionalLoanParamsV5, RepayInstitutionalLoanResultV5, RepayLiabilityParamsV5, RepayLiabilityResultV5, RepaymentHistoryFixedV5, RepaymentHistoryFlexibleV5, RepaymentHistoryV5, RequestConvertQuoteParamsV5, RFQConfigV5, RFQHistory, RFQPublicTradeV5, RFQQuoteItemV5, RFQTradeV5, RiskLimitV5, RPIOrderbookResponseV5, RWANavChartResultV5, RWAOrderListResultV5, RWAPositionListResultV5, RWAProductListResultV5, SendP2POrderMessageParamsV5, SetAutoAddMarginParamsV5, SetAutoRepayModeParamsV5, SetBrokerRateLimitParamsV5, SetCollateralCoinParamsV5, SetDeltaNeutralModeParamsV5, SetFixedTermEarnAutoInvestParamsV5, SetLeverageParamsV5, SetLimitPriceActionParamsV5, SetRiskLimitParamsV5, SetRiskLimitResultV5, SetSpotMarginLeverageParamsV5, SettlementRecordV5, SettlePwmFundProfitParamsV5, SettlePwmFundProfitResultV5, SetTPSLModeParamsV5, SetTradingStopParamsV5, SignAgreementParamsV5, SmallBalanceListV5, SpotBorrowCheckResultV5, SpotMarginCurrencyDataV5, SpotMarginLiabilityInfoV5, SpotMarginStateV5, SpreadInstrumentInfoV5, SpreadMaxQtyResultV5, SpreadOpenOrderV5, SpreadOrderbookResponseV5, SpreadOrderHistoryV5, SpreadRecentTradeV5, SpreadTickerV5, SpreadTradeV5, StopStrategyParamsV5, StopStrategyResultV5, StrategyListResultV5, StrategyOrderListResultV5, SubMemberV5, SubmitAdvanceEarnPlaceOrderParamsV5, SubmitDepositOriginatorInfoParamsV5, SubmitDepositOriginatorInfoResultV5, SubmitFixedTermEarnOrderParamsV5, SubmitSpreadOrderParamsV5, SubmitStakeRedeemParamsV5, SubscribePwmInvestmentPlanParamsV5, SubscribePwmInvestmentPlanResultV5, SupplyContractInfoFixedV5, SupplyOrderInfoFixedV5, SupplyOrderQuoteFixedV5, SwitchIsolatedMarginParamsV5, SwitchPositionModeParamsV5, SystemStatusItemV5, TickerLinearInverseV5, TickerOptionV5, TickerSpotV5, TotalMembersAssetsResultV5, TPSLModeV5, TradeInfoForAnalysisResultV5, TransactionLogV5, UnifiedAccountUpgradeResultV5, UniversalTransferParamsV5, UniversalTransferRecordV5, UnpaidLoanOrderV5, UpdateApiKeyParamsV5, UpdateApiKeyResultV5, UpdateP2PAdParamsV5, UserSettingConfigV5, VaspEntityV5, VipBorrowableCoinsV5, VipCollateralCoinsV5, VIPMarginDataV5, WalletBalanceV5, WithdrawableAmountV5, WithdrawalAddressV5, WithdrawalRecordV5, WithdrawParamsV5 } from './types';
|
|
2
2
|
import BaseRestClient from './util/BaseRestClient';
|
|
3
3
|
/**
|
|
4
4
|
* REST API client for V5 REST APIs
|
|
@@ -470,6 +470,13 @@ export declare class RestClientV5 extends BaseRestClient {
|
|
|
470
470
|
* Response list items include `openTime` (position open timestamp in ms, default `0`).
|
|
471
471
|
*/
|
|
472
472
|
getPositionInfo(params: PositionInfoParamsV5): Promise<APIResponseV3WithTime<CategoryCursorListV5<PositionV5[]>>>;
|
|
473
|
+
/**
|
|
474
|
+
* Get Futures Leverage
|
|
475
|
+
* Query isolated leverage settings without requiring an open position.
|
|
476
|
+
*
|
|
477
|
+
* Returns an error under Portfolio Margin mode.
|
|
478
|
+
*/
|
|
479
|
+
getFuturesLeverage(params: GetFuturesLeverageParamsV5): Promise<APIResponseV3WithTime<FuturesLeverageResultV5>>;
|
|
473
480
|
/**
|
|
474
481
|
* Set the leverage
|
|
475
482
|
*
|
|
@@ -1117,6 +1124,11 @@ export declare class RestClientV5 extends BaseRestClient {
|
|
|
1117
1124
|
getExchangeEntities(): Promise<APIResponseV3WithTime<{
|
|
1118
1125
|
vasp: VaspEntityV5[];
|
|
1119
1126
|
}>>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Submit Deposit Originator Info
|
|
1129
|
+
* Submit Travel Rule originator questionnaire when deposit `travel_rule_status` is pending (1).
|
|
1130
|
+
*/
|
|
1131
|
+
submitDepositOriginatorInfo(params: SubmitDepositOriginatorInfoParamsV5): Promise<APIResponseV3WithTime<SubmitDepositOriginatorInfoResultV5>>;
|
|
1120
1132
|
/**
|
|
1121
1133
|
* Withdraw from Funding, Unified, and/or Earn (and combos such as FUND,UTA,EARN per API).
|
|
1122
1134
|
*
|
|
@@ -1424,6 +1436,141 @@ export declare class RestClientV5 extends BaseRestClient {
|
|
|
1424
1436
|
* Single-asset view; `result.assetList` has 0 or 1 item.
|
|
1425
1437
|
*/
|
|
1426
1438
|
getAlphaAssetDetail(params: GetAlphaAssetDetailParamsV5): Promise<APIResponseV3WithTime<AlphaAssetDetailResultV5>>;
|
|
1439
|
+
/**
|
|
1440
|
+
*
|
|
1441
|
+
****** Alpha / Web3 prediction market APIs
|
|
1442
|
+
*
|
|
1443
|
+
*/
|
|
1444
|
+
/**
|
|
1445
|
+
* Get Engine Status
|
|
1446
|
+
* Query prediction market matching engine availability before placing buy/sell orders.
|
|
1447
|
+
*/
|
|
1448
|
+
getAlphaPredictionEngineStatus(): Promise<APIResponseV3WithTime<AlphaPredictionEngineStatusV5>>;
|
|
1449
|
+
/**
|
|
1450
|
+
* Get Payment Token List
|
|
1451
|
+
* Available payment tokens for prediction market trading (Phase 1: USDC).
|
|
1452
|
+
*/
|
|
1453
|
+
getAlphaPredictionPayTokenList(): Promise<APIResponseV3WithTime<AlphaPredictionPayTokenV5[]>>;
|
|
1454
|
+
/**
|
|
1455
|
+
* Get Event Detail
|
|
1456
|
+
* Event metadata, outcome markets, and current prices. Obtain tokenId before trading.
|
|
1457
|
+
*/
|
|
1458
|
+
getAlphaPredictionEventDetail(params: GetAlphaPredictionEventDetailParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionEventDetailV5>>;
|
|
1459
|
+
/**
|
|
1460
|
+
* Get Order Estimate
|
|
1461
|
+
* Preview buy/sell outcome before execution. Show estimate to user and confirm before Buy/Sell.
|
|
1462
|
+
*/
|
|
1463
|
+
getAlphaPredictionOrderEstimate(params: GetAlphaPredictionOrderEstimateParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionOrderEstimateV5>>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Execute Buy
|
|
1466
|
+
* Buy prediction outcome tokens with USDC. HTTP 200 is acknowledgment only — poll order list.
|
|
1467
|
+
*/
|
|
1468
|
+
executeAlphaPredictionBuy(params: ExecuteAlphaPredictionBuyParamsV5): Promise<APIResponseV3WithTime<ExecuteAlphaPredictionOrderResultV5>>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Execute Sell
|
|
1471
|
+
* Sell prediction outcome token shares for USDC. HTTP 200 is acknowledgment only — poll order list.
|
|
1472
|
+
*/
|
|
1473
|
+
executeAlphaPredictionSell(params: ExecuteAlphaPredictionSellParamsV5): Promise<APIResponseV3WithTime<ExecuteAlphaPredictionOrderResultV5>>;
|
|
1474
|
+
/**
|
|
1475
|
+
* Get Order List
|
|
1476
|
+
* Prediction market order history for the authenticated user.
|
|
1477
|
+
*/
|
|
1478
|
+
getAlphaPredictionOrderList(params: GetAlphaPredictionOrderListParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionOrderListResultV5>>;
|
|
1479
|
+
/**
|
|
1480
|
+
* Get Order Book
|
|
1481
|
+
* Full bid/ask depth snapshot for up to 20 outcome tokens.
|
|
1482
|
+
*/
|
|
1483
|
+
getAlphaPredictionOrderBook(params: GetAlphaPredictionOrderBookParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionOrderBookV5[]>>;
|
|
1484
|
+
/**
|
|
1485
|
+
* Get Token Price
|
|
1486
|
+
* Best bid/ask and last price for up to 20 outcome tokens.
|
|
1487
|
+
*/
|
|
1488
|
+
getAlphaPredictionTokenPrice(params: GetAlphaPredictionTokenPriceParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionTokenPriceV5[]>>;
|
|
1489
|
+
/**
|
|
1490
|
+
* Get Price History
|
|
1491
|
+
* OHLC candlestick history for an outcome token.
|
|
1492
|
+
*/
|
|
1493
|
+
getAlphaPredictionPriceHistory(params: GetAlphaPredictionPriceHistoryParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionPriceHistoryV5>>;
|
|
1494
|
+
/**
|
|
1495
|
+
* Get Position List
|
|
1496
|
+
* Active prediction market positions. Confirm before placing sell orders.
|
|
1497
|
+
*/
|
|
1498
|
+
getAlphaPredictionPositionList(params?: GetAlphaPredictionPositionListParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionPositionListResultV5>>;
|
|
1499
|
+
/**
|
|
1500
|
+
* Get Position History
|
|
1501
|
+
* Closed prediction market positions including settlement results.
|
|
1502
|
+
*/
|
|
1503
|
+
getAlphaPredictionPositionHistory(params?: GetAlphaPredictionPositionHistoryParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionPositionHistoryResultV5>>;
|
|
1504
|
+
/**
|
|
1505
|
+
* Get Portfolio Summary
|
|
1506
|
+
* Overall prediction market portfolio P&L and win rate.
|
|
1507
|
+
*/
|
|
1508
|
+
getAlphaPredictionPortfolioSummary(params?: GetAlphaPredictionPortfolioSummaryParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionPortfolioSummaryV5>>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Get Side Market List
|
|
1511
|
+
* Outcome markets for an event with prices, liquidity, and status.
|
|
1512
|
+
*/
|
|
1513
|
+
getAlphaPredictionSideMarketList(params: GetAlphaPredictionSideMarketListParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionSideMarketListResultV5>>;
|
|
1514
|
+
/**
|
|
1515
|
+
* Get Sports Match List
|
|
1516
|
+
* Sports matches available in prediction markets (Phase 1: FIFA 2026).
|
|
1517
|
+
*/
|
|
1518
|
+
getAlphaPredictionSportsMatchList(params: GetAlphaPredictionSportsMatchListParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionSportsMatchListResultV5>>;
|
|
1519
|
+
/**
|
|
1520
|
+
* Get Sports Timeline Stages
|
|
1521
|
+
* Tournament stage timeline with status and match counts.
|
|
1522
|
+
*/
|
|
1523
|
+
getAlphaPredictionSportsTimelineStages(params: GetAlphaPredictionSportsTimelineStagesParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionSportsTimelineStagesV5>>;
|
|
1524
|
+
/**
|
|
1525
|
+
* Get Sports Group Stage Detail
|
|
1526
|
+
* Group stage standings and match schedule for a sports prediction event.
|
|
1527
|
+
*/
|
|
1528
|
+
getAlphaPredictionSportsGroupStageDetail(params: GetAlphaPredictionSportsGroupStageDetailParamsV5): Promise<APIResponseV3WithTime<AlphaPredictionSportsGroupStageDetailV5>>;
|
|
1529
|
+
/**
|
|
1530
|
+
*
|
|
1531
|
+
****** Alpha / Web3 LP APIs
|
|
1532
|
+
*
|
|
1533
|
+
*/
|
|
1534
|
+
/**
|
|
1535
|
+
* Get LP Pool List
|
|
1536
|
+
* Available liquidity pools, optionally filtered by token symbol.
|
|
1537
|
+
*/
|
|
1538
|
+
getAlphaLPPoolList(params?: GetAlphaLPPoolListParamsV5): Promise<APIResponseV3WithTime<AlphaLPPoolListResultV5>>;
|
|
1539
|
+
/**
|
|
1540
|
+
* Get LP Pool Info
|
|
1541
|
+
* Detailed pool data including APY, reserves, and price range.
|
|
1542
|
+
*/
|
|
1543
|
+
getAlphaLPPoolInfo(params: GetAlphaLPPoolInfoParamsV5): Promise<APIResponseV3WithTime<AlphaLPPoolInfoV5>>;
|
|
1544
|
+
/**
|
|
1545
|
+
* Execute LP Stake
|
|
1546
|
+
* Stake tokens into a liquidity pool. HTTP 200 is ACK only — poll order list for status.
|
|
1547
|
+
*/
|
|
1548
|
+
executeAlphaLPStake(params: ExecuteAlphaLPStakeParamsV5): Promise<APIResponseV3WithTime<ExecuteAlphaLPStakeResultV5>>;
|
|
1549
|
+
/**
|
|
1550
|
+
* Execute LP Redeem
|
|
1551
|
+
* Redeem liquidity from a pool position. HTTP 200 is ACK only — poll order list for status.
|
|
1552
|
+
*/
|
|
1553
|
+
executeAlphaLPRedeem(params: ExecuteAlphaLPRedeemParamsV5): Promise<APIResponseV3WithTime<ExecuteAlphaLPRedeemResultV5>>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Get LP Order List
|
|
1556
|
+
* LP stake/redeem order history.
|
|
1557
|
+
*/
|
|
1558
|
+
getAlphaLPOrderList(params?: GetAlphaLPOrderListParamsV5): Promise<APIResponseV3WithTime<AlphaLPOrderListResultV5>>;
|
|
1559
|
+
/**
|
|
1560
|
+
* Get LP Pay Token List
|
|
1561
|
+
* Supported payment tokens and available balances for LP staking.
|
|
1562
|
+
*/
|
|
1563
|
+
getAlphaLPPayTokenList(params?: GetAlphaLPPayTokenListParamsV5): Promise<APIResponseV3WithTime<AlphaLPPayTokenListResultV5>>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Get LP Pay Token Price
|
|
1566
|
+
* Batch USD prices for up to 50 payment token codes.
|
|
1567
|
+
*/
|
|
1568
|
+
getAlphaLPPayTokenPrice(params: GetAlphaLPPayTokenPriceParamsV5): Promise<APIResponseV3WithTime<AlphaLPPayTokenPriceResultV5>>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Get LP Position List
|
|
1571
|
+
* User LP positions with valuation, rewards, and APY.
|
|
1572
|
+
*/
|
|
1573
|
+
getAlphaLPPositionList(): Promise<APIResponseV3WithTime<AlphaLPPositionListResultV5>>;
|
|
1427
1574
|
/**
|
|
1428
1575
|
*
|
|
1429
1576
|
****** Spot Margin Trade APIs (UTA)
|
|
@@ -2092,8 +2239,13 @@ export declare class RestClientV5 extends BaseRestClient {
|
|
|
2092
2239
|
* Get Product Info
|
|
2093
2240
|
*/
|
|
2094
2241
|
getInstitutionalLendingProductInfo(productId?: string): Promise<APIResponseV3WithTime<{
|
|
2095
|
-
marginProductInfo:
|
|
2242
|
+
marginProductInfo: InstitutionalLendingProductInfoV5[];
|
|
2096
2243
|
}>>;
|
|
2244
|
+
/**
|
|
2245
|
+
* Get Coin Delta Amount
|
|
2246
|
+
* Coin delta amount details for institutional loan hedge product (unified account only).
|
|
2247
|
+
*/
|
|
2248
|
+
getInstitutionalLendingCoinDeltaAmount(params?: GetCoinDeltaAmountParamsV5): Promise<APIResponseV3WithTime<InstitutionalLendingCoinDeltaAmountV5>>;
|
|
2097
2249
|
/**
|
|
2098
2250
|
* Get Margin Coin Info
|
|
2099
2251
|
* @deprecated
|
|
@@ -2280,6 +2432,34 @@ export declare class RestClientV5 extends BaseRestClient {
|
|
|
2280
2432
|
}): Promise<APIResponseV3WithTime<{
|
|
2281
2433
|
list: EarnProductV5[];
|
|
2282
2434
|
}>>;
|
|
2435
|
+
/**
|
|
2436
|
+
* Get Coupon List
|
|
2437
|
+
* Interest-rate coupons and Dual Assets reward cards for FlexibleSaving or DualAssets.
|
|
2438
|
+
*/
|
|
2439
|
+
getEarnCouponList(params: GetEarnCouponListParamsV5): Promise<APIResponseV3WithTime<EarnCouponListResultV5>>;
|
|
2440
|
+
/**
|
|
2441
|
+
* Get RWA Product List
|
|
2442
|
+
* Real World Assets earn products. Auth optional; `userQuota` populated when authenticated.
|
|
2443
|
+
*/
|
|
2444
|
+
getRWAProductList(params?: GetRWAProductListParamsV5): Promise<APIResponseV3WithTime<RWAProductListResultV5>>;
|
|
2445
|
+
/**
|
|
2446
|
+
* Place RWA Order
|
|
2447
|
+
* Stake or redeem RWA product. Async — use getRWAOrderList to track status.
|
|
2448
|
+
*/
|
|
2449
|
+
placeRWAOrder(params: PlaceRWAOrderParamsV5): Promise<APIResponseV3WithTime<PlaceRWAOrderResultV5>>;
|
|
2450
|
+
/**
|
|
2451
|
+
* Get RWA Position List
|
|
2452
|
+
*/
|
|
2453
|
+
getRWAPositionList(): Promise<APIResponseV3WithTime<RWAPositionListResultV5>>;
|
|
2454
|
+
/**
|
|
2455
|
+
* Get RWA Order List
|
|
2456
|
+
*/
|
|
2457
|
+
getRWAOrderList(params?: GetRWAOrderListParamsV5): Promise<APIResponseV3WithTime<RWAOrderListResultV5>>;
|
|
2458
|
+
/**
|
|
2459
|
+
* Get RWA NAV Chart
|
|
2460
|
+
* NAV history for an RWA product (public; max 180-day span).
|
|
2461
|
+
*/
|
|
2462
|
+
getRWANavChart(params: GetRWANavChartParamsV5): Promise<APIResponseV3WithTime<RWANavChartResultV5>>;
|
|
2283
2463
|
/**
|
|
2284
2464
|
* Get Hold to Earn airdrop products (ByFi).
|
|
2285
2465
|
*
|
package/lib/rest-client-v5.js
CHANGED
|
@@ -576,6 +576,15 @@ class RestClientV5 extends BaseRestClient_1.default {
|
|
|
576
576
|
getPositionInfo(params) {
|
|
577
577
|
return this.getPrivate('/v5/position/list', params);
|
|
578
578
|
}
|
|
579
|
+
/**
|
|
580
|
+
* Get Futures Leverage
|
|
581
|
+
* Query isolated leverage settings without requiring an open position.
|
|
582
|
+
*
|
|
583
|
+
* Returns an error under Portfolio Margin mode.
|
|
584
|
+
*/
|
|
585
|
+
getFuturesLeverage(params) {
|
|
586
|
+
return this.getPrivate('/v5/position/symbol-info', params);
|
|
587
|
+
}
|
|
579
588
|
/**
|
|
580
589
|
* Set the leverage
|
|
581
590
|
*
|
|
@@ -1302,6 +1311,13 @@ class RestClientV5 extends BaseRestClient_1.default {
|
|
|
1302
1311
|
getExchangeEntities() {
|
|
1303
1312
|
return this.getPrivate('/v5/asset/withdraw/vasp/list');
|
|
1304
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Submit Deposit Originator Info
|
|
1316
|
+
* Submit Travel Rule originator questionnaire when deposit `travel_rule_status` is pending (1).
|
|
1317
|
+
*/
|
|
1318
|
+
submitDepositOriginatorInfo(params) {
|
|
1319
|
+
return this.postPrivate('/v5/asset/travel-rule/deposit/submit', params);
|
|
1320
|
+
}
|
|
1305
1321
|
/**
|
|
1306
1322
|
* Withdraw from Funding, Unified, and/or Earn (and combos such as FUND,UTA,EARN per API).
|
|
1307
1323
|
*
|
|
@@ -1639,6 +1655,191 @@ class RestClientV5 extends BaseRestClient_1.default {
|
|
|
1639
1655
|
getAlphaAssetDetail(params) {
|
|
1640
1656
|
return this.postPrivate('/v5/alpha/trade/asset-detail', params);
|
|
1641
1657
|
}
|
|
1658
|
+
/**
|
|
1659
|
+
*
|
|
1660
|
+
****** Alpha / Web3 prediction market APIs
|
|
1661
|
+
*
|
|
1662
|
+
*/
|
|
1663
|
+
/**
|
|
1664
|
+
* Get Engine Status
|
|
1665
|
+
* Query prediction market matching engine availability before placing buy/sell orders.
|
|
1666
|
+
*/
|
|
1667
|
+
getAlphaPredictionEngineStatus() {
|
|
1668
|
+
return this.getPrivate('/v5/alpha/prediction/engine-status');
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* Get Payment Token List
|
|
1672
|
+
* Available payment tokens for prediction market trading (Phase 1: USDC).
|
|
1673
|
+
*/
|
|
1674
|
+
getAlphaPredictionPayTokenList() {
|
|
1675
|
+
return this.getPrivate('/v5/alpha/prediction/pay-token-list');
|
|
1676
|
+
}
|
|
1677
|
+
/**
|
|
1678
|
+
* Get Event Detail
|
|
1679
|
+
* Event metadata, outcome markets, and current prices. Obtain tokenId before trading.
|
|
1680
|
+
*/
|
|
1681
|
+
getAlphaPredictionEventDetail(params) {
|
|
1682
|
+
return this.postPrivate('/v5/alpha/prediction/event-detail', params);
|
|
1683
|
+
}
|
|
1684
|
+
/**
|
|
1685
|
+
* Get Order Estimate
|
|
1686
|
+
* Preview buy/sell outcome before execution. Show estimate to user and confirm before Buy/Sell.
|
|
1687
|
+
*/
|
|
1688
|
+
getAlphaPredictionOrderEstimate(params) {
|
|
1689
|
+
return this.postPrivate('/v5/alpha/prediction/order-estimate', params);
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* Execute Buy
|
|
1693
|
+
* Buy prediction outcome tokens with USDC. HTTP 200 is acknowledgment only — poll order list.
|
|
1694
|
+
*/
|
|
1695
|
+
executeAlphaPredictionBuy(params) {
|
|
1696
|
+
return this.postPrivate('/v5/alpha/prediction/buy', params);
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* Execute Sell
|
|
1700
|
+
* Sell prediction outcome token shares for USDC. HTTP 200 is acknowledgment only — poll order list.
|
|
1701
|
+
*/
|
|
1702
|
+
executeAlphaPredictionSell(params) {
|
|
1703
|
+
return this.postPrivate('/v5/alpha/prediction/sell', params);
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* Get Order List
|
|
1707
|
+
* Prediction market order history for the authenticated user.
|
|
1708
|
+
*/
|
|
1709
|
+
getAlphaPredictionOrderList(params) {
|
|
1710
|
+
return this.postPrivate('/v5/alpha/prediction/order-list', params);
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* Get Order Book
|
|
1714
|
+
* Full bid/ask depth snapshot for up to 20 outcome tokens.
|
|
1715
|
+
*/
|
|
1716
|
+
getAlphaPredictionOrderBook(params) {
|
|
1717
|
+
return this.postPrivate('/v5/alpha/prediction/order-book', params);
|
|
1718
|
+
}
|
|
1719
|
+
/**
|
|
1720
|
+
* Get Token Price
|
|
1721
|
+
* Best bid/ask and last price for up to 20 outcome tokens.
|
|
1722
|
+
*/
|
|
1723
|
+
getAlphaPredictionTokenPrice(params) {
|
|
1724
|
+
return this.postPrivate('/v5/alpha/prediction/token-price', params);
|
|
1725
|
+
}
|
|
1726
|
+
/**
|
|
1727
|
+
* Get Price History
|
|
1728
|
+
* OHLC candlestick history for an outcome token.
|
|
1729
|
+
*/
|
|
1730
|
+
getAlphaPredictionPriceHistory(params) {
|
|
1731
|
+
return this.postPrivate('/v5/alpha/prediction/price-history', params);
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* Get Position List
|
|
1735
|
+
* Active prediction market positions. Confirm before placing sell orders.
|
|
1736
|
+
*/
|
|
1737
|
+
getAlphaPredictionPositionList(params) {
|
|
1738
|
+
return this.postPrivate('/v5/alpha/prediction/position-list', params);
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Get Position History
|
|
1742
|
+
* Closed prediction market positions including settlement results.
|
|
1743
|
+
*/
|
|
1744
|
+
getAlphaPredictionPositionHistory(params) {
|
|
1745
|
+
return this.postPrivate('/v5/alpha/prediction/position-history', params);
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Get Portfolio Summary
|
|
1749
|
+
* Overall prediction market portfolio P&L and win rate.
|
|
1750
|
+
*/
|
|
1751
|
+
getAlphaPredictionPortfolioSummary(params) {
|
|
1752
|
+
return this.postPrivate('/v5/alpha/prediction/portfolio-summary', params);
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* Get Side Market List
|
|
1756
|
+
* Outcome markets for an event with prices, liquidity, and status.
|
|
1757
|
+
*/
|
|
1758
|
+
getAlphaPredictionSideMarketList(params) {
|
|
1759
|
+
return this.postPrivate('/v5/alpha/prediction/side-market-list', params);
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* Get Sports Match List
|
|
1763
|
+
* Sports matches available in prediction markets (Phase 1: FIFA 2026).
|
|
1764
|
+
*/
|
|
1765
|
+
getAlphaPredictionSportsMatchList(params) {
|
|
1766
|
+
return this.postPrivate('/v5/alpha/prediction/sports/match-list', params);
|
|
1767
|
+
}
|
|
1768
|
+
/**
|
|
1769
|
+
* Get Sports Timeline Stages
|
|
1770
|
+
* Tournament stage timeline with status and match counts.
|
|
1771
|
+
*/
|
|
1772
|
+
getAlphaPredictionSportsTimelineStages(params) {
|
|
1773
|
+
return this.getPrivate('/v5/alpha/prediction/sports/timeline-stages', params);
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* Get Sports Group Stage Detail
|
|
1777
|
+
* Group stage standings and match schedule for a sports prediction event.
|
|
1778
|
+
*/
|
|
1779
|
+
getAlphaPredictionSportsGroupStageDetail(params) {
|
|
1780
|
+
return this.postPrivate('/v5/alpha/prediction/sports/group-stage-detail', params);
|
|
1781
|
+
}
|
|
1782
|
+
/**
|
|
1783
|
+
*
|
|
1784
|
+
****** Alpha / Web3 LP APIs
|
|
1785
|
+
*
|
|
1786
|
+
*/
|
|
1787
|
+
/**
|
|
1788
|
+
* Get LP Pool List
|
|
1789
|
+
* Available liquidity pools, optionally filtered by token symbol.
|
|
1790
|
+
*/
|
|
1791
|
+
getAlphaLPPoolList(params) {
|
|
1792
|
+
return this.postPrivate('/v5/alpha/lp/pool-list', params);
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* Get LP Pool Info
|
|
1796
|
+
* Detailed pool data including APY, reserves, and price range.
|
|
1797
|
+
*/
|
|
1798
|
+
getAlphaLPPoolInfo(params) {
|
|
1799
|
+
return this.postPrivate('/v5/alpha/lp/pool-info', params);
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
* Execute LP Stake
|
|
1803
|
+
* Stake tokens into a liquidity pool. HTTP 200 is ACK only — poll order list for status.
|
|
1804
|
+
*/
|
|
1805
|
+
executeAlphaLPStake(params) {
|
|
1806
|
+
return this.postPrivate('/v5/alpha/lp/stake', params);
|
|
1807
|
+
}
|
|
1808
|
+
/**
|
|
1809
|
+
* Execute LP Redeem
|
|
1810
|
+
* Redeem liquidity from a pool position. HTTP 200 is ACK only — poll order list for status.
|
|
1811
|
+
*/
|
|
1812
|
+
executeAlphaLPRedeem(params) {
|
|
1813
|
+
return this.postPrivate('/v5/alpha/lp/redeem', params);
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
* Get LP Order List
|
|
1817
|
+
* LP stake/redeem order history.
|
|
1818
|
+
*/
|
|
1819
|
+
getAlphaLPOrderList(params) {
|
|
1820
|
+
return this.postPrivate('/v5/alpha/lp/order-list', params);
|
|
1821
|
+
}
|
|
1822
|
+
/**
|
|
1823
|
+
* Get LP Pay Token List
|
|
1824
|
+
* Supported payment tokens and available balances for LP staking.
|
|
1825
|
+
*/
|
|
1826
|
+
getAlphaLPPayTokenList(params) {
|
|
1827
|
+
return this.postPrivate('/v5/alpha/lp/pay-token-list', params);
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Get LP Pay Token Price
|
|
1831
|
+
* Batch USD prices for up to 50 payment token codes.
|
|
1832
|
+
*/
|
|
1833
|
+
getAlphaLPPayTokenPrice(params) {
|
|
1834
|
+
return this.postPrivate('/v5/alpha/lp/pay-token-price', params);
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Get LP Position List
|
|
1838
|
+
* User LP positions with valuation, rewards, and APY.
|
|
1839
|
+
*/
|
|
1840
|
+
getAlphaLPPositionList() {
|
|
1841
|
+
return this.postPrivate('/v5/alpha/lp/position-list', {});
|
|
1842
|
+
}
|
|
1642
1843
|
/**
|
|
1643
1844
|
*
|
|
1644
1845
|
****** Spot Margin Trade APIs (UTA)
|
|
@@ -2259,6 +2460,13 @@ class RestClientV5 extends BaseRestClient_1.default {
|
|
|
2259
2460
|
getInstitutionalLendingProductInfo(productId) {
|
|
2260
2461
|
return this.get('/v5/ins-loan/product-infos', { productId });
|
|
2261
2462
|
}
|
|
2463
|
+
/**
|
|
2464
|
+
* Get Coin Delta Amount
|
|
2465
|
+
* Coin delta amount details for institutional loan hedge product (unified account only).
|
|
2466
|
+
*/
|
|
2467
|
+
getInstitutionalLendingCoinDeltaAmount(params) {
|
|
2468
|
+
return this.getPrivate('/v5/ins-loan/coin-delta-amount', params);
|
|
2469
|
+
}
|
|
2262
2470
|
/**
|
|
2263
2471
|
* Get Margin Coin Info
|
|
2264
2472
|
* @deprecated
|
|
@@ -2441,6 +2649,46 @@ class RestClientV5 extends BaseRestClient_1.default {
|
|
|
2441
2649
|
getEarnProduct(params) {
|
|
2442
2650
|
return this.get('/v5/earn/product', params);
|
|
2443
2651
|
}
|
|
2652
|
+
/**
|
|
2653
|
+
* Get Coupon List
|
|
2654
|
+
* Interest-rate coupons and Dual Assets reward cards for FlexibleSaving or DualAssets.
|
|
2655
|
+
*/
|
|
2656
|
+
getEarnCouponList(params) {
|
|
2657
|
+
return this.getPrivate('/v5/earn/coupons', params);
|
|
2658
|
+
}
|
|
2659
|
+
/**
|
|
2660
|
+
* Get RWA Product List
|
|
2661
|
+
* Real World Assets earn products. Auth optional; `userQuota` populated when authenticated.
|
|
2662
|
+
*/
|
|
2663
|
+
getRWAProductList(params) {
|
|
2664
|
+
return this.get('/v5/earn/rwa/product', params);
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
* Place RWA Order
|
|
2668
|
+
* Stake or redeem RWA product. Async — use getRWAOrderList to track status.
|
|
2669
|
+
*/
|
|
2670
|
+
placeRWAOrder(params) {
|
|
2671
|
+
return this.postPrivate('/v5/earn/rwa/place-order', params);
|
|
2672
|
+
}
|
|
2673
|
+
/**
|
|
2674
|
+
* Get RWA Position List
|
|
2675
|
+
*/
|
|
2676
|
+
getRWAPositionList() {
|
|
2677
|
+
return this.getPrivate('/v5/earn/rwa/position');
|
|
2678
|
+
}
|
|
2679
|
+
/**
|
|
2680
|
+
* Get RWA Order List
|
|
2681
|
+
*/
|
|
2682
|
+
getRWAOrderList(params) {
|
|
2683
|
+
return this.getPrivate('/v5/earn/rwa/order', params);
|
|
2684
|
+
}
|
|
2685
|
+
/**
|
|
2686
|
+
* Get RWA NAV Chart
|
|
2687
|
+
* NAV history for an RWA product (public; max 180-day span).
|
|
2688
|
+
*/
|
|
2689
|
+
getRWANavChart(params) {
|
|
2690
|
+
return this.get('/v5/earn/rwa/nav-chart', params);
|
|
2691
|
+
}
|
|
2444
2692
|
/**
|
|
2445
2693
|
* Get Hold to Earn airdrop products (ByFi).
|
|
2446
2694
|
*
|