coinbase-api 1.0.11 → 1.0.13
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/dist/cjs/CBAdvancedTradeClient.js +1 -1
- package/dist/cjs/CBAdvancedTradeClient.js.map +1 -1
- package/dist/cjs/CBAppClient.d.ts +5 -13
- package/dist/cjs/CBAppClient.js.map +1 -1
- package/dist/cjs/CBPrimeClient.d.ts +128 -21
- package/dist/cjs/CBPrimeClient.js +160 -23
- package/dist/cjs/CBPrimeClient.js.map +1 -1
- package/dist/cjs/types/request/coinbase-prime.d.ts +66 -0
- package/dist/cjs/types/response/coinbase-app-client.d.ts +65 -0
- package/dist/cjs/types/response/coinbase-app-client.js.map +1 -1
- package/dist/mjs/CBAdvancedTradeClient.js +1 -1
- package/dist/mjs/CBAdvancedTradeClient.js.map +1 -1
- package/dist/mjs/CBAppClient.d.ts +5 -13
- package/dist/mjs/CBAppClient.js.map +1 -1
- package/dist/mjs/CBPrimeClient.d.ts +128 -21
- package/dist/mjs/CBPrimeClient.js +160 -23
- package/dist/mjs/CBPrimeClient.js.map +1 -1
- package/dist/mjs/types/request/coinbase-prime.d.ts +66 -0
- package/dist/mjs/types/response/coinbase-app-client.d.ts +65 -0
- package/dist/mjs/types/response/coinbase-app-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -100,6 +100,22 @@ export interface GetPrimeActivitiesRequest {
|
|
|
100
100
|
limit?: number;
|
|
101
101
|
sort_direction?: 'ASC' | 'DESC';
|
|
102
102
|
}
|
|
103
|
+
export interface GetPrimeEntityActivitiesRequest {
|
|
104
|
+
entity_id: string;
|
|
105
|
+
activity_level?: 'ACTIVITY_LEVEL_ALL';
|
|
106
|
+
symbols?: string[];
|
|
107
|
+
categories?: string[];
|
|
108
|
+
statuses?: string[];
|
|
109
|
+
start_time?: string;
|
|
110
|
+
end_time?: string;
|
|
111
|
+
cursor?: string;
|
|
112
|
+
limit?: number;
|
|
113
|
+
sort_direction?: 'ASC' | 'DESC';
|
|
114
|
+
}
|
|
115
|
+
export interface GetPrimePortfolioActivityByIdRequest {
|
|
116
|
+
portfolio_id: string;
|
|
117
|
+
activity_id: string;
|
|
118
|
+
}
|
|
103
119
|
/**
|
|
104
120
|
*
|
|
105
121
|
* Address Book Endpoints
|
|
@@ -304,3 +320,53 @@ export interface GetPrimeWalletDepositInstructionsRequest {
|
|
|
304
320
|
wallet_id: string;
|
|
305
321
|
deposit_type?: 'UNKNOWN_WALLET_DEPOSIT_TYPE' | 'CRYPTO' | 'WIRE' | 'SEN' | 'SWIFT';
|
|
306
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* Financing Endpoints
|
|
326
|
+
*
|
|
327
|
+
*/
|
|
328
|
+
export interface GetPrimeEntityAccrualsRequest {
|
|
329
|
+
entity_id: string;
|
|
330
|
+
portfolio_id?: string;
|
|
331
|
+
start_date?: string;
|
|
332
|
+
end_date?: string;
|
|
333
|
+
}
|
|
334
|
+
export interface GetPrimeEntityLocateAvailabilitiesRequest {
|
|
335
|
+
entity_id: string;
|
|
336
|
+
conversion_date?: string;
|
|
337
|
+
locate_date?: string;
|
|
338
|
+
}
|
|
339
|
+
export interface GetPrimeEntityMarginSummariesRequest {
|
|
340
|
+
entity_id: string;
|
|
341
|
+
start_date?: string;
|
|
342
|
+
end_date?: string;
|
|
343
|
+
}
|
|
344
|
+
export interface GetPrimeEntityTFTieredFeesRequest {
|
|
345
|
+
entity_id: string;
|
|
346
|
+
effective_at?: string;
|
|
347
|
+
}
|
|
348
|
+
export interface GetPrimePortfolioAccrualsRequest {
|
|
349
|
+
portfolio_id: string;
|
|
350
|
+
start_date?: string;
|
|
351
|
+
end_date?: string;
|
|
352
|
+
}
|
|
353
|
+
export interface GetPrimePortfolioBuyingPowerRequest {
|
|
354
|
+
portfolio_id: string;
|
|
355
|
+
base_currency: string;
|
|
356
|
+
quote_currency: string;
|
|
357
|
+
}
|
|
358
|
+
export interface GetPrimePortfolioLocatesRequest {
|
|
359
|
+
portfolio_id: string;
|
|
360
|
+
locate_ids?: string[];
|
|
361
|
+
conversion_date?: string;
|
|
362
|
+
locate_date?: string;
|
|
363
|
+
}
|
|
364
|
+
export interface GetPrimePortfolioMarginConversionsRequest {
|
|
365
|
+
portfolio_id: string;
|
|
366
|
+
start_date?: string;
|
|
367
|
+
end_date?: string;
|
|
368
|
+
}
|
|
369
|
+
export interface GetPrimePortfolioWithdrawalPowerRequest {
|
|
370
|
+
portfolio_id: string;
|
|
371
|
+
symbol: string;
|
|
372
|
+
}
|
|
@@ -152,6 +152,71 @@ export interface CBAppDepositWithdrawal {
|
|
|
152
152
|
fee: DepositWithdrawalAmountCurrency;
|
|
153
153
|
payout_at: string;
|
|
154
154
|
}
|
|
155
|
+
interface TransferAmount {
|
|
156
|
+
value: string;
|
|
157
|
+
currency: string;
|
|
158
|
+
}
|
|
159
|
+
interface TransferOwner {
|
|
160
|
+
id: string;
|
|
161
|
+
uuid: string;
|
|
162
|
+
user_uuid: string;
|
|
163
|
+
type: string;
|
|
164
|
+
}
|
|
165
|
+
interface TransferLedgerAccount {
|
|
166
|
+
account_id: string;
|
|
167
|
+
currency: string;
|
|
168
|
+
owner: TransferOwner;
|
|
169
|
+
}
|
|
170
|
+
interface TransferExternalPaymentMethod {
|
|
171
|
+
payment_method_id: string;
|
|
172
|
+
}
|
|
173
|
+
interface TransferSource {
|
|
174
|
+
type: string;
|
|
175
|
+
network: string;
|
|
176
|
+
payment_method_id: string;
|
|
177
|
+
external_payment_method: TransferExternalPaymentMethod;
|
|
178
|
+
}
|
|
179
|
+
interface TransferTarget {
|
|
180
|
+
type: string;
|
|
181
|
+
network: string;
|
|
182
|
+
payment_method_id: string;
|
|
183
|
+
ledger_account: TransferLedgerAccount;
|
|
184
|
+
}
|
|
185
|
+
interface TransferFee {
|
|
186
|
+
title: string;
|
|
187
|
+
description: string;
|
|
188
|
+
amount: TransferAmount;
|
|
189
|
+
type: string;
|
|
190
|
+
}
|
|
191
|
+
export interface CBAppTransferDepositWithdrawal {
|
|
192
|
+
user_entered_amount: TransferAmount;
|
|
193
|
+
amount: TransferAmount;
|
|
194
|
+
total: TransferAmount;
|
|
195
|
+
subtotal: TransferAmount;
|
|
196
|
+
idem: string;
|
|
197
|
+
committed: boolean;
|
|
198
|
+
id: string;
|
|
199
|
+
instant: boolean;
|
|
200
|
+
source: TransferSource;
|
|
201
|
+
target: TransferTarget;
|
|
202
|
+
payout_at: string;
|
|
203
|
+
status: string;
|
|
204
|
+
user_reference: string;
|
|
205
|
+
type: string;
|
|
206
|
+
created_at: string | null;
|
|
207
|
+
updated_at: string | null;
|
|
208
|
+
user_warnings: any[];
|
|
209
|
+
fees: any[];
|
|
210
|
+
total_fee: TransferFee;
|
|
211
|
+
cancellation_reason: string | null;
|
|
212
|
+
hold_days: number;
|
|
213
|
+
nextStep: any | null;
|
|
214
|
+
checkout_url: string;
|
|
215
|
+
requires_completion_step: boolean;
|
|
216
|
+
}
|
|
217
|
+
export interface CBAppTransfer {
|
|
218
|
+
transfer: CBAppTransferDepositWithdrawal;
|
|
219
|
+
}
|
|
155
220
|
/**
|
|
156
221
|
*
|
|
157
222
|
* DATA - Currencies Endpoints
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coinbase-app-client.js","sourceRoot":"","sources":["../../../../src/types/response/coinbase-app-client.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"coinbase-app-client.js","sourceRoot":"","sources":["../../../../src/types/response/coinbase-app-client.ts"],"names":[],"mappings":";AA8QA;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;GAIG"}
|