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.
@@ -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":";AAqMA;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;GAIG"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coinbase-api",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Node.js SDK for Coinbase's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
5
5
  "scripts": {
6
6
  "clean": "rm -rf dist",