wealthica-sdk-js 0.0.2 → 0.0.3

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 CHANGED
@@ -49,7 +49,7 @@ import Wealthica from 'wealthica-sdk-js';
49
49
  });
50
50
 
51
51
  // Call the user-specific API methods
52
- const account = await user.institutions.getOne('ACCOUNT_ID');
52
+ const institution = await user.institutions.getOne('INSTITUTION_ID');
53
53
  })();
54
54
  ```
55
55
 
@@ -79,8 +79,8 @@ const user1 = wealthica.login('USER_ID_1');
79
79
  const user2 = wealthica.login('USER_ID_2');
80
80
 
81
81
  // Call user APIs
82
- const user1Account = await user1.institutions.getOne('ACCOUNT_ID_1');
83
- const user2Account = await user2.institutions.getOne('ACCOUNT_ID_2');
82
+ const user1Institution = await user1.institutions.getOne('INSTITUTION_ID_1');
83
+ const user2Institution = await user2.institutions.getOne('INSTITUTION_ID_2');
84
84
  ```
85
85
 
86
86
  ##### From client (browser/ReactNative)
@@ -113,7 +113,7 @@ const wealthica = Wealthica.init({
113
113
  const user = wealthica.login();
114
114
 
115
115
  // Call user APIs
116
- const account = await user.institutions.getOne('ACCOUNT_ID_1');
116
+ const institution = await user.institutions.getOne('INSTITUTION_ID_1');
117
117
  ```
118
118
 
119
119
  Example server implementation for `authEndpoint`:
@@ -167,7 +167,7 @@ token = await user.getToken({ minimumLifeTime: 600 }); // fetches and returns an
167
167
 
168
168
  #### user.getConnectData({ provider, redirectURI, state, lang, theme, providersPerLine })
169
169
 
170
- This method returns a Wealthica Connect URL and authentication token for user to connect an account.
170
+ This method returns a Wealthica Connect URL and authentication token for user to connect an institution.
171
171
 
172
172
  Wealthica Connect URL must be called via POST method and pass token in the form data.
173
173
 
@@ -182,8 +182,8 @@ const { url, token } = await user.getConnectData({
182
182
  // required for Wealthica Connect drop-in widget, but already handled by the SDK when calling
183
183
  // `user.connect()` (defaults to `window.location.origin`).
184
184
  // https://wealthica.com/docs/#connect-url-parameters
185
- accountId: 'ACCOUNT_ID',
186
- // Pass accountId to re-connect an existing account that has expired/revoked credentials
185
+ institutionId: 'INSTITUTION_ID',
186
+ // Pass institutionId to re-connect an existing institution that has expired/revoked credentials
187
187
  origin: 'YOUR_SITE_ORIGIN',
188
188
  state: 'YOUR_APP_STATE', // optional
189
189
  lang: 'en', // optional (en | es | fr | it), 'en' by default
@@ -227,39 +227,39 @@ const user2 = wealthica.login('USER_ID_2');
227
227
  const { url: url2, token } = await user2.getConnectData();
228
228
  ```
229
229
 
230
- #### user.connect({ provider, providers, accountId, lang, theme, providersPerLine, features })
230
+ #### user.connect({ provider, providers, institutionId, lang, theme, providersPerLine, features })
231
231
 
232
- This method starts the Wealthica Connect process inside your webpage/app for user to connect their account.
232
+ This method starts the Wealthica Connect process inside your webpage/app for user to connect their institution.
233
233
 
234
234
  Connection response are provided via callbacks.
235
235
 
236
236
  This method accepts the same parameters as `user.getConnectData()` except for `redirectURI`, `origin` and `state`
237
237
 
238
238
  ```javascript
239
- user.connect().onConnection(account => {
240
- // Send the account to your server
241
- sendToServer('/some-route', account);
239
+ user.connect().onConnection(institution => {
240
+ // Send the institution to your server
241
+ sendToServer('/some-route', institution);
242
242
  }).onError(error => {
243
- console.error('account connection error:', error)
243
+ console.error('institution connection error:', error)
244
244
  }).onEvent((name, data) => {
245
- console.log('account connection event:', name, data);
245
+ console.log('institution connection event:', name, data);
246
246
  });
247
247
  ```
248
248
 
249
- #### user.reconnect(accountId)
249
+ #### user.reconnect(institutionId)
250
250
 
251
- This method starts the Wealthica Connect process to re-connect an existing account that has expired/revoked credentials.
251
+ This method starts the Wealthica Connect process to re-connect an existing institution that has expired/revoked credentials.
252
252
 
253
253
  Connection response are provided via callbacks.
254
254
 
255
255
  ```javascript
256
- user.reconnect('ACCOUNT_ID').onConnection(account => {
257
- // Send the account to your server
258
- sendToServer('/some-route', account);
256
+ user.reconnect('INSTITUTION_ID').onConnection(institution => {
257
+ // Send the institution to your server
258
+ sendToServer('/some-route', institution);
259
259
  }).onError(error => {
260
- console.error('account connection error:', error)
260
+ console.error('institution connection error:', error)
261
261
  }).onEvent((name, data) => {
262
- console.log('account connection event:', name, data);
262
+ console.log('institution connection event:', name, data);
263
263
  });
264
264
  ```
265
265
 
@@ -275,273 +275,97 @@ This method retrieves the list of institutions for a user.
275
275
  const institutions = await user.institutions.getList();
276
276
  ```
277
277
 
278
+ todo: add response example
278
279
  ```json
279
- [
280
- {
281
- "id": "603522490d2b02001233a5d6",
282
- "provider": {
283
- "name": "coinbase",
284
- "display_name": "Coinbase",
285
- "logo": "https://app.wealthica.com/images/institutions/coinbase.png",
286
- "type": "oauth",
287
- "scopes": [],
288
- "resource_type": "provider"
289
- },
290
- "balances": [
291
- {
292
- "ticker": "BTC",
293
- "provider_ticker": "BTC",
294
- "name": "Bitcoin",
295
- "asset_is_verified": null,
296
- "asset_type": "",
297
- "amount": "0.20210831",
298
- "decimals": 8,
299
- "fiat_ticker": "USD",
300
- "fiat_value": "2021.08",
301
- "fiat_asset_is_verified": null,
302
- "logo": "https://data.wealthica.com/api/securities/CRYPTO:BTC/logo",
303
- "updated_at": 1630412605283,
304
- "misc": null,
305
- "resource_type": "balance"
306
- }
307
- ],
308
- "blockchain": null,
309
- "created_at": 1630412605283,
310
- "updated_at": 1630412605283,
311
- "resource_type": "account",
312
- },
313
- {
314
- "id": "603522490d2b02001233a5d7",
315
- "provider": {
316
- "name": "bitcoin",
317
- "display_name": "Bitcoin Address",
318
- "logo": "https://app.wealthica.com/images/institutions/bitcoin.png",
319
- "type": "wallet",
320
- "scopes": [],
321
- "resource_type": "provider"
322
- },
323
- "balances": [],
324
- "blockchain": null,
325
- "created_at": 1630412605283,
326
- "updated_at": 1630412605283,
327
- "resource_type": "account",
328
- }
329
- ]
280
+
330
281
  ```
331
282
 
332
283
  #### user.institutions.getOne(id)
333
284
 
334
- This method retrieves a single account.
285
+ This method retrieves a single institution.
335
286
 
336
287
  ```javascript
337
- const account = await user.institutions.getOne('603522490d2b02001233a5d6');
288
+ const institution = await user.institutions.getOne('603522490d2b02001233a5d6');
338
289
  ```
339
290
 
291
+ todo: add response example
340
292
  ```json
341
- {
342
- "id": "603522490d2b02001233a5d6",
343
- "provider": {
344
- "name": "coinbase",
345
- "display_name": "Coinbase",
346
- "logo": "https://app.wealthica.com/images/institutions/coinbase.png",
347
- "type": "oauth",
348
- "scopes": [],
349
- "resource_type": "provider"
350
- },
351
- "balances": [
352
- {
353
- "ticker": "BTC",
354
- "provider_ticker": "BTC",
355
- "name": "Bitcoin",
356
- "asset_is_verified": null,
357
- "asset_type": "",
358
- "amount": "0.20210831",
359
- "decimals": 8,
360
- "fiat_ticker": "USD",
361
- "fiat_value": "2021.08",
362
- "fiat_asset_is_verified": null,
363
- "logo": "https://data.wealthica.com/api/securities/CRYPTO:BTC/logo",
364
- "updated_at": 1630412605283,
365
- "misc": null,
366
- "resource_type": "balance"
367
- }
368
- ],
369
- "blockchain": null,
370
- "created_at": 1630412605283,
371
- "updated_at": 1630412605283,
372
- "resource_type": "account",
373
- }
293
+
374
294
  ```
375
295
 
376
296
  #### user.institutions.sync(id)
377
297
 
378
- This method triggers an account sync.
298
+ This method triggers an institution sync.
379
299
 
380
300
  ```javascript
381
- const account = await user.institutions.sync('603522490d2b02001233a5d6');
301
+ const institution = await user.institutions.sync('603522490d2b02001233a5d6');
382
302
  ```
383
303
 
384
304
  #### user.institutions.remove(id)
385
305
 
386
- This method removes a single account from the user.
306
+ This method removes a single institution from the user.
387
307
 
388
308
  ```javascript
389
309
  await user.institutions.remove('603522490d2b02001233a5d6');
390
310
  ```
391
311
 
392
- #### user.history.getList({ accountId, from, to, wallet })
312
+ #### user.history.getList({ institutionId, from, to, investments })
393
313
 
394
- This method retrieves the balance history for an account.
314
+ This method retrieves the balance history for an institution.
395
315
 
396
316
  Returns data within the last 1 year by default.
397
317
 
398
318
  ```javascript
399
319
  const history = await user.history.getList({
400
- accountId: '603522490d2b02001233a5d6',
320
+ institutionId: '603522490d2b02001233a5d6',
401
321
  from: '2021-01-01',
402
322
  to: '2021-09-09',
403
- wallet: 'bitcoin:cash:usd',
323
+ investment: 'bitcoin:cash:usd',
404
324
  });
405
325
  ```
406
326
 
327
+ todo: add response example
407
328
  ```json
408
- [
409
- {
410
- "id": "6144755af8a77cae7174afa3",
411
- "date": 1630412605283,
412
- "wallet": "demo:cash:usd",
413
- "fiat_ticker": "USD",
414
- "fiat_value": "125.30"
415
- },
416
- {
417
- "id": "6144755af8a77cae7174afa4",
418
- "date": 1630412605283,
419
- "wallet": "demo:cash:cad",
420
- "fiat_ticker": "USD",
421
- "fiat_value": "125.30"
422
- },
423
- ]
329
+
424
330
  ```
425
331
 
426
- #### user.transactions.getList({ accountId, ticker, from, to, wallet, last, limit })
332
+ #### user.transactions.getList({ institutionId, ticker, from, to, investments, last, limit })
427
333
 
428
- This method retrieves the list of transactions for an account.
334
+ This method retrieves the list of transactions for an institution.
429
335
 
430
336
  Returns data within the last 1 year by default.
431
337
 
432
338
  ```javascript
433
339
  const transactions = await user.transactions.getList({
434
- accountId: '603522490d2b02001233a5d6',
340
+ institutionId: '603522490d2b02001233a5d6',
435
341
  ticker: 'BTC', // optional
436
342
  from: '2020-08-31', // optional
437
343
  to: '2021-08-31', // optional
438
- wallet: 'bitcoin:cash:usd', // optional
344
+ investment: 'bitcoin:cash:usd', // optional
439
345
  last: '603522490d2b02001233a5d6', // optional, blank string is allowed
440
346
  limit: 10, // optional
441
347
  });
442
348
  ```
443
349
 
350
+ todo: add response example
444
351
  ```json
445
- [
446
- {
447
- "id": "603522490d2b02001233a5d6",
448
- "status": null,
449
- "transaction_type": "deposit",
450
- "parts": [
451
- {
452
- "direction": "received",
453
- "ticker": "BTC",
454
- "provider_ticker": "BTC",
455
- "amount": "1.20210831",
456
- "asset_is_verified": null,
457
- "fiat_ticker": "USD",
458
- "fiat_value": "1234567.8",
459
- "fiat_asset_is_verified": null,
460
- "other_parties": []
461
- }
462
- ],
463
- "fees": [
464
- {
465
- "type": null,
466
- "ticker": "USD",
467
- "provider_ticker": "USD",
468
- "amount": "0.5",
469
- "asset_is_verified": null,
470
- "fiat_ticker": "",
471
- "fiat_value": "",
472
- "fiat_asset_is_verified": null,
473
- "resource_type": "transaction_fee"
474
- }
475
- ],
476
- "misc": [],
477
- "fiat_calculated_at": 1630412605283,
478
- "initiated_at": 1630412605283,
479
- "confirmed_at": 1630412605283,
480
- "resource_type": "transaction"
481
- },
482
- {
483
- "id": "603522490d2b02001233a5d7",
484
- "status": null,
485
- "transaction_type": "deposit",
486
- "parts": [],
487
- "fees": [],
488
- "misc": [],
489
- "fiat_calculated_at": 1630412605283,
490
- "initiated_at": 1630412605283,
491
- "confirmed_at": 1630412605283,
492
- "resource_type": "transaction"
493
- }
494
- ]
352
+
495
353
  ```
496
354
 
497
- #### user.transactions.getOne({ accountId, txId })
355
+ #### user.transactions.getOne({ institutionId, txId })
498
356
 
499
357
  This method retrieves a single transaction.
500
358
 
501
359
  ```javascript
502
360
  const transaction = await user.transactions.getOne({
503
- accountId: '603522490d2b02001233a5d6',
361
+ institutionId: '603522490d2b02001233a5d6',
504
362
  txId: '603522490d2b02001233a5d6'
505
363
  });
506
364
  ```
507
365
 
366
+ todo: add response example
508
367
  ```json
509
- {
510
- "id": "603522490d2b02001233a5d6",
511
- "status": null,
512
- "transaction_type": "deposit",
513
- "parts": [
514
- {
515
- "direction": "received",
516
- "ticker": "BTC",
517
- "provider_ticker": "BTC",
518
- "amount": "1.20210831",
519
- "asset_is_verified": null,
520
- "fiat_ticker": "USD",
521
- "fiat_value": "1234567.8",
522
- "fiat_asset_is_verified": null,
523
- "other_parties": []
524
- }
525
- ],
526
- "fees": [
527
- {
528
- "type": null,
529
- "ticker": "USD",
530
- "provider_ticker": "USD",
531
- "amount": "0.5",
532
- "asset_is_verified": null,
533
- "fiat_ticker": "",
534
- "fiat_value": "",
535
- "fiat_asset_is_verified": null,
536
- "resource_type": "transaction_fee"
537
- }
538
- ],
539
- "misc": [],
540
- "fiat_calculated_at": 1630412605283,
541
- "initiated_at": 1630412605283,
542
- "confirmed_at": 1630412605283,
543
- "resource_type": "transaction"
544
- }
368
+
545
369
  ```
546
370
 
547
371
  ### Data APIs
@@ -565,35 +389,9 @@ This method retrieves the list of Wealthica supported providers.
565
389
  const providers = await wealthica.providers.getList();
566
390
  ```
567
391
 
392
+ todo: add response example
568
393
  ```json
569
- [
570
- {
571
- "name": "coinbase",
572
- "display_name": "Coinbase",
573
- "logo": "https://app.wealthica.com/images/institutions/coinbase.png",
574
- "auth_type": "oauth",
575
- "available_scopes": [],
576
- "available_currencies": null,
577
- "resource_type": "provider",
578
- "status": null,
579
- "is_beta": true,
580
- "connect_notice": "",
581
- "credentials": ["code"]
582
- },
583
- {
584
- "name": "bitcoin",
585
- "display_name": "Bitcoin Address",
586
- "logo": "https://app.wealthica.com/images/institutions/bitcoin.png",
587
- "auth_type": "wallet",
588
- "available_scopes": [],
589
- "available_currencies": null,
590
- "resource_type": "provider",
591
- "status": null,
592
- "is_beta": true,
593
- "connect_notice": "",
594
- "credentials": ["wallet"]
595
- }
596
- ]
394
+
597
395
  ```
598
396
 
599
397
  #### wealthica.providers.getOne(id)
@@ -604,20 +402,9 @@ This method retrieves a single provider.
604
402
  const provider = await wealthica.providers.getOne('coinbase');
605
403
  ```
606
404
 
405
+ todo: add response example
607
406
  ```json
608
- {
609
- "name": "coinbase",
610
- "display_name": "Coinbase",
611
- "logo": "https://app.wealthica.com/images/institutions/coinbase.png",
612
- "auth_type": "oauth",
613
- "available_scopes": [],
614
- "available_currencies": null,
615
- "resource_type": "provider",
616
- "status": null,
617
- "is_beta": true,
618
- "connect_notice": "",
619
- "credentials": ["code"]
620
- }
407
+
621
408
  ```
622
409
 
623
410
  ## Development
@@ -17,7 +17,7 @@ interface APIInterface {
17
17
  getTeam(): string;
18
18
  getConnectData(options: ConnectDataOptions): Promise<ConnectData>
19
19
  connect(options?: APIConfig): APIInterface
20
- reconnect(accountId: string): APIUserInterface
20
+ reconnect(institutionId: string): APIUserInterface
21
21
  onConnection(callback: Function): APIInterface
22
22
  onError(callback: Function): APIInterface
23
23
  onEvent(callback: Function): APIInterface
@@ -45,9 +45,9 @@ interface APIUserInterface extends APIInterface {
45
45
 
46
46
  interface InstitutionsInterface {
47
47
  constructor(api: APIUserInterface)
48
- getList(): Promise<Account[]> | Promise<never>
49
- getOne(id: string, params?: {}): Promise<Account> | Promise<never>
50
- sync(id): Promise<Account> | Promise<never>
48
+ getList(): Promise<Institution[]> | Promise<never>
49
+ getOne(id: string, params?: {}): Promise<Institution> | Promise<never>
50
+ sync(id): Promise<Institution> | Promise<never>
51
51
  remove(id): Promise<void> | Promise<never>
52
52
  }
53
53
 
@@ -82,7 +82,7 @@ type TokenOptions = {
82
82
 
83
83
  type ConnectDataOptions = {
84
84
  provider: string;
85
- accountId: string;
85
+ institutionId: string;
86
86
  state: string;
87
87
  origin: string | undefined;
88
88
  lang: string;
@@ -96,16 +96,16 @@ type ConnectData = {
96
96
  }
97
97
 
98
98
  type TransactionsOptions = {
99
- accountId: string;
99
+ institutionId: string;
100
100
  from?: string;
101
101
  to?: string;
102
- wallet?: string;
102
+ investments?: string;
103
103
  last?: string;
104
104
  limit?: number;
105
105
  }
106
106
 
107
107
  type TransactionOptions = {
108
- accountId: string;
108
+ institutionId: string;
109
109
  txId: string;
110
110
  }
111
111
 
@@ -115,8 +115,6 @@ type Part = {
115
115
  provider_ticker: string;
116
116
  amount: string;
117
117
  asset_is_verified?: boolean | null;
118
- fiat_ticker: string;
119
- fiat_value: string;
120
118
  fiat_asset_is_verified?: boolean | null;
121
119
  other_parties: any[];
122
120
  }
@@ -127,8 +125,6 @@ type Fee = {
127
125
  provider_ticker: string;
128
126
  amount: string;
129
127
  asset_is_verified?: boolean | null;
130
- fiat_ticker: string;
131
- fiat_value: string;
132
128
  fiat_asset_is_verified?: boolean | null;
133
129
  resource_type: string;
134
130
  }
@@ -147,18 +143,16 @@ type Transactions = {
147
143
  }
148
144
 
149
145
  type HistoryListOptions = {
150
- accountId: string;
146
+ institutionId: string;
151
147
  from?: string;
152
148
  to?: string;
153
- wallet?: string;
149
+ investments?: string;
154
150
  }
155
151
 
156
152
  type BalanceHistory = {
157
153
  id: string;
158
154
  date: number;
159
- wallet: string;
160
- fiat_ticker: string;
161
- fiat_value: string;
155
+ investment: string;
162
156
  }
163
157
 
164
158
  type Provider = {
@@ -175,7 +169,7 @@ type Provider = {
175
169
  credentials: string[];
176
170
  }
177
171
 
178
- type AccountProvider = {
172
+ type InstitutionProvider = {
179
173
  name: string;
180
174
  display_name: string;
181
175
  logo: string;
@@ -192,8 +186,6 @@ type Balance = {
192
186
  asset_type: string;
193
187
  amount: string;
194
188
  decimals: number;
195
- fiat_ticker: string;
196
- fiat_value: string;
197
189
  fiat_asset_is_verified?: any;
198
190
  logo: string;
199
191
  updated_at: number;
@@ -201,9 +193,9 @@ type Balance = {
201
193
  resource_type: string;
202
194
  }
203
195
 
204
- type Account = {
196
+ type Institution = {
205
197
  id: string;
206
- provider: AccountProvider;
198
+ provider: InstitutionProvider;
207
199
  balances: Balance[];
208
200
  blockchain?: any;
209
201
  created_at: number;
@@ -17,7 +17,7 @@ interface APIInterface {
17
17
  getTeam(): string;
18
18
  getConnectData(options: ConnectDataOptions): Promise<ConnectData>
19
19
  connect(options?: APIConfig): APIInterface
20
- reconnect(accountId: string): APIUserInterface
20
+ reconnect(institutionId: string): APIUserInterface
21
21
  onConnection(callback: Function): APIInterface
22
22
  onError(callback: Function): APIInterface
23
23
  onEvent(callback: Function): APIInterface
@@ -45,9 +45,9 @@ interface APIUserInterface extends APIInterface {
45
45
 
46
46
  interface InstitutionsInterface {
47
47
  constructor(api: APIUserInterface)
48
- getList(): Promise<Account[]> | Promise<never>
49
- getOne(id: string, params?: {}): Promise<Account> | Promise<never>
50
- sync(id): Promise<Account> | Promise<never>
48
+ getList(): Promise<Institution[]> | Promise<never>
49
+ getOne(id: string, params?: {}): Promise<Institution> | Promise<never>
50
+ sync(id): Promise<Institution> | Promise<never>
51
51
  remove(id): Promise<void> | Promise<never>
52
52
  }
53
53
 
@@ -82,7 +82,7 @@ type TokenOptions = {
82
82
 
83
83
  type ConnectDataOptions = {
84
84
  provider: string;
85
- accountId: string;
85
+ institutionId: string;
86
86
  state: string;
87
87
  origin: string | undefined;
88
88
  lang: string;
@@ -96,16 +96,16 @@ type ConnectData = {
96
96
  }
97
97
 
98
98
  type TransactionsOptions = {
99
- accountId: string;
99
+ institutionId: string;
100
100
  from?: string;
101
101
  to?: string;
102
- wallet?: string;
102
+ investments?: string;
103
103
  last?: string;
104
104
  limit?: number;
105
105
  }
106
106
 
107
107
  type TransactionOptions = {
108
- accountId: string;
108
+ institutionId: string;
109
109
  txId: string;
110
110
  }
111
111
 
@@ -115,8 +115,6 @@ type Part = {
115
115
  provider_ticker: string;
116
116
  amount: string;
117
117
  asset_is_verified?: boolean | null;
118
- fiat_ticker: string;
119
- fiat_value: string;
120
118
  fiat_asset_is_verified?: boolean | null;
121
119
  other_parties: any[];
122
120
  }
@@ -127,8 +125,6 @@ type Fee = {
127
125
  provider_ticker: string;
128
126
  amount: string;
129
127
  asset_is_verified?: boolean | null;
130
- fiat_ticker: string;
131
- fiat_value: string;
132
128
  fiat_asset_is_verified?: boolean | null;
133
129
  resource_type: string;
134
130
  }
@@ -147,18 +143,16 @@ type Transactions = {
147
143
  }
148
144
 
149
145
  type HistoryListOptions = {
150
- accountId: string;
146
+ institutionId: string;
151
147
  from?: string;
152
148
  to?: string;
153
- wallet?: string;
149
+ investments?: string;
154
150
  }
155
151
 
156
152
  type BalanceHistory = {
157
153
  id: string;
158
154
  date: number;
159
- wallet: string;
160
- fiat_ticker: string;
161
- fiat_value: string;
155
+ investment: string;
162
156
  }
163
157
 
164
158
  type Provider = {
@@ -175,7 +169,7 @@ type Provider = {
175
169
  credentials: string[];
176
170
  }
177
171
 
178
- type AccountProvider = {
172
+ type InstitutionProvider = {
179
173
  name: string;
180
174
  display_name: string;
181
175
  logo: string;
@@ -192,8 +186,6 @@ type Balance = {
192
186
  asset_type: string;
193
187
  amount: string;
194
188
  decimals: number;
195
- fiat_ticker: string;
196
- fiat_value: string;
197
189
  fiat_asset_is_verified?: any;
198
190
  logo: string;
199
191
  updated_at: number;
@@ -201,9 +193,9 @@ type Balance = {
201
193
  resource_type: string;
202
194
  }
203
195
 
204
- type Account = {
196
+ type Institution = {
205
197
  id: string;
206
- provider: AccountProvider;
198
+ provider: InstitutionProvider;
207
199
  balances: Balance[];
208
200
  blockchain?: any;
209
201
  created_at: number;