binance 3.0.0 → 3.0.2
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 +7 -0
- package/lib/main-client.d.ts +45 -1
- package/lib/main-client.js +82 -0
- package/lib/main-client.js.map +1 -1
- package/lib/types/futures.d.ts +1 -0
- package/lib/types/spot.d.ts +298 -0
- package/llms.txt +23332 -0
- package/package.json +3 -2
package/lib/types/spot.d.ts
CHANGED
|
@@ -5055,3 +5055,301 @@ export interface VASPInfo {
|
|
|
5055
5055
|
vaspName: string;
|
|
5056
5056
|
vaspCode: string;
|
|
5057
5057
|
}
|
|
5058
|
+
export interface InstitutionalLoanLiability {
|
|
5059
|
+
assetName: string;
|
|
5060
|
+
principal: string;
|
|
5061
|
+
interest: string;
|
|
5062
|
+
}
|
|
5063
|
+
export interface InstitutionalLoanWallet {
|
|
5064
|
+
accountType: 'SPOT' | 'PORTFOLIO_MARGIN' | 'CROSS_MARGIN';
|
|
5065
|
+
netEquity: string;
|
|
5066
|
+
maintainMargin: string;
|
|
5067
|
+
}
|
|
5068
|
+
export interface InstitutionalLoanCollateralAccount {
|
|
5069
|
+
email: string;
|
|
5070
|
+
type: 'CREDIT' | 'COLLATERAL';
|
|
5071
|
+
wallets: InstitutionalLoanWallet[];
|
|
5072
|
+
}
|
|
5073
|
+
export interface InstitutionalLoanRiskUnitDetails {
|
|
5074
|
+
groupId: number;
|
|
5075
|
+
parentEmail: string;
|
|
5076
|
+
creditEmail: string;
|
|
5077
|
+
updateTime: number;
|
|
5078
|
+
ltv: string;
|
|
5079
|
+
totalNetEquity: string;
|
|
5080
|
+
totalMaintenanceMargin: string;
|
|
5081
|
+
totalLiability: string;
|
|
5082
|
+
liabilities: InstitutionalLoanLiability[];
|
|
5083
|
+
collateralAccounts: InstitutionalLoanCollateralAccount[];
|
|
5084
|
+
}
|
|
5085
|
+
export interface GetInstitutionalLoanRiskUnitDetailsParams {
|
|
5086
|
+
groupId?: number;
|
|
5087
|
+
}
|
|
5088
|
+
export interface CloseInstitutionalLoanRiskUnitResponse {
|
|
5089
|
+
groupId: number;
|
|
5090
|
+
status: 'CLOSED';
|
|
5091
|
+
}
|
|
5092
|
+
export interface AddInstitutionalLoanCollateralAccountParams {
|
|
5093
|
+
groupId: number;
|
|
5094
|
+
subEmail: string;
|
|
5095
|
+
enableSpot: boolean;
|
|
5096
|
+
enableMargin: boolean;
|
|
5097
|
+
}
|
|
5098
|
+
export interface InstitutionalLoanRiskUnitMember {
|
|
5099
|
+
email: string;
|
|
5100
|
+
type: 'CREDIT' | 'COLLATERAL';
|
|
5101
|
+
enableMargin: boolean;
|
|
5102
|
+
enableSpot: boolean;
|
|
5103
|
+
}
|
|
5104
|
+
export interface ActiveInstitutionalLoanRiskUnit {
|
|
5105
|
+
groupId: number;
|
|
5106
|
+
members: InstitutionalLoanRiskUnitMember[];
|
|
5107
|
+
createTime: number;
|
|
5108
|
+
}
|
|
5109
|
+
export interface InstitutionalLoanBorrowParams {
|
|
5110
|
+
groupId: number;
|
|
5111
|
+
assetName: string;
|
|
5112
|
+
amount: number;
|
|
5113
|
+
}
|
|
5114
|
+
export interface InstitutionalLoanBorrowResponse {
|
|
5115
|
+
transactionId: string;
|
|
5116
|
+
amount: number;
|
|
5117
|
+
status: string;
|
|
5118
|
+
}
|
|
5119
|
+
export interface InstitutionalLoanRepayParams {
|
|
5120
|
+
groupId: number;
|
|
5121
|
+
assetName: string;
|
|
5122
|
+
amount: number;
|
|
5123
|
+
}
|
|
5124
|
+
export interface InstitutionalLoanRepayResponse {
|
|
5125
|
+
transactionId: string;
|
|
5126
|
+
amount: number;
|
|
5127
|
+
}
|
|
5128
|
+
export interface GetInstitutionalLoanInterestHistoryParams {
|
|
5129
|
+
groupId?: number;
|
|
5130
|
+
asset?: string;
|
|
5131
|
+
startTime?: number;
|
|
5132
|
+
endTime?: number;
|
|
5133
|
+
current?: number;
|
|
5134
|
+
size?: number;
|
|
5135
|
+
}
|
|
5136
|
+
export interface InstitutionalLoanInterestHistoryRecord {
|
|
5137
|
+
groupId: number;
|
|
5138
|
+
assetName: string;
|
|
5139
|
+
principal: string;
|
|
5140
|
+
interestRate: string;
|
|
5141
|
+
interest: string;
|
|
5142
|
+
interestTimestamp: number;
|
|
5143
|
+
}
|
|
5144
|
+
export interface InstitutionalLoanInterestHistoryResponse {
|
|
5145
|
+
total: number;
|
|
5146
|
+
rows: InstitutionalLoanInterestHistoryRecord[];
|
|
5147
|
+
}
|
|
5148
|
+
export interface OnchainYieldsLockedProductListParams {
|
|
5149
|
+
asset?: string;
|
|
5150
|
+
current?: number;
|
|
5151
|
+
size?: number;
|
|
5152
|
+
}
|
|
5153
|
+
export interface OnchainYieldsLockedProductDetail {
|
|
5154
|
+
asset: string;
|
|
5155
|
+
rewardAsset: string;
|
|
5156
|
+
duration: number;
|
|
5157
|
+
renewable: boolean;
|
|
5158
|
+
isSoldOut: boolean;
|
|
5159
|
+
apr: string;
|
|
5160
|
+
status: 'PREHEATING' | 'PURCHASING';
|
|
5161
|
+
subscriptionStartTime: string;
|
|
5162
|
+
canRedeemToFlex: boolean;
|
|
5163
|
+
}
|
|
5164
|
+
export interface OnchainYieldsLockedProductQuota {
|
|
5165
|
+
totalPersonalQuota: string;
|
|
5166
|
+
minimum: string;
|
|
5167
|
+
}
|
|
5168
|
+
export interface OnchainYieldsLockedProduct {
|
|
5169
|
+
projectId: string;
|
|
5170
|
+
detail: OnchainYieldsLockedProductDetail;
|
|
5171
|
+
quota: OnchainYieldsLockedProductQuota;
|
|
5172
|
+
}
|
|
5173
|
+
export interface OnchainYieldsLockedProductListResponse {
|
|
5174
|
+
rows: OnchainYieldsLockedProduct[];
|
|
5175
|
+
total: number;
|
|
5176
|
+
}
|
|
5177
|
+
export interface OnchainYieldsLockedPersonalLeftQuotaParams {
|
|
5178
|
+
projectId: string;
|
|
5179
|
+
}
|
|
5180
|
+
export interface OnchainYieldsLockedPersonalLeftQuotaResponse {
|
|
5181
|
+
leftPersonalQuota: string;
|
|
5182
|
+
}
|
|
5183
|
+
export interface OnchainYieldsLockedPositionParams {
|
|
5184
|
+
asset?: string;
|
|
5185
|
+
positionId?: number;
|
|
5186
|
+
projectId?: string;
|
|
5187
|
+
current?: number;
|
|
5188
|
+
size?: number;
|
|
5189
|
+
}
|
|
5190
|
+
export interface OnchainYieldsLockedPosition {
|
|
5191
|
+
positionId: string;
|
|
5192
|
+
projectId: string;
|
|
5193
|
+
asset: string;
|
|
5194
|
+
amount: string;
|
|
5195
|
+
purchaseTime: string;
|
|
5196
|
+
duration: string;
|
|
5197
|
+
accrualDays: string;
|
|
5198
|
+
rewardAsset: string;
|
|
5199
|
+
APY: string;
|
|
5200
|
+
rewardAmt: string;
|
|
5201
|
+
nextPay?: string;
|
|
5202
|
+
nextPayDate?: string;
|
|
5203
|
+
payPeriod?: string;
|
|
5204
|
+
rewardsPayDate?: string;
|
|
5205
|
+
rewardsEndDate: string;
|
|
5206
|
+
deliverDate?: string;
|
|
5207
|
+
nextSubscriptionDate?: string;
|
|
5208
|
+
redeemingAmt?: string;
|
|
5209
|
+
redeemTo?: 'FLEXIBLE' | 'SPOT';
|
|
5210
|
+
canRedeemEarly: boolean;
|
|
5211
|
+
autoSubscribe: boolean;
|
|
5212
|
+
type: 'AUTO' | 'NORMAL';
|
|
5213
|
+
status: 'HOLDING' | 'REDEEMING' | 'RENEWING' | 'NEW_TRANSFERRING';
|
|
5214
|
+
}
|
|
5215
|
+
export interface OnchainYieldsLockedPositionResponse {
|
|
5216
|
+
rows: OnchainYieldsLockedPosition[];
|
|
5217
|
+
total: number;
|
|
5218
|
+
}
|
|
5219
|
+
export interface OnchainYieldsAccountResponse {
|
|
5220
|
+
totalAmountInBTC: string;
|
|
5221
|
+
totalAmountInUSDT: string;
|
|
5222
|
+
totalFlexibleAmountInBTC: string;
|
|
5223
|
+
totalFlexibleAmountInUSDT: string;
|
|
5224
|
+
totalLockedInBTC: string;
|
|
5225
|
+
totalLockedInUSDT: string;
|
|
5226
|
+
}
|
|
5227
|
+
export interface OnchainYieldsLockedSubscriptionPreviewParams {
|
|
5228
|
+
projectId: string;
|
|
5229
|
+
amount: number;
|
|
5230
|
+
autoSubscribe?: boolean;
|
|
5231
|
+
}
|
|
5232
|
+
export interface OnchainYieldsLockedSubscriptionPreviewResponse {
|
|
5233
|
+
rewardAsset: string;
|
|
5234
|
+
totalRewardAmt: string;
|
|
5235
|
+
nextPay?: string;
|
|
5236
|
+
nextPayDate?: string;
|
|
5237
|
+
rewardsPayDate?: string;
|
|
5238
|
+
valueDate: string;
|
|
5239
|
+
rewardsEndDate: string;
|
|
5240
|
+
deliverDate?: string;
|
|
5241
|
+
nextSubscriptionDate?: string;
|
|
5242
|
+
}
|
|
5243
|
+
export interface OnchainYieldsLockedSubscribeParams {
|
|
5244
|
+
projectId: string;
|
|
5245
|
+
amount: number;
|
|
5246
|
+
autoSubscribe?: boolean;
|
|
5247
|
+
sourceAccount?: 'SPOT' | 'FUND' | 'ALL';
|
|
5248
|
+
redeemTo?: 'SPOT' | 'FLEXIBLE';
|
|
5249
|
+
channelId?: string;
|
|
5250
|
+
clientId?: string;
|
|
5251
|
+
}
|
|
5252
|
+
export interface OnchainYieldsLockedSubscribeResponse {
|
|
5253
|
+
purchaseId: number;
|
|
5254
|
+
positionId: string;
|
|
5255
|
+
amount: string;
|
|
5256
|
+
success: boolean;
|
|
5257
|
+
}
|
|
5258
|
+
export interface OnchainYieldsLockedSetAutoSubscribeParams {
|
|
5259
|
+
positionId: string;
|
|
5260
|
+
autoSubscribe: boolean;
|
|
5261
|
+
}
|
|
5262
|
+
export interface OnchainYieldsLockedSetAutoSubscribeResponse {
|
|
5263
|
+
success: boolean;
|
|
5264
|
+
}
|
|
5265
|
+
export interface OnchainYieldsLockedSetRedeemOptionParams {
|
|
5266
|
+
positionId: string;
|
|
5267
|
+
redeemTo: 'SPOT' | 'FLEXIBLE';
|
|
5268
|
+
}
|
|
5269
|
+
export interface OnchainYieldsLockedSetRedeemOptionResponse {
|
|
5270
|
+
success: boolean;
|
|
5271
|
+
}
|
|
5272
|
+
export interface OnchainYieldsLockedRedeemParams {
|
|
5273
|
+
positionId: number;
|
|
5274
|
+
channelId?: string;
|
|
5275
|
+
}
|
|
5276
|
+
export interface OnchainYieldsLockedRedeemResponse {
|
|
5277
|
+
redeemId: number;
|
|
5278
|
+
success: boolean;
|
|
5279
|
+
}
|
|
5280
|
+
export interface OnchainYieldsLockedSubscriptionRecordParams {
|
|
5281
|
+
purchaseId?: string;
|
|
5282
|
+
clientId?: string;
|
|
5283
|
+
asset?: string;
|
|
5284
|
+
startTime?: number;
|
|
5285
|
+
endTime?: number;
|
|
5286
|
+
current?: number;
|
|
5287
|
+
size?: number;
|
|
5288
|
+
}
|
|
5289
|
+
export interface OnchainYieldsLockedSubscriptionRecord {
|
|
5290
|
+
positionId: string;
|
|
5291
|
+
purchaseId: string;
|
|
5292
|
+
projectId: string;
|
|
5293
|
+
clientId: string;
|
|
5294
|
+
time: number;
|
|
5295
|
+
asset: string;
|
|
5296
|
+
amount: string;
|
|
5297
|
+
lockPeriod: string;
|
|
5298
|
+
type: 'NORMAL' | 'AUTO';
|
|
5299
|
+
sourceAccount: 'SPOT' | 'FUNDING' | 'SPOTANDFUNDING';
|
|
5300
|
+
amtFromSpot?: string;
|
|
5301
|
+
amtFromFunding?: string;
|
|
5302
|
+
status: 'PURCHASING' | 'SUCCESS' | 'FAILED';
|
|
5303
|
+
}
|
|
5304
|
+
export interface OnchainYieldsLockedSubscriptionRecordResponse {
|
|
5305
|
+
rows: OnchainYieldsLockedSubscriptionRecord[];
|
|
5306
|
+
total: number;
|
|
5307
|
+
}
|
|
5308
|
+
export interface OnchainYieldsLockedRewardsHistoryParams {
|
|
5309
|
+
positionId?: string;
|
|
5310
|
+
asset?: string;
|
|
5311
|
+
startTime?: number;
|
|
5312
|
+
endTime?: number;
|
|
5313
|
+
current?: number;
|
|
5314
|
+
size?: number;
|
|
5315
|
+
}
|
|
5316
|
+
export interface OnchainYieldsLockedRewardsRecord {
|
|
5317
|
+
positionId: string;
|
|
5318
|
+
time: number;
|
|
5319
|
+
asset: string;
|
|
5320
|
+
lockPeriod: string;
|
|
5321
|
+
amount: string;
|
|
5322
|
+
}
|
|
5323
|
+
export interface OnchainYieldsLockedRewardsHistoryResponse {
|
|
5324
|
+
rows: OnchainYieldsLockedRewardsRecord[];
|
|
5325
|
+
total: number;
|
|
5326
|
+
}
|
|
5327
|
+
export interface OnchainYieldsLockedRedemptionRecordParams {
|
|
5328
|
+
positionId?: number;
|
|
5329
|
+
redeemId?: string;
|
|
5330
|
+
asset?: string;
|
|
5331
|
+
startTime?: number;
|
|
5332
|
+
endTime?: number;
|
|
5333
|
+
current?: number;
|
|
5334
|
+
size?: number;
|
|
5335
|
+
}
|
|
5336
|
+
export interface OnchainYieldsLockedRedemptionRecord {
|
|
5337
|
+
positionId: string;
|
|
5338
|
+
redeemId: number;
|
|
5339
|
+
time: number;
|
|
5340
|
+
asset: string;
|
|
5341
|
+
lockPeriod: string;
|
|
5342
|
+
amount: string;
|
|
5343
|
+
originalAmount: string;
|
|
5344
|
+
type: 'NORMAL' | 'EARLY' | 'CONVERT';
|
|
5345
|
+
deliverDate: string;
|
|
5346
|
+
lossAmount: string;
|
|
5347
|
+
isComplete: boolean;
|
|
5348
|
+
rewardAsset: string;
|
|
5349
|
+
rewardAmt: string;
|
|
5350
|
+
status: 'CREATED' | 'PAID';
|
|
5351
|
+
}
|
|
5352
|
+
export interface OnchainYieldsLockedRedemptionRecordResponse {
|
|
5353
|
+
rows: OnchainYieldsLockedRedemptionRecord[];
|
|
5354
|
+
total: number;
|
|
5355
|
+
}
|