bitget-api 3.1.9 → 3.1.10

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.
@@ -1,3 +1,4 @@
1
+ import type { CollateralTypeV3 } from '../../request/v3/account.js';
1
2
  export interface AccountSymbolConfigV3 {
2
3
  category: string;
3
4
  symbol: string;
@@ -51,6 +52,10 @@ export interface AccountAssetV3 {
51
52
  available: string;
52
53
  debt: string;
53
54
  locked: string;
55
+ /** Position value in USD */
56
+ positionValue?: string;
57
+ /** Account leverage (non-negative) */
58
+ leverage?: string;
54
59
  }
55
60
  export interface AccountAssetsV3 {
56
61
  accountEquity: string;
@@ -84,6 +89,10 @@ export interface FinancialRecordV3 {
84
89
  fee: string;
85
90
  balance: string;
86
91
  ts: string;
92
+ /** crossed | isolated */
93
+ positionType?: string;
94
+ positionAmount?: string;
95
+ positionBalance?: string;
87
96
  }
88
97
  export interface PaymentCoinV3 {
89
98
  coin: string;
@@ -155,8 +164,14 @@ export interface WithdrawAddressBookV3 {
155
164
  addressList: WithdrawAddressBookEntryV3[];
156
165
  cursor?: string;
157
166
  }
167
+ export interface AllSymbolFeeRateV3 {
168
+ symbol: string;
169
+ makerFeeRate: string;
170
+ takerFeeRate: string;
171
+ }
158
172
  export interface TransferResponseV3 {
159
173
  transferId: string;
174
+ clientOid?: string;
160
175
  }
161
176
  export interface SubTransferRecordV3 {
162
177
  transferId: string;
@@ -259,3 +274,24 @@ export interface TaxRecordV3 {
259
274
  balance: string;
260
275
  ts: string;
261
276
  }
277
+ export interface CollateralTypeConfigV3 {
278
+ collateralType: CollateralTypeV3;
279
+ /** Returned when collateralType=custom */
280
+ collateralCoins?: string;
281
+ }
282
+ export interface CustomCollateralCoinV3 {
283
+ collateralCoin: string;
284
+ }
285
+ export interface PreSetLeverageV3 {
286
+ estMaxOpen?: string;
287
+ estMaxBorrowable?: string;
288
+ requiredMargin: string;
289
+ marginChange: string;
290
+ }
291
+ export interface MaxWithdrawalV3 {
292
+ coin: string;
293
+ otcMaxWithdrawal: string;
294
+ spotMaxWithdrawal: string;
295
+ utaMaxWithdrawal: string;
296
+ totalMaxWithdrawal: string;
297
+ }
@@ -26,6 +26,8 @@ export interface CurrentFundingRateV3 {
26
26
  nextUpdate: string;
27
27
  minFundingRate: string;
28
28
  maxFundingRate: string;
29
+ cashDividend?: string;
30
+ cashDividendNextUpdate?: string;
29
31
  }
30
32
  export interface DiscountRateTierV3 {
31
33
  tierStartValue: string;
@@ -110,6 +112,8 @@ export interface InstrumentV3 {
110
112
  limitOpenTime: string;
111
113
  maintainTime: string;
112
114
  areaSymbol?: string;
115
+ /** yes = Reality stock token, no = non-Reality stock token */
116
+ isReality?: 'yes' | 'no';
113
117
  makerFeeRate?: string;
114
118
  takerFeeRate?: string;
115
119
  openCostUpRatio?: string;
@@ -141,6 +145,8 @@ export interface MarketFeeGroupLabelV3 {
141
145
  export interface MarketFeeGroupTierV3 {
142
146
  level: string;
143
147
  makerFeeRate: string;
148
+ /** PRO1~PRO6 only. Taker fee rate in decimal form */
149
+ takerFeeRate?: string;
144
150
  }
145
151
  export interface MarketFeeGroupV3 {
146
152
  category: string;
@@ -156,6 +162,17 @@ export interface MarketScoreWeightV3 {
156
162
  minMakerVolume: string;
157
163
  weight: string;
158
164
  }
165
+ export interface LiquidationV3 {
166
+ symbol: string;
167
+ side: 'buy' | 'sell';
168
+ price: string;
169
+ amount: string;
170
+ ts: string;
171
+ }
172
+ export interface LiquidationsV3 {
173
+ list: LiquidationV3[];
174
+ cursor?: string;
175
+ }
159
176
  export interface OrderBookV3 {
160
177
  a: string[][];
161
178
  b: string[][];
@@ -203,3 +220,76 @@ export interface IndexPriceComponentsV3 {
203
220
  symbol: string;
204
221
  componentList: IndexComponentV3[];
205
222
  }
223
+ export interface RpiSymbolV3 {
224
+ category: 'spot' | 'usdt-futures' | 'coin-futures' | 'usdc-futures';
225
+ symbol: string;
226
+ }
227
+ /** RPI order book depth: [price, nonRpiQty, rpiQty] */
228
+ export interface RpiOrderBookV3 {
229
+ a: [string, string, string][];
230
+ b: [string, string, string][];
231
+ ts: string;
232
+ }
233
+ export interface CashDividendRecordV3 {
234
+ symbol: string;
235
+ exDividendDate: string;
236
+ cashDividendPerShare: string;
237
+ cashDividendTimestamp: string;
238
+ }
239
+ export interface SpotWhaleFlowV3 {
240
+ volume: string;
241
+ date: string;
242
+ }
243
+ export interface SpotNetFlowV3 {
244
+ netFlow: string;
245
+ ts: string;
246
+ }
247
+ export interface SpotFundFlowV3 {
248
+ whaleBuyVolume: string;
249
+ dolphinBuyVolume: string;
250
+ fishBuyVolume: string;
251
+ whaleSellVolume: string;
252
+ dolphinSellVolume: string;
253
+ fishSellVolume: string;
254
+ whaleBuyRatio: string;
255
+ dolphinBuyRatio: string;
256
+ fishBuyRatio: string;
257
+ whaleSellRatio: string;
258
+ dolphinSellRatio: string;
259
+ fishSellRatio: string;
260
+ }
261
+ export interface MarginLongShortV3 {
262
+ longShortRatio: string;
263
+ ts: string;
264
+ }
265
+ export interface MarginLoanGrowthV3 {
266
+ growthRate: string;
267
+ ts: string;
268
+ }
269
+ export interface MarginIsolatedBorrowV3 {
270
+ borrowRate: string;
271
+ ts: string;
272
+ }
273
+ export interface FuturesActiveBuySellV3 {
274
+ buyVolume: string;
275
+ sellVolume: string;
276
+ ts: string;
277
+ }
278
+ export interface FuturesLongShortV3 {
279
+ longRatio: string;
280
+ shortRatio: string;
281
+ longShortRatio: string;
282
+ ts: string;
283
+ }
284
+ export interface FuturesPositionLongShortV3 {
285
+ longPositionRatio: string;
286
+ shortPositionRatio: string;
287
+ longShortPositionRatio: string;
288
+ ts: string;
289
+ }
290
+ export interface FuturesAccountLongShortV3 {
291
+ longAccountRatio: string;
292
+ shortAccountRatio: string;
293
+ longShortAccountRatio: string;
294
+ ts: string;
295
+ }
@@ -57,6 +57,7 @@ export interface OrderInfoV3 {
57
57
  orderStatus: string;
58
58
  posSide: string;
59
59
  holdMode: string;
60
+ delegateType?: string;
60
61
  reduceOnly: string;
61
62
  feeDetail: FeeDetailV3[];
62
63
  cancelReason: string;
@@ -180,6 +181,17 @@ export interface CurrentPositionV3 {
180
181
  createdTime: string;
181
182
  updatedTime: string;
182
183
  }
184
+ export interface LoanDataDebtCoinV3 {
185
+ coin: string;
186
+ debt: string;
187
+ interestFreeAmount: string;
188
+ interestRateNextHour: string;
189
+ }
190
+ export interface LoanDataV3 {
191
+ currentLoans: string;
192
+ interestPaymentTime: string;
193
+ debtCoinList: LoanDataDebtCoinV3[];
194
+ }
183
195
  export interface ModifyOrderResponseV3 {
184
196
  orderId: string;
185
197
  clientOid: string;
@@ -79,3 +79,12 @@ export interface WSPositionSnapshotUMCBL extends WsBaseEvent<'snapshot'> {
79
79
  };
80
80
  data: WsPositionSnapshotDataUMCBL[];
81
81
  }
82
+ /** Classic V2 depth channel push data. checksum removed May 2026 - use seq instead */
83
+ export interface WsDepthBookDataV2 {
84
+ asks: [string, string][];
85
+ bids: [string, string][];
86
+ ts: string;
87
+ seq: string;
88
+ /** Futures books channel only - previous push serial number */
89
+ pseq?: string;
90
+ }
@@ -26,6 +26,7 @@ export declare const API_ERROR_CODE: {
26
26
  readonly FUTURES_ORDER_TPSL_NOT_FOUND: "43020";
27
27
  readonly PLAN_ORDER_NOT_FOUND: "43025";
28
28
  readonly EXCEEDS_MAX_AMOUNT_TRANSFERRED: "43117";
29
+ readonly EXCEEDS_MAX_AMOUNT_TRANSFERRED_V2: "43152";
29
30
  readonly QTY_LESS_THAN_MINIMUM_SPOT: "45110";
30
31
  readonly PASSPHRASE_CANNOT_BE_EMPTY: "400172";
31
32
  readonly ORDER_TYPE_MUST_BE_UNILATERAL_POSITION: "40774";
@@ -26,6 +26,7 @@ export const API_ERROR_CODE = {
26
26
  FUTURES_ORDER_TPSL_NOT_FOUND: '43020',
27
27
  PLAN_ORDER_NOT_FOUND: '43025',
28
28
  EXCEEDS_MAX_AMOUNT_TRANSFERRED: '43117',
29
+ EXCEEDS_MAX_AMOUNT_TRANSFERRED_V2: '43152',
29
30
  QTY_LESS_THAN_MINIMUM_SPOT: '45110',
30
31
  PASSPHRASE_CANNOT_BE_EMPTY: '400172',
31
32
  ORDER_TYPE_MUST_BE_UNILATERAL_POSITION: '40774',
@@ -1 +1 @@
1
- {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/constants/enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,OAAO;IAChB,kBAAkB,EAAE,OAAO;IAC3B,uBAAuB,EAAE,OAAO;IAChC,sBAAsB,EAAE,OAAO;IAC/B,uBAAuB,EAAE,OAAO;IAChC,oBAAoB,EAAE,OAAO;IAC7B,qBAAqB,EAAE,OAAO;IAC9B,uBAAuB,EAAE,OAAO;IAChC,gCAAgC,EAAE,OAAO;IACzC,kBAAkB,EAAE,OAAO;IAC3B,wBAAwB,EAAE,OAAO;IACjC,oBAAoB,EAAE,OAAO;IAC7B,kBAAkB,EAAE,OAAO;IAC3B,2BAA2B,EAAE,OAAO;IACpC,sBAAsB,EAAE,OAAO;IAC/B,oBAAoB,EAAE,OAAO;IAC7B,yBAAyB,EAAE,OAAO;IAClC,8BAA8B,EAAE,OAAO;IACvC,qCAAqC,EAAE,OAAO;IAC9C,qBAAqB,EAAE,OAAO;IAC9B,4DAA4D;IAC5D,mBAAmB,EAAE,OAAO;IAC5B,8BAA8B,EAAE,OAAO;IACvC,eAAe,EAAE,OAAO;IACxB,4BAA4B,EAAE,OAAO;IACrC,oBAAoB,EAAE,OAAO;IAC7B,8BAA8B,EAAE,OAAO;IACvC,0BAA0B,EAAE,OAAO;IACnC,0BAA0B,EAAE,QAAQ;IACpC,sCAAsC,EAAE,OAAO;CACvC,CAAC"}
1
+ {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/constants/enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,OAAO;IAChB,kBAAkB,EAAE,OAAO;IAC3B,uBAAuB,EAAE,OAAO;IAChC,sBAAsB,EAAE,OAAO;IAC/B,uBAAuB,EAAE,OAAO;IAChC,oBAAoB,EAAE,OAAO;IAC7B,qBAAqB,EAAE,OAAO;IAC9B,uBAAuB,EAAE,OAAO;IAChC,gCAAgC,EAAE,OAAO;IACzC,kBAAkB,EAAE,OAAO;IAC3B,wBAAwB,EAAE,OAAO;IACjC,oBAAoB,EAAE,OAAO;IAC7B,kBAAkB,EAAE,OAAO;IAC3B,2BAA2B,EAAE,OAAO;IACpC,sBAAsB,EAAE,OAAO;IAC/B,oBAAoB,EAAE,OAAO;IAC7B,yBAAyB,EAAE,OAAO;IAClC,8BAA8B,EAAE,OAAO;IACvC,qCAAqC,EAAE,OAAO;IAC9C,qBAAqB,EAAE,OAAO;IAC9B,4DAA4D;IAC5D,mBAAmB,EAAE,OAAO;IAC5B,8BAA8B,EAAE,OAAO;IACvC,eAAe,EAAE,OAAO;IACxB,4BAA4B,EAAE,OAAO;IACrC,oBAAoB,EAAE,OAAO;IAC7B,8BAA8B,EAAE,OAAO;IACvC,iCAAiC,EAAE,OAAO;IAC1C,0BAA0B,EAAE,OAAO;IACnC,0BAA0B,EAAE,QAAQ;IACpC,sCAAsC,EAAE,OAAO;CACvC,CAAC"}
@@ -1,21 +1,21 @@
1
- import { AdjustAccountModeRequestV3, CancelWithdrawalRequestV3, CreateSubAccountApiKeyRequestV3, CreateSubAccountRequestV3, DeleteSubAccountApiKeyRequestV3, FreezeSubAccountRequestV3, GetConvertRecordsRequestV3, GetDepositAddressRequestV3, GetDepositRecordsRequestV3, GetFeeRateRequestV3, GetFinancialRecordsRequestV3, GetFundingAssetsRequestV3, GetMaxTransferableRequestV3, GetOpenInterestLimitRequestV3, GetSubAccountApiKeysRequestV3, GetSubAccountListRequestV3, GetSubDepositAddressRequestV3, GetSubDepositRecordsRequestV3, GetSubTransferRecordsRequestV3, GetSubUnifiedAssetsRequestV3, GetTaxRecordsRequestV3, GetTransferableCoinsRequestV3, GetWithdrawAddressBookRequestV3, GetWithdrawRecordsRequestV3, RepayRequestV3, SetDepositAccountRequestV3, SetLeverageRequestV3, SubAccountTransferRequestV3, SwitchDeductRequestV3, TransferRequestV3, UpdateSubAccountApiKeyRequestV3, WithdrawRequestV3 } from './types/request/v3/account.js';
1
+ import { AdjustAccountModeRequestV3, CancelWithdrawalRequestV3, CreateSubAccountApiKeyRequestV3, CreateSubAccountRequestV3, DeleteSubAccountApiKeyRequestV3, FreezeSubAccountRequestV3, GetAllFeeRatesRequestV3, GetConvertRecordsRequestV3, GetDepositAddressRequestV3, GetDepositRecordsRequestV3, GetFeeRateRequestV3, GetFinancialRecordsRequestV3, GetFundingAssetsRequestV3, GetMaxTransferableRequestV3, GetMaxWithdrawalRequestV3, GetOpenInterestLimitRequestV3, GetSubAccountApiKeysRequestV3, GetSubAccountListRequestV3, GetSubDepositAddressRequestV3, GetSubDepositRecordsRequestV3, GetSubTransferRecordsRequestV3, GetSubUnifiedAssetsRequestV3, GetTaxRecordsRequestV3, GetTransferableCoinsRequestV3, GetWithdrawAddressBookRequestV3, GetWithdrawRecordsRequestV3, PreSetLeverageRequestV3, RepayRequestV3, SetCollateralTypeRequestV3, SetDepositAccountRequestV3, SetLeverageRequestV3, SetMarginRequestV3, SubAccountTransferRequestV3, SwitchDeductRequestV3, TransferRequestV3, UpdateSubAccountApiKeyRequestV3, WithdrawRequestV3 } from './types/request/v3/account.js';
2
2
  import { BrokerSubWithdrawalRequestV3, CreateBrokerSubAccountRequestV3, CreateBrokerSubApiKeyRequestV3, DeleteBrokerSubApiKeyRequestV3, GetBrokerAllSubDepositWithdrawalRequestV3, GetBrokerCommissionRequestV3, GetBrokerSubAccountListRequestV3, GetBrokerSubApiKeyRequestV3, GetBrokerSubDepositAddressRequestV3, ModifyBrokerSubAccountRequestV3, ModifyBrokerSubApiKeyRequestV3 } from './types/request/v3/broker.js';
3
3
  import { CopyFuturesTransferRequestV3, GetCopyFuturesMaxTransferableRequestV3, GetCopyFuturesTransferRecordRequestV3 } from './types/request/v3/copytrading.js';
4
4
  import { EarnEliteSubscribeRequestV3, GetEarnEliteRecordsRequestV3, GetEarnEliteRedeemInfoRequestV3, GetEarnEliteSubscribeInfoRequestV3, GetEarnEliteSubscribeResultRequestV3, RedeemEarnEliteRequestV3 } from './types/request/v3/earn.js';
5
5
  import { BindUidRequestV3, GetEnsureCoinsRequestV3, GetLoanBorrowHistoryRequestV3, GetLoanBorrowOngoingRequestV3, GetLoanCoinsRequestV3, GetLoanInterestRequestV3, GetLoanOrderRequestV3, GetLoanPledgeRateHistoryRequestV3, GetLoanReducesRequestV3, GetLoanRepayHistoryRequestV3, GetLTVConvertRequestV3, GetProductInfosRequestV3, GetRepaidHistoryRequestV3, GetSymbolsRequestV3, GetTransferedRequestV3, LoanBorrowRequestV3, LoanRepayRequestV3, LoanRevisePledgeRequestV3 } from './types/request/v3/loan.js';
6
6
  import { CreateP2pAdRequestV3, GetP2pAdInfoRequestV3, GetP2pAdLimitRequestV3, GetP2pAdListRequestV3, GetP2pAllOrdersRequestV3, GetP2pBalanceRequestV3, GetP2pExchangeRateRequestV3, GetP2pMyAdsRequestV3, GetP2pOrderInfoRequestV3, GetP2pPendingOrdersRequestV3, OperateP2pAdRequestV3, P2pFeeSimulateRequestV3, P2pOrderActionRequestV3, UpdateP2pAdRequestV3 } from './types/request/v3/p2p.js';
7
- import { GetCandlesRequestV3, GetContractsOiRequestV3, GetCurrentFundingRateRequestV3, GetHistoryCandlesRequestV3, GetHistoryFundingRateRequestV3, GetIndexComponentsRequestV3, GetInstrumentsRequestV3, GetMarginLoansRequestV3, GetMarketFeeGroupRequestV3, GetMarketScoreWeightsRequestV3, GetOpenInterestRequestV3, GetOrderBookRequestV3, GetPositionTierRequestV3, GetPublicFillsRequestV3, GetRiskReserveAllRequestV3, GetRiskReserveRequestV3, GetTickersRequestV3 } from './types/request/v3/public.js';
7
+ import { GetCandlesRequestV3, GetCashDividendRecordsRequestV3, GetContractsOiRequestV3, GetCurrentFundingRateRequestV3, GetFuturesTradingDataRequestV3, GetHistoryCandlesRequestV3, GetHistoryFundingRateRequestV3, GetIndexComponentsRequestV3, GetInstrumentsRequestV3, GetLiquidationsRequestV3, GetMarginIsolatedBorrowRequestV3, GetMarginLoanGrowthRequestV3, GetMarginLoansRequestV3, GetMarginLongShortRequestV3, GetMarketFeeGroupRequestV3, GetMarketScoreWeightsRequestV3, GetOpenInterestRequestV3, GetOrderBookRequestV3, GetPositionTierRequestV3, GetPublicFillsRequestV3, GetRiskReserveAllRequestV3, GetRiskReserveRequestV3, GetRpiOrderBookRequestV3, GetSpotFundFlowRequestV3, GetSpotNetFlowRequestV3, GetSpotWhaleFlowRequestV3, GetTickersRequestV3 } from './types/request/v3/public.js';
8
8
  import { CancelStrategyOrderRequestV3, GetHistoryStrategyOrdersRequestV3, GetUnfilledStrategyOrdersRequestV3, ModifyStrategyOrderRequestV3, PlaceStrategyOrderRequestV3 } from './types/request/v3/strategy.js';
9
- import { BatchModifyOrderRequestV3, CancelAllOrdersRequestV3, CancelBatchOrdersRequestV3, CancelOrderRequestV3, CloseAllPositionsRequestV3, CountdownCancelAllRequestV3, GetCurrentPositionRequestV3, GetFillsRequestV3, GetHistoryOrdersRequestV3, GetMaxOpenAvailableRequestV3, GetOrderInfoRequestV3, GetPositionHistoryRequestV3, GetUnfilledOrdersRequestV3, ModifyOrderRequestV3, PlaceBatchOrdersRequestV3, PlaceOrderRequestV3 } from './types/request/v3/trade.js';
10
- import { AccountAssetsV3, AccountDeltaInfoV3, AccountInfoV3, AccountSettingsV3, ConvertRecordV3, CreateSubAccountApiKeyResponseV3, CreateSubAccountResponseV3, DepositAddressV3, DepositRecordV3, FinancialRecordV3, FundingAssetV3, MaxTransferableV3, OpenInterestLimitV3, PaymentCoinV3, RepayableCoinV3, RepayResponseV3, SubAccountApiKeyV3, SubAccountV3, SubTransferRecordV3, SubUnifiedAssetV3, TaxRecordV3, TransferResponseV3, UpdateSubAccountApiKeyResponseV3, WithdrawAddressBookV3, WithdrawRecordV3, WithdrawResponseV3 } from './types/response/v3/account.js';
9
+ import { BatchModifyOrderRequestV3, CancelAllOrdersRequestV3, CancelBatchOrdersRequestV3, CancelOrderRequestV3, CancelRealityOrderRequestV3, CloseAllPositionsRequestV3, CountdownCancelAllRequestV3, GetCurrentPositionRequestV3, GetFillsRequestV3, GetHistoryOrdersRequestV3, GetMaxOpenAvailableRequestV3, GetOrderInfoRequestV3, GetPositionHistoryRequestV3, GetUnfilledOrdersRequestV3, ModifyOrderRequestV3, PlaceBatchOrdersRequestV3, PlaceOrderRequestV3, PlaceRealityOrderRequestV3 } from './types/request/v3/trade.js';
10
+ import { AccountAssetsV3, AccountDeltaInfoV3, AccountInfoV3, AccountSettingsV3, AllSymbolFeeRateV3, CollateralTypeConfigV3, ConvertRecordV3, CreateSubAccountApiKeyResponseV3, CreateSubAccountResponseV3, CustomCollateralCoinV3, DepositAddressV3, DepositRecordV3, FinancialRecordV3, FundingAssetV3, MaxTransferableV3, MaxWithdrawalV3, OpenInterestLimitV3, PaymentCoinV3, PreSetLeverageV3, RepayableCoinV3, RepayResponseV3, SubAccountApiKeyV3, SubAccountV3, SubTransferRecordV3, SubUnifiedAssetV3, TaxRecordV3, TransferResponseV3, UpdateSubAccountApiKeyResponseV3, WithdrawAddressBookV3, WithdrawRecordV3, WithdrawResponseV3 } from './types/response/v3/account.js';
11
11
  import { BrokerCommissionRecordV3, BrokerSubDepositAddressV3, BrokerSubWithdrawalResponseV3, CreateBrokerSubAccountResponseV3, CreateBrokerSubApiKeyResponseV3, GetBrokerAllSubDepositWithdrawalResponseV3, GetBrokerSubAccountListResponseV3, GetBrokerSubApiKeyResponseV3, ModifyBrokerSubAccountResponseV3, ModifyBrokerSubApiKeyResponseV3 } from './types/response/v3/broker.js';
12
12
  import { CopyFuturesMaxTransferableV3, CopyFuturesPositionSummaryV3, CopyFuturesTradingPairV3, CopyFuturesTransferRecordListV3, CopyFuturesTransferResponseV3 } from './types/response/v3/copytrading.js';
13
13
  import { EarnEliteAssetsV3, EarnEliteProductV3, EarnEliteRecordsV3, EarnEliteRedeemInfoV3, EarnEliteSubscribeInfoV3, EarnEliteSubscribeResultV3, EarnEliteSubscribeStatusV3, RedeemEarnEliteResultV3 } from './types/response/v3/earn.js';
14
14
  import { BindUidResponseV3, CoinInfoV3, GetLoanCoinsResponseV3, GetLoanDebtsResponseV3, GetLoanInterestResponseV3, LoanBorrowHistoryItemV3, LoanBorrowOngoingItemV3, LoanBorrowResponseV3, LoanOrderV3, LoanPledgeRateHistoryItemV3, LoanProductInfoV3, LoanReduceItemV3, LoanRepayHistoryItemV3, LoanRepayResponseV3, LoanRevisePledgeResponseV3, LoanSymbolsV3, LoanTransfersV3, LTVConvertResponseV3, RepaidHistoryItemV3 } from './types/response/v3/loan.js';
15
15
  import { P2pAdInfoV3, P2pAdLimitV3, P2pBalanceV3, P2pCreateAdResponseV3, P2pCurrenciesV3, P2pCursorListV3, P2pExchangeRateV3, P2pFeeSimulateV3, P2pMyAdListItemV3, P2pOrderInfoV3, P2pOrderListItemV3, P2pPayMethodV3, P2pPublicAdListItemV3, P2pUserInfoV3 } from './types/response/v3/p2p.js';
16
- import { CandlestickV3, ContractOiV3, CurrentFundingRateV3, DiscountRateV3, HistoryFundingRateV3, IndexPriceComponentsV3, InstrumentV3, MarginLoanV3, MarketFeeGroupV3, MarketScoreWeightV3, OpenInterestV3, OrderBookV3, PositionTierV3, ProofOfReservesV3, PublicFillV3, RiskReserveAllV3, RiskReserveHourV3, RiskReserveV3, TickerV3 } from './types/response/v3/public.js';
16
+ import { CandlestickV3, CashDividendRecordV3, ContractOiV3, CurrentFundingRateV3, DiscountRateV3, FuturesAccountLongShortV3, FuturesActiveBuySellV3, FuturesLongShortV3, FuturesPositionLongShortV3, HistoryFundingRateV3, IndexPriceComponentsV3, InstrumentV3, LiquidationsV3, MarginIsolatedBorrowV3, MarginLoanGrowthV3, MarginLoanV3, MarginLongShortV3, MarketFeeGroupV3, MarketScoreWeightV3, OpenInterestV3, OrderBookV3, PositionTierV3, ProofOfReservesV3, PublicFillV3, RiskReserveAllV3, RiskReserveHourV3, RiskReserveV3, RpiOrderBookV3, RpiSymbolV3, SpotFundFlowV3, SpotNetFlowV3, SpotWhaleFlowV3, TickerV3 } from './types/response/v3/public.js';
17
17
  import { ModifyStrategyOrderResponseV3, PlaceStrategyOrderResponseV3, StrategyOrderV3 } from './types/response/v3/strategy.js';
18
- import { BatchModifyOrderResponseV3, CancelAllOrdersResponseV3, CancelBatchOrdersResponseV3, CancelOrderResponseV3, CloseAllPositionsResponseV3, CurrentPositionV3, FillV3, GetMaxOpenAvailableResponseV3, HistoryOrderV3, ModifyOrderResponseV3, OrderInfoV3, PlaceBatchOrdersResponseV3, PlaceOrderResponseV3, PositionAdlRankV3, PositionHistoryV3, UnfilledOrderV3 } from './types/response/v3/trade.js';
18
+ import { BatchModifyOrderResponseV3, CancelAllOrdersResponseV3, CancelBatchOrdersResponseV3, CancelOrderResponseV3, CloseAllPositionsResponseV3, CurrentPositionV3, FillV3, GetMaxOpenAvailableResponseV3, HistoryOrderV3, LoanDataV3, ModifyOrderResponseV3, OrderInfoV3, PlaceBatchOrdersResponseV3, PlaceOrderResponseV3, PositionAdlRankV3, PositionHistoryV3, UnfilledOrderV3 } from './types/response/v3/trade.js';
19
19
  import { APIResponse } from './types/shared.js';
20
20
  import BaseRestClient from './util/BaseRestClient.js';
21
21
  /**
@@ -58,6 +58,62 @@ export declare class RestClientV3 extends BaseRestClient {
58
58
  * Get Market Maker Fee Group - Query fee rate tiers and grouping
59
59
  */
60
60
  getMarketFeeGroup(params: GetMarketFeeGroupRequestV3): Promise<APIResponse<MarketFeeGroupV3[]>>;
61
+ /**
62
+ * Get Liquidations History - Query historical liquidation order data (last 3 days)
63
+ */
64
+ getLiquidations(params: GetLiquidationsRequestV3): Promise<APIResponse<LiquidationsV3>>;
65
+ /**
66
+ * Get RPI Symbols - Trading pairs supporting Retail Price Improvement
67
+ */
68
+ getRpiSymbols(): Promise<APIResponse<RpiSymbolV3[]>>;
69
+ /**
70
+ * Get RPI OrderBook - Depth with RPI and non-RPI quantities per price level
71
+ */
72
+ getRpiOrderBook(params: GetRpiOrderBookRequestV3): Promise<APIResponse<RpiOrderBookV3>>;
73
+ /**
74
+ * Get Cash Dividend Records - RWA stock futures cash dividend records
75
+ */
76
+ getCashDividendRecords(params: GetCashDividendRecordsRequestV3): Promise<APIResponse<CashDividendRecordV3[]>>;
77
+ /**
78
+ * Get Spot Whale Net Flow Data
79
+ */
80
+ getSpotWhaleFlow(params: GetSpotWhaleFlowRequestV3): Promise<APIResponse<SpotWhaleFlowV3[]>>;
81
+ /**
82
+ * Get Spot Fund Flow Data
83
+ */
84
+ getSpotFundFlow(params: GetSpotFundFlowRequestV3): Promise<APIResponse<SpotFundFlowV3>>;
85
+ /**
86
+ * Get Spot 24H Net Capital Inflow Data
87
+ */
88
+ getSpotNetFlow(params: GetSpotNetFlowRequestV3): Promise<APIResponse<SpotNetFlowV3[]>>;
89
+ /**
90
+ * Get Margin Long Short Ratio Data
91
+ */
92
+ getMarginLongShort(params: GetMarginLongShortRequestV3): Promise<APIResponse<MarginLongShortV3[]>>;
93
+ /**
94
+ * Get Margin Loan Growth Rate Data
95
+ */
96
+ getMarginLoanGrowth(params: GetMarginLoanGrowthRequestV3): Promise<APIResponse<MarginLoanGrowthV3[]>>;
97
+ /**
98
+ * Get Isolated Margin Borrowing Ratio Data
99
+ */
100
+ getMarginIsolatedBorrow(params: GetMarginIsolatedBorrowRequestV3): Promise<APIResponse<MarginIsolatedBorrowV3[]>>;
101
+ /**
102
+ * Get Futures Active Buy Sell Volume Data
103
+ */
104
+ getFuturesActiveBuySell(params: GetFuturesTradingDataRequestV3): Promise<APIResponse<FuturesActiveBuySellV3[]>>;
105
+ /**
106
+ * Get Futures Long Short Ratio Data
107
+ */
108
+ getFuturesLongShort(params: GetFuturesTradingDataRequestV3): Promise<APIResponse<FuturesLongShortV3[]>>;
109
+ /**
110
+ * Get Futures Active Long Short Position Data
111
+ */
112
+ getFuturesPositionLongShort(params: GetFuturesTradingDataRequestV3): Promise<APIResponse<FuturesPositionLongShortV3[]>>;
113
+ /**
114
+ * Get Futures Active Long Short Account Data
115
+ */
116
+ getFuturesAccountLongShort(params: GetFuturesTradingDataRequestV3): Promise<APIResponse<FuturesAccountLongShortV3[]>>;
61
117
  /**
62
118
  * Get Market Maker Score Weight - Query score weights per symbol
63
119
  */
@@ -205,6 +261,30 @@ export declare class RestClientV3 extends BaseRestClient {
205
261
  setHoldMode(params: {
206
262
  holdMode: 'one_way_mode' | 'hedge_mode';
207
263
  }): Promise<APIResponse<string>>;
264
+ /**
265
+ * Get Collateral Type - Query unified account collateral configuration
266
+ */
267
+ getCollateralType(): Promise<APIResponse<CollateralTypeConfigV3>>;
268
+ /**
269
+ * Set Collateral Type - Configure unified account collateral type
270
+ */
271
+ setCollateralType(params: SetCollateralTypeRequestV3): Promise<APIResponse<string>>;
272
+ /**
273
+ * Get Custom Collateral Coins - Platform-supported custom collateral coins
274
+ */
275
+ getCustomCollateralCoins(): Promise<APIResponse<CustomCollateralCoinV3[]>>;
276
+ /**
277
+ * Pre Set Leverage - Preview leverage adjustment impact without applying
278
+ */
279
+ preSetLeverage(params: PreSetLeverageRequestV3): Promise<APIResponse<PreSetLeverageV3>>;
280
+ /**
281
+ * Set Margin - Adjust isolated margin position margin amount
282
+ */
283
+ setMargin(params: SetMarginRequestV3): Promise<APIResponse<string>>;
284
+ /**
285
+ * Get Max Withdrawal - Max withdrawable amount for a coin in unified account
286
+ */
287
+ getMaxWithdrawal(params: GetMaxWithdrawalRequestV3): Promise<APIResponse<MaxWithdrawalV3>>;
208
288
  /**
209
289
  * Get Financial Records
210
290
  */
@@ -261,6 +341,10 @@ export declare class RestClientV3 extends BaseRestClient {
261
341
  makerFeeRate: string;
262
342
  takerFeeRate: string;
263
343
  }>>;
344
+ /**
345
+ * Get All Symbol Fee Rates - Query fee rates for all trading pairs under a product type
346
+ */
347
+ getAllFeeRates(params: GetAllFeeRatesRequestV3): Promise<APIResponse<AllSymbolFeeRateV3[]>>;
264
348
  /**
265
349
  * Get Max Transferable
266
350
  *
@@ -429,6 +513,18 @@ export declare class RestClientV3 extends BaseRestClient {
429
513
  * Modify Order
430
514
  */
431
515
  modifyOrder(params: ModifyOrderRequestV3): Promise<APIResponse<ModifyOrderResponseV3>>;
516
+ /**
517
+ * Place Reality Order - Limit or market order for Reality stock trading pairs
518
+ */
519
+ placeRealityOrder(params: PlaceRealityOrderRequestV3): Promise<APIResponse<PlaceOrderResponseV3>>;
520
+ /**
521
+ * Cancel Reality Order - Cancel an unfilled or partially filled Reality stock order
522
+ */
523
+ cancelRealityOrder(params: CancelRealityOrderRequestV3): Promise<APIResponse<CancelOrderResponseV3>>;
524
+ /**
525
+ * Get Loan Data - Query current loan data for the unified trading account
526
+ */
527
+ getLoanData(): Promise<APIResponse<LoanDataV3>>;
432
528
  /**
433
529
  * Cancel Order
434
530
  */
@@ -84,6 +84,90 @@ export class RestClientV3 extends BaseRestClient {
84
84
  getMarketFeeGroup(params) {
85
85
  return this.get('/api/v3/market/fee-group', params);
86
86
  }
87
+ /**
88
+ * Get Liquidations History - Query historical liquidation order data (last 3 days)
89
+ */
90
+ getLiquidations(params) {
91
+ return this.get('/api/v3/market/liquidations', params);
92
+ }
93
+ /**
94
+ * Get RPI Symbols - Trading pairs supporting Retail Price Improvement
95
+ */
96
+ getRpiSymbols() {
97
+ return this.get('/api/v3/market/rpi-symbols');
98
+ }
99
+ /**
100
+ * Get RPI OrderBook - Depth with RPI and non-RPI quantities per price level
101
+ */
102
+ getRpiOrderBook(params) {
103
+ return this.get('/api/v3/market/rpi-orderbook', params);
104
+ }
105
+ /**
106
+ * Get Cash Dividend Records - RWA stock futures cash dividend records
107
+ */
108
+ getCashDividendRecords(params) {
109
+ return this.get('/api/v3/market/cash-dividend-records', params);
110
+ }
111
+ /**
112
+ * Get Spot Whale Net Flow Data
113
+ */
114
+ getSpotWhaleFlow(params) {
115
+ return this.get('/api/v3/market/spot-whale-flow', params);
116
+ }
117
+ /**
118
+ * Get Spot Fund Flow Data
119
+ */
120
+ getSpotFundFlow(params) {
121
+ return this.get('/api/v3/market/spot-fund-flow', params);
122
+ }
123
+ /**
124
+ * Get Spot 24H Net Capital Inflow Data
125
+ */
126
+ getSpotNetFlow(params) {
127
+ return this.get('/api/v3/market/spot-net-flow', params);
128
+ }
129
+ /**
130
+ * Get Margin Long Short Ratio Data
131
+ */
132
+ getMarginLongShort(params) {
133
+ return this.get('/api/v3/market/margin-long-short', params);
134
+ }
135
+ /**
136
+ * Get Margin Loan Growth Rate Data
137
+ */
138
+ getMarginLoanGrowth(params) {
139
+ return this.get('/api/v3/market/margin-loan-growth', params);
140
+ }
141
+ /**
142
+ * Get Isolated Margin Borrowing Ratio Data
143
+ */
144
+ getMarginIsolatedBorrow(params) {
145
+ return this.get('/api/v3/market/margin-isolated-borrow', params);
146
+ }
147
+ /**
148
+ * Get Futures Active Buy Sell Volume Data
149
+ */
150
+ getFuturesActiveBuySell(params) {
151
+ return this.get('/api/v3/market/futures-active-buy-sell', params);
152
+ }
153
+ /**
154
+ * Get Futures Long Short Ratio Data
155
+ */
156
+ getFuturesLongShort(params) {
157
+ return this.get('/api/v3/market/futures-long-short', params);
158
+ }
159
+ /**
160
+ * Get Futures Active Long Short Position Data
161
+ */
162
+ getFuturesPositionLongShort(params) {
163
+ return this.get('/api/v3/market/futures-position-long-short', params);
164
+ }
165
+ /**
166
+ * Get Futures Active Long Short Account Data
167
+ */
168
+ getFuturesAccountLongShort(params) {
169
+ return this.get('/api/v3/market/futures-account-long-short', params);
170
+ }
87
171
  /**
88
172
  * Get Market Maker Score Weight - Query score weights per symbol
89
173
  */
@@ -291,6 +375,42 @@ export class RestClientV3 extends BaseRestClient {
291
375
  setHoldMode(params) {
292
376
  return this.postPrivate('/api/v3/account/set-hold-mode', params);
293
377
  }
378
+ /**
379
+ * Get Collateral Type - Query unified account collateral configuration
380
+ */
381
+ getCollateralType() {
382
+ return this.getPrivate('/api/v3/account/collateral-type');
383
+ }
384
+ /**
385
+ * Set Collateral Type - Configure unified account collateral type
386
+ */
387
+ setCollateralType(params) {
388
+ return this.postPrivate('/api/v3/account/set-collateral-type', params);
389
+ }
390
+ /**
391
+ * Get Custom Collateral Coins - Platform-supported custom collateral coins
392
+ */
393
+ getCustomCollateralCoins() {
394
+ return this.get('/api/v3/account/custom-collateral-coins');
395
+ }
396
+ /**
397
+ * Pre Set Leverage - Preview leverage adjustment impact without applying
398
+ */
399
+ preSetLeverage(params) {
400
+ return this.getPrivate('/api/v3/account/pre-set-leverage', params);
401
+ }
402
+ /**
403
+ * Set Margin - Adjust isolated margin position margin amount
404
+ */
405
+ setMargin(params) {
406
+ return this.postPrivate('/api/v3/account/set-margin', params);
407
+ }
408
+ /**
409
+ * Get Max Withdrawal - Max withdrawable amount for a coin in unified account
410
+ */
411
+ getMaxWithdrawal(params) {
412
+ return this.getPrivate('/api/v3/account/max-withdrawal', params);
413
+ }
294
414
  /**
295
415
  * Get Financial Records
296
416
  */
@@ -348,6 +468,12 @@ export class RestClientV3 extends BaseRestClient {
348
468
  getFeeRate(params) {
349
469
  return this.getPrivate('/api/v3/account/fee-rate', params);
350
470
  }
471
+ /**
472
+ * Get All Symbol Fee Rates - Query fee rates for all trading pairs under a product type
473
+ */
474
+ getAllFeeRates(params) {
475
+ return this.getPrivate('/api/v3/account/all-fee-rate', params);
476
+ }
351
477
  /**
352
478
  * Get Max Transferable
353
479
  *
@@ -554,6 +680,24 @@ export class RestClientV3 extends BaseRestClient {
554
680
  modifyOrder(params) {
555
681
  return this.postPrivate('/api/v3/trade/modify-order', params);
556
682
  }
683
+ /**
684
+ * Place Reality Order - Limit or market order for Reality stock trading pairs
685
+ */
686
+ placeRealityOrder(params) {
687
+ return this.postPrivate('/api/v3/trade/place-reality-order', params);
688
+ }
689
+ /**
690
+ * Cancel Reality Order - Cancel an unfilled or partially filled Reality stock order
691
+ */
692
+ cancelRealityOrder(params) {
693
+ return this.postPrivate('/api/v3/trade/cancel-reality-order', params);
694
+ }
695
+ /**
696
+ * Get Loan Data - Query current loan data for the unified trading account
697
+ */
698
+ getLoanData() {
699
+ return this.getPrivate('/api/v3/trade/loan-data');
700
+ }
557
701
  /**
558
702
  * Cancel Order
559
703
  */