snaptrade-typescript-sdk 8.29.3 → 8.29.4

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
@@ -2,22 +2,20 @@
2
2
 
3
3
  [![Visit SnapTrade](./header.png)](https://snaptrade.com)
4
4
 
5
- # [SnapTrade](https://snaptrade.com)
5
+ # [SnapTrade](https://snaptrade.com)<a id="snaptrade"></a>
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/npm-v8.29.3-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/8.29.3)
9
+ [![npm](https://img.shields.io/badge/npm-v8.29.4-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/8.29.4)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
13
13
 
14
- ## Table of Contents
14
+ ## Table of Contents<a id="table-of-contents"></a>
15
15
 
16
16
  <!-- toc -->
17
17
 
18
- - [Installing](#installing)
19
- * [npm](#npm)
20
- * [yarn](#yarn)
18
+ - [Installation](#installation)
21
19
  - [Getting Started](#getting-started)
22
20
  - [Reference](#reference)
23
21
  * [`snaptrade.accountInformation.getAllUserHoldings`](#snaptradeaccountinformationgetalluserholdings)
@@ -66,19 +64,40 @@ Connect brokerage accounts to your app for live positions and trading
66
64
 
67
65
  <!-- tocstop -->
68
66
 
69
- ## Installing
67
+ ## Installation<a id="installation"></a>
70
68
 
71
- ### npm
72
- ```
73
- npm install snaptrade-typescript-sdk --save
69
+ <table>
70
+ <tr>
71
+ <th width="292px"><code>npm</code></th>
72
+ <th width="293px"><code>pnpm</code></th>
73
+ <th width="292px"><code>yarn</code></th>
74
+ </tr>
75
+ <tr>
76
+ <td>
77
+
78
+ ```bash
79
+ npm i snaptrade-typescript-sdk
74
80
  ```
75
81
 
76
- ### yarn
82
+ </td>
83
+ <td>
84
+
85
+ ```bash
86
+ pnpm i snaptrade-typescript-sdk
77
87
  ```
88
+
89
+ </td>
90
+ <td>
91
+
92
+ ```bash
78
93
  yarn add snaptrade-typescript-sdk
79
94
  ```
80
95
 
81
- ## Getting Started
96
+ </td>
97
+ </tr>
98
+ </table>
99
+
100
+ ## Getting Started<a id="getting-started"></a>
82
101
 
83
102
  ```typescript
84
103
  const { Snaptrade } = require("snaptrade-typescript-sdk");
@@ -155,14 +174,14 @@ function getUserId() {
155
174
  main();
156
175
  ```
157
176
 
158
- ## Reference
177
+ ## Reference<a id="reference"></a>
159
178
 
160
179
 
161
- ### `snaptrade.accountInformation.getAllUserHoldings`
180
+ ### `snaptrade.accountInformation.getAllUserHoldings`<a id="snaptradeaccountinformationgetalluserholdings"></a>
162
181
 
163
182
  List all accounts for the user, plus balances, positions, and orders for each account.
164
183
 
165
- #### 🛠️ Usage
184
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
166
185
 
167
186
  ```typescript
168
187
  const getAllUserHoldingsResponse =
@@ -173,21 +192,21 @@ const getAllUserHoldingsResponse =
173
192
  });
174
193
  ```
175
194
 
176
- #### ⚙️ Parameters
195
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
177
196
 
178
- ##### userId: `string`
197
+ ##### userId: `string`<a id="userid-string"></a>
179
198
 
180
- ##### userSecret: `string`
199
+ ##### userSecret: `string`<a id="usersecret-string"></a>
181
200
 
182
- ##### brokerageAuthorizations: `string`
201
+ ##### brokerageAuthorizations: `string`<a id="brokerageauthorizations-string"></a>
183
202
 
184
203
  Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
185
204
 
186
- #### 🔄 Return
205
+ #### 🔄 Return<a id="🔄-return"></a>
187
206
 
188
207
  [AccountHoldings](./models/account-holdings.ts)
189
208
 
190
- #### 🌐 Endpoint
209
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
191
210
 
192
211
  `/holdings` `GET`
193
212
 
@@ -196,11 +215,11 @@ Optional. Comma seperated list of authorization IDs (only use if filtering is ne
196
215
  ---
197
216
 
198
217
 
199
- ### `snaptrade.accountInformation.getUserAccountBalance`
218
+ ### `snaptrade.accountInformation.getUserAccountBalance`<a id="snaptradeaccountinformationgetuseraccountbalance"></a>
200
219
 
201
220
  A list of account balances for the specified account (one per currency that the account holds).
202
221
 
203
- #### 🛠️ Usage
222
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
204
223
 
205
224
  ```typescript
206
225
  const getUserAccountBalanceResponse =
@@ -211,21 +230,21 @@ const getUserAccountBalanceResponse =
211
230
  });
212
231
  ```
213
232
 
214
- #### ⚙️ Parameters
233
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
215
234
 
216
- ##### userId: `string`
235
+ ##### userId: `string`<a id="userid-string"></a>
217
236
 
218
- ##### userSecret: `string`
237
+ ##### userSecret: `string`<a id="usersecret-string"></a>
219
238
 
220
- ##### accountId: `string`
239
+ ##### accountId: `string`<a id="accountid-string"></a>
221
240
 
222
241
  The ID of the account to get balances.
223
242
 
224
- #### 🔄 Return
243
+ #### 🔄 Return<a id="🔄-return"></a>
225
244
 
226
245
  [Balance](./models/balance.ts)
227
246
 
228
- #### 🌐 Endpoint
247
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
229
248
 
230
249
  `/accounts/{accountId}/balances` `GET`
231
250
 
@@ -234,11 +253,11 @@ The ID of the account to get balances.
234
253
  ---
235
254
 
236
255
 
237
- ### `snaptrade.accountInformation.getUserAccountDetails`
256
+ ### `snaptrade.accountInformation.getUserAccountDetails`<a id="snaptradeaccountinformationgetuseraccountdetails"></a>
238
257
 
239
258
  Return details of a specific investment account
240
259
 
241
- #### 🛠️ Usage
260
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
242
261
 
243
262
  ```typescript
244
263
  const getUserAccountDetailsResponse =
@@ -249,21 +268,21 @@ const getUserAccountDetailsResponse =
249
268
  });
250
269
  ```
251
270
 
252
- #### ⚙️ Parameters
271
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
253
272
 
254
- ##### userId: `string`
273
+ ##### userId: `string`<a id="userid-string"></a>
255
274
 
256
- ##### userSecret: `string`
275
+ ##### userSecret: `string`<a id="usersecret-string"></a>
257
276
 
258
- ##### accountId: `string`
277
+ ##### accountId: `string`<a id="accountid-string"></a>
259
278
 
260
279
  The ID of the account to get detail of.
261
280
 
262
- #### 🔄 Return
281
+ #### 🔄 Return<a id="🔄-return"></a>
263
282
 
264
283
  [Account](./models/account.ts)
265
284
 
266
- #### 🌐 Endpoint
285
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
267
286
 
268
287
  `/accounts/{accountId}` `GET`
269
288
 
@@ -272,11 +291,11 @@ The ID of the account to get detail of.
272
291
  ---
273
292
 
274
293
 
275
- ### `snaptrade.accountInformation.getUserAccountOrders`
294
+ ### `snaptrade.accountInformation.getUserAccountOrders`<a id="snaptradeaccountinformationgetuseraccountorders"></a>
276
295
 
277
296
  Fetch all recent orders from a user\'s account.
278
297
 
279
- #### 🛠️ Usage
298
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
280
299
 
281
300
  ```typescript
282
301
  const getUserAccountOrdersResponse =
@@ -284,29 +303,34 @@ const getUserAccountOrdersResponse =
284
303
  userId: "John.doe@snaptrade.com",
285
304
  userSecret: "USERSECRET123",
286
305
  state: "all",
306
+ days: 30,
287
307
  accountId: "accountId_example",
288
308
  });
289
309
  ```
290
310
 
291
- #### ⚙️ Parameters
311
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
292
312
 
293
- ##### userId: `string`
313
+ ##### userId: `string`<a id="userid-string"></a>
294
314
 
295
- ##### userSecret: `string`
315
+ ##### userSecret: `string`<a id="usersecret-string"></a>
296
316
 
297
- ##### accountId: `string`
317
+ ##### accountId: `string`<a id="accountid-string"></a>
298
318
 
299
319
  The ID of the account to get orders.
300
320
 
301
- ##### state: `'all' | 'open' | 'executed'`
321
+ ##### state: `'all' | 'open' | 'executed'`<a id="state-all--open--executed"></a>
302
322
 
303
323
  defaults value is set to \"all\"
304
324
 
305
- #### 🔄 Return
325
+ ##### days: `number`<a id="days-number"></a>
326
+
327
+ Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
328
+
329
+ #### 🔄 Return<a id="🔄-return"></a>
306
330
 
307
331
  [AccountOrderRecord](./models/account-order-record.ts)
308
332
 
309
- #### 🌐 Endpoint
333
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
310
334
 
311
335
  `/accounts/{accountId}/orders` `GET`
312
336
 
@@ -315,11 +339,11 @@ defaults value is set to \"all\"
315
339
  ---
316
340
 
317
341
 
318
- ### `snaptrade.accountInformation.getUserAccountPositions`
342
+ ### `snaptrade.accountInformation.getUserAccountPositions`<a id="snaptradeaccountinformationgetuseraccountpositions"></a>
319
343
 
320
344
  List account positions
321
345
 
322
- #### 🛠️ Usage
346
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
323
347
 
324
348
  ```typescript
325
349
  const getUserAccountPositionsResponse =
@@ -330,21 +354,21 @@ const getUserAccountPositionsResponse =
330
354
  });
331
355
  ```
332
356
 
333
- #### ⚙️ Parameters
357
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
334
358
 
335
- ##### userId: `string`
359
+ ##### userId: `string`<a id="userid-string"></a>
336
360
 
337
- ##### userSecret: `string`
361
+ ##### userSecret: `string`<a id="usersecret-string"></a>
338
362
 
339
- ##### accountId: `string`
363
+ ##### accountId: `string`<a id="accountid-string"></a>
340
364
 
341
365
  The ID of the account to get positions.
342
366
 
343
- #### 🔄 Return
367
+ #### 🔄 Return<a id="🔄-return"></a>
344
368
 
345
369
  [Position](./models/position.ts)
346
370
 
347
- #### 🌐 Endpoint
371
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
348
372
 
349
373
  `/accounts/{accountId}/positions` `GET`
350
374
 
@@ -353,11 +377,11 @@ The ID of the account to get positions.
353
377
  ---
354
378
 
355
379
 
356
- ### `snaptrade.accountInformation.getUserHoldings`
380
+ ### `snaptrade.accountInformation.getUserHoldings`<a id="snaptradeaccountinformationgetuserholdings"></a>
357
381
 
358
382
  List balances, positions and orders for the specified account
359
383
 
360
- #### 🛠️ Usage
384
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
361
385
 
362
386
  ```typescript
363
387
  const getUserHoldingsResponse =
@@ -368,21 +392,21 @@ const getUserHoldingsResponse =
368
392
  });
369
393
  ```
370
394
 
371
- #### ⚙️ Parameters
395
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
372
396
 
373
- ##### accountId: `string`
397
+ ##### accountId: `string`<a id="accountid-string"></a>
374
398
 
375
399
  The ID of the account to fetch holdings for.
376
400
 
377
- ##### userId: `string`
401
+ ##### userId: `string`<a id="userid-string"></a>
378
402
 
379
- ##### userSecret: `string`
403
+ ##### userSecret: `string`<a id="usersecret-string"></a>
380
404
 
381
- #### 🔄 Return
405
+ #### 🔄 Return<a id="🔄-return"></a>
382
406
 
383
407
  [AccountHoldingsAccount](./models/account-holdings-account.ts)
384
408
 
385
- #### 🌐 Endpoint
409
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
386
410
 
387
411
  `/accounts/{accountId}/holdings` `GET`
388
412
 
@@ -391,11 +415,11 @@ The ID of the account to fetch holdings for.
391
415
  ---
392
416
 
393
417
 
394
- ### `snaptrade.accountInformation.listUserAccounts`
418
+ ### `snaptrade.accountInformation.listUserAccounts`<a id="snaptradeaccountinformationlistuseraccounts"></a>
395
419
 
396
420
  List accounts
397
421
 
398
- #### 🛠️ Usage
422
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
399
423
 
400
424
  ```typescript
401
425
  const listUserAccountsResponse =
@@ -405,17 +429,17 @@ const listUserAccountsResponse =
405
429
  });
406
430
  ```
407
431
 
408
- #### ⚙️ Parameters
432
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
409
433
 
410
- ##### userId: `string`
434
+ ##### userId: `string`<a id="userid-string"></a>
411
435
 
412
- ##### userSecret: `string`
436
+ ##### userSecret: `string`<a id="usersecret-string"></a>
413
437
 
414
- #### 🔄 Return
438
+ #### 🔄 Return<a id="🔄-return"></a>
415
439
 
416
440
  [Account](./models/account.ts)
417
441
 
418
- #### 🌐 Endpoint
442
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
419
443
 
420
444
  `/accounts` `GET`
421
445
 
@@ -424,11 +448,11 @@ const listUserAccountsResponse =
424
448
  ---
425
449
 
426
450
 
427
- ### `snaptrade.accountInformation.updateUserAccount`
451
+ ### `snaptrade.accountInformation.updateUserAccount`<a id="snaptradeaccountinformationupdateuseraccount"></a>
428
452
 
429
453
  Update details of an investment account
430
454
 
431
- #### 🛠️ Usage
455
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
432
456
 
433
457
  ```typescript
434
458
  const updateUserAccountResponse =
@@ -439,21 +463,21 @@ const updateUserAccountResponse =
439
463
  });
440
464
  ```
441
465
 
442
- #### ⚙️ Parameters
466
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
443
467
 
444
- ##### userId: `string`
468
+ ##### userId: `string`<a id="userid-string"></a>
445
469
 
446
- ##### userSecret: `string`
470
+ ##### userSecret: `string`<a id="usersecret-string"></a>
447
471
 
448
- ##### accountId: `string`
472
+ ##### accountId: `string`<a id="accountid-string"></a>
449
473
 
450
474
  The ID of the account to update.
451
475
 
452
- #### 🔄 Return
476
+ #### 🔄 Return<a id="🔄-return"></a>
453
477
 
454
478
  [Account](./models/account.ts)
455
479
 
456
- #### 🌐 Endpoint
480
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
457
481
 
458
482
  `/accounts/{accountId}` `PUT`
459
483
 
@@ -462,21 +486,21 @@ The ID of the account to update.
462
486
  ---
463
487
 
464
488
 
465
- ### `snaptrade.apiStatus.check`
489
+ ### `snaptrade.apiStatus.check`<a id="snaptradeapistatuscheck"></a>
466
490
 
467
491
  Check whether the API is operational and verify timestamps.
468
492
 
469
- #### 🛠️ Usage
493
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
470
494
 
471
495
  ```typescript
472
496
  const checkResponse = await snaptrade.apiStatus.check();
473
497
  ```
474
498
 
475
- #### 🔄 Return
499
+ #### 🔄 Return<a id="🔄-return"></a>
476
500
 
477
501
  [Status](./models/status.ts)
478
502
 
479
- #### 🌐 Endpoint
503
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
480
504
 
481
505
  `/` `GET`
482
506
 
@@ -485,11 +509,11 @@ const checkResponse = await snaptrade.apiStatus.check();
485
509
  ---
486
510
 
487
511
 
488
- ### `snaptrade.authentication.deleteSnapTradeUser`
512
+ ### `snaptrade.authentication.deleteSnapTradeUser`<a id="snaptradeauthenticationdeletesnaptradeuser"></a>
489
513
 
490
514
  Deletes a user you\'ve registered over the SnapTrade API, and any data associated with them or their investment accounts.
491
515
 
492
- #### 🛠️ Usage
516
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
493
517
 
494
518
  ```typescript
495
519
  const deleteSnapTradeUserResponse =
@@ -498,15 +522,15 @@ const deleteSnapTradeUserResponse =
498
522
  });
499
523
  ```
500
524
 
501
- #### ⚙️ Parameters
525
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
502
526
 
503
- ##### userId: `string`
527
+ ##### userId: `string`<a id="userid-string"></a>
504
528
 
505
- #### 🔄 Return
529
+ #### 🔄 Return<a id="🔄-return"></a>
506
530
 
507
531
  [DeleteUserResponse](./models/delete-user-response.ts)
508
532
 
509
- #### 🌐 Endpoint
533
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
510
534
 
511
535
  `/snapTrade/deleteUser` `DELETE`
512
536
 
@@ -515,11 +539,11 @@ const deleteSnapTradeUserResponse =
515
539
  ---
516
540
 
517
541
 
518
- ### `snaptrade.authentication.getUserJWT`
542
+ ### `snaptrade.authentication.getUserJWT`<a id="snaptradeauthenticationgetuserjwt"></a>
519
543
 
520
544
  Generate encrypted JWT token
521
545
 
522
- #### 🛠️ Usage
546
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
523
547
 
524
548
  ```typescript
525
549
  const getUserJWTResponse = await snaptrade.authentication.getUserJWT({
@@ -528,13 +552,13 @@ const getUserJWTResponse = await snaptrade.authentication.getUserJWT({
528
552
  });
529
553
  ```
530
554
 
531
- #### ⚙️ Parameters
555
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
532
556
 
533
- ##### userId: `string`
557
+ ##### userId: `string`<a id="userid-string"></a>
534
558
 
535
- ##### userSecret: `string`
559
+ ##### userSecret: `string`<a id="usersecret-string"></a>
536
560
 
537
- #### 🌐 Endpoint
561
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
538
562
 
539
563
  `/snapTrade/encryptedJWT` `GET`
540
564
 
@@ -543,18 +567,18 @@ const getUserJWTResponse = await snaptrade.authentication.getUserJWT({
543
567
  ---
544
568
 
545
569
 
546
- ### `snaptrade.authentication.listSnapTradeUsers`
570
+ ### `snaptrade.authentication.listSnapTradeUsers`<a id="snaptradeauthenticationlistsnaptradeusers"></a>
547
571
 
548
572
  Returns a list of users you\'ve registered over the SnapTrade API.
549
573
 
550
- #### 🛠️ Usage
574
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
551
575
 
552
576
  ```typescript
553
577
  const listSnapTradeUsersResponse =
554
578
  await snaptrade.authentication.listSnapTradeUsers();
555
579
  ```
556
580
 
557
- #### 🌐 Endpoint
581
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
558
582
 
559
583
  `/snapTrade/listUsers` `GET`
560
584
 
@@ -563,11 +587,11 @@ const listSnapTradeUsersResponse =
563
587
  ---
564
588
 
565
589
 
566
- ### `snaptrade.authentication.loginSnapTradeUser`
590
+ ### `snaptrade.authentication.loginSnapTradeUser`<a id="snaptradeauthenticationloginsnaptradeuser"></a>
567
591
 
568
592
  Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
569
593
 
570
- #### 🛠️ Usage
594
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
571
595
 
572
596
  ```typescript
573
597
  const loginSnapTradeUserResponse =
@@ -582,33 +606,33 @@ const loginSnapTradeUserResponse =
582
606
  });
583
607
  ```
584
608
 
585
- #### ⚙️ Parameters
609
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
586
610
 
587
- ##### userId: `string`
611
+ ##### userId: `string`<a id="userid-string"></a>
588
612
 
589
- ##### userSecret: `string`
613
+ ##### userSecret: `string`<a id="usersecret-string"></a>
590
614
 
591
- ##### broker: `string`
615
+ ##### broker: `string`<a id="broker-string"></a>
592
616
 
593
617
  Slug of the brokerage to connect the user to
594
618
 
595
- ##### immediateRedirect: `boolean`
619
+ ##### immediateRedirect: `boolean`<a id="immediateredirect-boolean"></a>
596
620
 
597
621
  When set to True, user will be redirected back to the partner\\\'s site instead of the connection portal
598
622
 
599
- ##### customRedirect: `string`
623
+ ##### customRedirect: `string`<a id="customredirect-string"></a>
600
624
 
601
625
  URL to redirect the user to after the user connects their brokerage account
602
626
 
603
- ##### reconnect: `string`
627
+ ##### reconnect: `string`<a id="reconnect-string"></a>
604
628
 
605
629
  The UUID of the brokerage connection to be reconnected
606
630
 
607
- ##### connectionType: `string`
631
+ ##### connectionType: `string`<a id="connectiontype-string"></a>
608
632
 
609
633
  Sets whether the connection should be read or trade
610
634
 
611
- #### 🌐 Endpoint
635
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
612
636
 
613
637
  `/snapTrade/login` `POST`
614
638
 
@@ -617,11 +641,11 @@ Sets whether the connection should be read or trade
617
641
  ---
618
642
 
619
643
 
620
- ### `snaptrade.authentication.registerSnapTradeUser`
644
+ ### `snaptrade.authentication.registerSnapTradeUser`<a id="snaptradeauthenticationregistersnaptradeuser"></a>
621
645
 
622
646
  Create SnapTrade user
623
647
 
624
- #### 🛠️ Usage
648
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
625
649
 
626
650
  ```typescript
627
651
  const registerSnapTradeUserResponse =
@@ -630,17 +654,17 @@ const registerSnapTradeUserResponse =
630
654
  });
631
655
  ```
632
656
 
633
- #### ⚙️ Parameters
657
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
634
658
 
635
- ##### userId: `string`
659
+ ##### userId: `string`<a id="userid-string"></a>
636
660
 
637
661
  SnapTrade User ID. Provided by SnapTrade Partner. Can be any string, as long as it\\\'s unique to a user
638
662
 
639
- #### 🔄 Return
663
+ #### 🔄 Return<a id="🔄-return"></a>
640
664
 
641
665
  [UserIDandSecret](./models/user-idand-secret.ts)
642
666
 
643
- #### 🌐 Endpoint
667
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
644
668
 
645
669
  `/snapTrade/registerUser` `POST`
646
670
 
@@ -649,11 +673,11 @@ SnapTrade User ID. Provided by SnapTrade Partner. Can be any string, as long as
649
673
  ---
650
674
 
651
675
 
652
- ### `snaptrade.connections.detailBrokerageAuthorization`
676
+ ### `snaptrade.connections.detailBrokerageAuthorization`<a id="snaptradeconnectionsdetailbrokerageauthorization"></a>
653
677
 
654
678
  Get brokerage authorization details
655
679
 
656
- #### 🛠️ Usage
680
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
657
681
 
658
682
  ```typescript
659
683
  const detailBrokerageAuthorizationResponse =
@@ -664,21 +688,21 @@ const detailBrokerageAuthorizationResponse =
664
688
  });
665
689
  ```
666
690
 
667
- #### ⚙️ Parameters
691
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
668
692
 
669
- ##### authorizationId: `string`
693
+ ##### authorizationId: `string`<a id="authorizationid-string"></a>
670
694
 
671
695
  The ID of a brokerage authorization object.
672
696
 
673
- ##### userId: `string`
697
+ ##### userId: `string`<a id="userid-string"></a>
674
698
 
675
- ##### userSecret: `string`
699
+ ##### userSecret: `string`<a id="usersecret-string"></a>
676
700
 
677
- #### 🔄 Return
701
+ #### 🔄 Return<a id="🔄-return"></a>
678
702
 
679
703
  [BrokerageAuthorization](./models/brokerage-authorization.ts)
680
704
 
681
- #### 🌐 Endpoint
705
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
682
706
 
683
707
  `/authorizations/{authorizationId}` `GET`
684
708
 
@@ -687,11 +711,11 @@ The ID of a brokerage authorization object.
687
711
  ---
688
712
 
689
713
 
690
- ### `snaptrade.connections.listBrokerageAuthorizations`
714
+ ### `snaptrade.connections.listBrokerageAuthorizations`<a id="snaptradeconnectionslistbrokerageauthorizations"></a>
691
715
 
692
716
  List all brokerage authorizations for the user
693
717
 
694
- #### 🛠️ Usage
718
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
695
719
 
696
720
  ```typescript
697
721
  const listBrokerageAuthorizationsResponse =
@@ -701,17 +725,17 @@ const listBrokerageAuthorizationsResponse =
701
725
  });
702
726
  ```
703
727
 
704
- #### ⚙️ Parameters
728
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
705
729
 
706
- ##### userId: `string`
730
+ ##### userId: `string`<a id="userid-string"></a>
707
731
 
708
- ##### userSecret: `string`
732
+ ##### userSecret: `string`<a id="usersecret-string"></a>
709
733
 
710
- #### 🔄 Return
734
+ #### 🔄 Return<a id="🔄-return"></a>
711
735
 
712
736
  [BrokerageAuthorization](./models/brokerage-authorization.ts)
713
737
 
714
- #### 🌐 Endpoint
738
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
715
739
 
716
740
  `/authorizations` `GET`
717
741
 
@@ -720,11 +744,11 @@ const listBrokerageAuthorizationsResponse =
720
744
  ---
721
745
 
722
746
 
723
- ### `snaptrade.connections.removeBrokerageAuthorization`
747
+ ### `snaptrade.connections.removeBrokerageAuthorization`<a id="snaptradeconnectionsremovebrokerageauthorization"></a>
724
748
 
725
749
  Delete brokerage authorization
726
750
 
727
- #### 🛠️ Usage
751
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
728
752
 
729
753
  ```typescript
730
754
  const removeBrokerageAuthorizationResponse =
@@ -735,17 +759,17 @@ const removeBrokerageAuthorizationResponse =
735
759
  });
736
760
  ```
737
761
 
738
- #### ⚙️ Parameters
762
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
739
763
 
740
- ##### authorizationId: `string`
764
+ ##### authorizationId: `string`<a id="authorizationid-string"></a>
741
765
 
742
766
  The ID of the Authorization to delete.
743
767
 
744
- ##### userId: `string`
768
+ ##### userId: `string`<a id="userid-string"></a>
745
769
 
746
- ##### userSecret: `string`
770
+ ##### userSecret: `string`<a id="usersecret-string"></a>
747
771
 
748
- #### 🌐 Endpoint
772
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
749
773
 
750
774
  `/authorizations/{authorizationId}` `DELETE`
751
775
 
@@ -754,11 +778,11 @@ The ID of the Authorization to delete.
754
778
  ---
755
779
 
756
780
 
757
- ### `snaptrade.connections.sessionEvents`
781
+ ### `snaptrade.connections.sessionEvents`<a id="snaptradeconnectionssessionevents"></a>
758
782
 
759
783
  List all session events for the partner
760
784
 
761
- #### 🛠️ Usage
785
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
762
786
 
763
787
  ```typescript
764
788
  const sessionEventsResponse = await snaptrade.connections.sessionEvents({
@@ -770,19 +794,19 @@ const sessionEventsResponse = await snaptrade.connections.sessionEvents({
770
794
  });
771
795
  ```
772
796
 
773
- #### ⚙️ Parameters
797
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
774
798
 
775
- ##### partnerClientId: `string`
799
+ ##### partnerClientId: `string`<a id="partnerclientid-string"></a>
776
800
 
777
- ##### userId: `string`
801
+ ##### userId: `string`<a id="userid-string"></a>
778
802
 
779
803
  Optional comma seperated list of user IDs used to filter the request on specific users
780
804
 
781
- ##### sessionId: `string`
805
+ ##### sessionId: `string`<a id="sessionid-string"></a>
782
806
 
783
807
  Optional comma seperated list of session IDs used to filter the request on specific users
784
808
 
785
- #### 🌐 Endpoint
809
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
786
810
 
787
811
  `/sessionEvents` `GET`
788
812
 
@@ -791,11 +815,11 @@ Optional comma seperated list of session IDs used to filter the request on speci
791
815
  ---
792
816
 
793
817
 
794
- ### `snaptrade.errorLogs.listUserErrors`
818
+ ### `snaptrade.errorLogs.listUserErrors`<a id="snaptradeerrorlogslistusererrors"></a>
795
819
 
796
820
  Retrieve error logs on behalf of your SnapTrade users
797
821
 
798
- #### 🛠️ Usage
822
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
799
823
 
800
824
  ```typescript
801
825
  const listUserErrorsResponse = await snaptrade.errorLogs.listUserErrors({
@@ -804,17 +828,17 @@ const listUserErrorsResponse = await snaptrade.errorLogs.listUserErrors({
804
828
  });
805
829
  ```
806
830
 
807
- #### ⚙️ Parameters
831
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
808
832
 
809
- ##### userId: `string`
833
+ ##### userId: `string`<a id="userid-string"></a>
810
834
 
811
- ##### userSecret: `string`
835
+ ##### userSecret: `string`<a id="usersecret-string"></a>
812
836
 
813
- #### 🔄 Return
837
+ #### 🔄 Return<a id="🔄-return"></a>
814
838
 
815
839
  [UserErrorLog](./models/user-error-log.ts)
816
840
 
817
- #### 🌐 Endpoint
841
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
818
842
 
819
843
  `/snapTrade/listUserErrors` `GET`
820
844
 
@@ -823,11 +847,11 @@ const listUserErrorsResponse = await snaptrade.errorLogs.listUserErrors({
823
847
  ---
824
848
 
825
849
 
826
- ### `snaptrade.options.getOptionStrategy`
850
+ ### `snaptrade.options.getOptionStrategy`<a id="snaptradeoptionsgetoptionstrategy"></a>
827
851
 
828
852
  Creates an option strategy object that will be used to place an option strategy order
829
853
 
830
- #### 🛠️ Usage
854
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
831
855
 
832
856
  ```typescript
833
857
  const getOptionStrategyResponse = await snaptrade.options.getOptionStrategy({
@@ -846,28 +870,28 @@ const getOptionStrategyResponse = await snaptrade.options.getOptionStrategy({
846
870
  });
847
871
  ```
848
872
 
849
- #### ⚙️ Parameters
873
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
850
874
 
851
- ##### underlying_symbol_id: `string`
875
+ ##### underlying_symbol_id: `string`<a id="underlying_symbol_id-string"></a>
852
876
 
853
- ##### legs: `OptionLeg`
877
+ ##### legs: `OptionLeg`<a id="legs-optionleg"></a>
854
878
  [`OptionLeg`](./models/option-leg.ts)[]
855
879
 
856
- ##### strategy_type: `string`
880
+ ##### strategy_type: `string`<a id="strategy_type-string"></a>
857
881
 
858
- ##### userId: `string`
882
+ ##### userId: `string`<a id="userid-string"></a>
859
883
 
860
- ##### userSecret: `string`
884
+ ##### userSecret: `string`<a id="usersecret-string"></a>
861
885
 
862
- ##### accountId: `string`
886
+ ##### accountId: `string`<a id="accountid-string"></a>
863
887
 
864
888
  The ID of the account to create the option strategy object in.
865
889
 
866
- #### 🔄 Return
890
+ #### 🔄 Return<a id="🔄-return"></a>
867
891
 
868
892
  [StrategyQuotes](./models/strategy-quotes.ts)
869
893
 
870
- #### 🌐 Endpoint
894
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
871
895
 
872
896
  `/accounts/{accountId}/optionStrategy` `POST`
873
897
 
@@ -876,11 +900,11 @@ The ID of the account to create the option strategy object in.
876
900
  ---
877
901
 
878
902
 
879
- ### `snaptrade.options.getOptionsChain`
903
+ ### `snaptrade.options.getOptionsChain`<a id="snaptradeoptionsgetoptionschain"></a>
880
904
 
881
905
  Get the options chain
882
906
 
883
- #### 🛠️ Usage
907
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
884
908
 
885
909
  ```typescript
886
910
  const getOptionsChainResponse = await snaptrade.options.getOptionsChain({
@@ -891,21 +915,21 @@ const getOptionsChainResponse = await snaptrade.options.getOptionsChain({
891
915
  });
892
916
  ```
893
917
 
894
- #### ⚙️ Parameters
918
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
895
919
 
896
- ##### userId: `string`
920
+ ##### userId: `string`<a id="userid-string"></a>
897
921
 
898
- ##### userSecret: `string`
922
+ ##### userSecret: `string`<a id="usersecret-string"></a>
899
923
 
900
- ##### accountId: `string`
924
+ ##### accountId: `string`<a id="accountid-string"></a>
901
925
 
902
926
  The ID of the account to get the options chain from.
903
927
 
904
- ##### symbol: `string`
928
+ ##### symbol: `string`<a id="symbol-string"></a>
905
929
 
906
930
  Universal symbol ID if symbol
907
931
 
908
- #### 🌐 Endpoint
932
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
909
933
 
910
934
  `/accounts/{accountId}/optionsChain` `GET`
911
935
 
@@ -914,11 +938,11 @@ Universal symbol ID if symbol
914
938
  ---
915
939
 
916
940
 
917
- ### `snaptrade.options.getOptionsStrategyQuote`
941
+ ### `snaptrade.options.getOptionsStrategyQuote`<a id="snaptradeoptionsgetoptionsstrategyquote"></a>
918
942
 
919
943
  Get latest market data of option strategy
920
944
 
921
- #### 🛠️ Usage
945
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
922
946
 
923
947
  ```typescript
924
948
  const getOptionsStrategyQuoteResponse =
@@ -930,25 +954,25 @@ const getOptionsStrategyQuoteResponse =
930
954
  });
931
955
  ```
932
956
 
933
- #### ⚙️ Parameters
957
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
934
958
 
935
- ##### userId: `string`
959
+ ##### userId: `string`<a id="userid-string"></a>
936
960
 
937
- ##### userSecret: `string`
961
+ ##### userSecret: `string`<a id="usersecret-string"></a>
938
962
 
939
- ##### accountId: `string`
963
+ ##### accountId: `string`<a id="accountid-string"></a>
940
964
 
941
965
  The ID of the account the strategy will be placed in.
942
966
 
943
- ##### optionStrategyId: `string`
967
+ ##### optionStrategyId: `string`<a id="optionstrategyid-string"></a>
944
968
 
945
969
  Option strategy id obtained from response when creating option strategy object
946
970
 
947
- #### 🔄 Return
971
+ #### 🔄 Return<a id="🔄-return"></a>
948
972
 
949
973
  [StrategyQuotes](./models/strategy-quotes.ts)
950
974
 
951
- #### 🌐 Endpoint
975
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
952
976
 
953
977
  `/accounts/{accountId}/optionStrategy/{optionStrategyId}` `GET`
954
978
 
@@ -957,11 +981,11 @@ Option strategy id obtained from response when creating option strategy object
957
981
  ---
958
982
 
959
983
 
960
- ### `snaptrade.options.listOptionHoldings`
984
+ ### `snaptrade.options.listOptionHoldings`<a id="snaptradeoptionslistoptionholdings"></a>
961
985
 
962
986
  Get the options holdings in the account
963
987
 
964
- #### 🛠️ Usage
988
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
965
989
 
966
990
  ```typescript
967
991
  const listOptionHoldingsResponse = await snaptrade.options.listOptionHoldings({
@@ -971,21 +995,21 @@ const listOptionHoldingsResponse = await snaptrade.options.listOptionHoldings({
971
995
  });
972
996
  ```
973
997
 
974
- #### ⚙️ Parameters
998
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
975
999
 
976
- ##### userId: `string`
1000
+ ##### userId: `string`<a id="userid-string"></a>
977
1001
 
978
- ##### userSecret: `string`
1002
+ ##### userSecret: `string`<a id="usersecret-string"></a>
979
1003
 
980
- ##### accountId: `string`
1004
+ ##### accountId: `string`<a id="accountid-string"></a>
981
1005
 
982
1006
  The ID of the account to fetch options holdings for.
983
1007
 
984
- #### 🔄 Return
1008
+ #### 🔄 Return<a id="🔄-return"></a>
985
1009
 
986
1010
  [OptionsPosition](./models/options-position.ts)
987
1011
 
988
- #### 🌐 Endpoint
1012
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
989
1013
 
990
1014
  `/accounts/{accountId}/options` `GET`
991
1015
 
@@ -994,11 +1018,11 @@ The ID of the account to fetch options holdings for.
994
1018
  ---
995
1019
 
996
1020
 
997
- ### `snaptrade.options.placeOptionStrategy`
1021
+ ### `snaptrade.options.placeOptionStrategy`<a id="snaptradeoptionsplaceoptionstrategy"></a>
998
1022
 
999
1023
  Place an option strategy order on the brokerage
1000
1024
 
1001
- #### 🛠️ Usage
1025
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1002
1026
 
1003
1027
  ```typescript
1004
1028
  const placeOptionStrategyResponse = await snaptrade.options.placeOptionStrategy(
@@ -1014,33 +1038,33 @@ const placeOptionStrategyResponse = await snaptrade.options.placeOptionStrategy(
1014
1038
  );
1015
1039
  ```
1016
1040
 
1017
- #### ⚙️ Parameters
1041
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1018
1042
 
1019
- ##### order_type:
1043
+ ##### order_type:<a id="order_type"></a>
1020
1044
 
1021
- ##### time_in_force:
1045
+ ##### time_in_force:<a id="time_in_force"></a>
1022
1046
 
1023
- ##### userId: `string`
1047
+ ##### userId: `string`<a id="userid-string"></a>
1024
1048
 
1025
- ##### userSecret: `string`
1049
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1026
1050
 
1027
- ##### accountId: `string`
1051
+ ##### accountId: `string`<a id="accountid-string"></a>
1028
1052
 
1029
1053
  The ID of the account to execute the strategy in.
1030
1054
 
1031
- ##### optionStrategyId: `string`
1055
+ ##### optionStrategyId: `string`<a id="optionstrategyid-string"></a>
1032
1056
 
1033
1057
  Option strategy id obtained from response when creating option strategy object
1034
1058
 
1035
- ##### price: `number`
1059
+ ##### price: `number`<a id="price-number"></a>
1036
1060
 
1037
1061
  Trade Price if limit or stop limit order
1038
1062
 
1039
- #### 🔄 Return
1063
+ #### 🔄 Return<a id="🔄-return"></a>
1040
1064
 
1041
1065
  [StrategyOrderRecord](./models/strategy-order-record.ts)
1042
1066
 
1043
- #### 🌐 Endpoint
1067
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1044
1068
 
1045
1069
  `/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute` `POST`
1046
1070
 
@@ -1049,11 +1073,11 @@ Trade Price if limit or stop limit order
1049
1073
  ---
1050
1074
 
1051
1075
 
1052
- ### `snaptrade.referenceData.getCurrencyExchangeRatePair`
1076
+ ### `snaptrade.referenceData.getCurrencyExchangeRatePair`<a id="snaptradereferencedatagetcurrencyexchangeratepair"></a>
1053
1077
 
1054
1078
  Return the exchange rate of a currency pair
1055
1079
 
1056
- #### 🛠️ Usage
1080
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1057
1081
 
1058
1082
  ```typescript
1059
1083
  const getCurrencyExchangeRatePairResponse =
@@ -1062,17 +1086,17 @@ const getCurrencyExchangeRatePairResponse =
1062
1086
  });
1063
1087
  ```
1064
1088
 
1065
- #### ⚙️ Parameters
1089
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1066
1090
 
1067
- ##### currencyPair: `string`
1091
+ ##### currencyPair: `string`<a id="currencypair-string"></a>
1068
1092
 
1069
1093
  A currency pair based on currency code for example, {CAD-USD}
1070
1094
 
1071
- #### 🔄 Return
1095
+ #### 🔄 Return<a id="🔄-return"></a>
1072
1096
 
1073
1097
  [ExchangeRatePairs](./models/exchange-rate-pairs.ts)
1074
1098
 
1075
- #### 🌐 Endpoint
1099
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1076
1100
 
1077
1101
  `/currencies/rates/{currencyPair}` `GET`
1078
1102
 
@@ -1081,21 +1105,21 @@ A currency pair based on currency code for example, {CAD-USD}
1081
1105
  ---
1082
1106
 
1083
1107
 
1084
- ### `snaptrade.referenceData.getPartnerInfo`
1108
+ ### `snaptrade.referenceData.getPartnerInfo`<a id="snaptradereferencedatagetpartnerinfo"></a>
1085
1109
 
1086
1110
  Get metadata related to Snaptrade partner
1087
1111
 
1088
- #### 🛠️ Usage
1112
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1089
1113
 
1090
1114
  ```typescript
1091
1115
  const getPartnerInfoResponse = await snaptrade.referenceData.getPartnerInfo();
1092
1116
  ```
1093
1117
 
1094
- #### 🔄 Return
1118
+ #### 🔄 Return<a id="🔄-return"></a>
1095
1119
 
1096
1120
  [PartnerData](./models/partner-data.ts)
1097
1121
 
1098
- #### 🌐 Endpoint
1122
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1099
1123
 
1100
1124
  `/snapTrade/partners` `GET`
1101
1125
 
@@ -1104,22 +1128,22 @@ const getPartnerInfoResponse = await snaptrade.referenceData.getPartnerInfo();
1104
1128
  ---
1105
1129
 
1106
1130
 
1107
- ### `snaptrade.referenceData.getSecurityTypes`
1131
+ ### `snaptrade.referenceData.getSecurityTypes`<a id="snaptradereferencedatagetsecuritytypes"></a>
1108
1132
 
1109
1133
  List security types available on SnapTrade.
1110
1134
 
1111
- #### 🛠️ Usage
1135
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1112
1136
 
1113
1137
  ```typescript
1114
1138
  const getSecurityTypesResponse =
1115
1139
  await snaptrade.referenceData.getSecurityTypes();
1116
1140
  ```
1117
1141
 
1118
- #### 🔄 Return
1142
+ #### 🔄 Return<a id="🔄-return"></a>
1119
1143
 
1120
1144
  [SecurityType](./models/security-type.ts)
1121
1145
 
1122
- #### 🌐 Endpoint
1146
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1123
1147
 
1124
1148
  `/securityTypes` `GET`
1125
1149
 
@@ -1128,22 +1152,22 @@ const getSecurityTypesResponse =
1128
1152
  ---
1129
1153
 
1130
1154
 
1131
- ### `snaptrade.referenceData.getStockExchanges`
1155
+ ### `snaptrade.referenceData.getStockExchanges`<a id="snaptradereferencedatagetstockexchanges"></a>
1132
1156
 
1133
1157
  List exchanges
1134
1158
 
1135
- #### 🛠️ Usage
1159
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1136
1160
 
1137
1161
  ```typescript
1138
1162
  const getStockExchangesResponse =
1139
1163
  await snaptrade.referenceData.getStockExchanges();
1140
1164
  ```
1141
1165
 
1142
- #### 🔄 Return
1166
+ #### 🔄 Return<a id="🔄-return"></a>
1143
1167
 
1144
1168
  [Exchange](./models/exchange.ts)
1145
1169
 
1146
- #### 🌐 Endpoint
1170
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1147
1171
 
1148
1172
  `/exchanges` `GET`
1149
1173
 
@@ -1152,11 +1176,11 @@ const getStockExchangesResponse =
1152
1176
  ---
1153
1177
 
1154
1178
 
1155
- ### `snaptrade.referenceData.getSymbols`
1179
+ ### `snaptrade.referenceData.getSymbols`<a id="snaptradereferencedatagetsymbols"></a>
1156
1180
 
1157
1181
  Search for symbols
1158
1182
 
1159
- #### 🛠️ Usage
1183
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1160
1184
 
1161
1185
  ```typescript
1162
1186
  const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
@@ -1164,15 +1188,15 @@ const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
1164
1188
  });
1165
1189
  ```
1166
1190
 
1167
- #### ⚙️ Parameters
1191
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1168
1192
 
1169
- ##### substring: `string`
1193
+ ##### substring: `string`<a id="substring-string"></a>
1170
1194
 
1171
- #### 🔄 Return
1195
+ #### 🔄 Return<a id="🔄-return"></a>
1172
1196
 
1173
1197
  [UniversalSymbol](./models/universal-symbol.ts)
1174
1198
 
1175
- #### 🌐 Endpoint
1199
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1176
1200
 
1177
1201
  `/symbols` `POST`
1178
1202
 
@@ -1181,11 +1205,11 @@ const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
1181
1205
  ---
1182
1206
 
1183
1207
 
1184
- ### `snaptrade.referenceData.getSymbolsByTicker`
1208
+ ### `snaptrade.referenceData.getSymbolsByTicker`<a id="snaptradereferencedatagetsymbolsbyticker"></a>
1185
1209
 
1186
1210
  Get details of a symbol by the ticker
1187
1211
 
1188
- #### 🛠️ Usage
1212
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1189
1213
 
1190
1214
  ```typescript
1191
1215
  const getSymbolsByTickerResponse =
@@ -1194,21 +1218,21 @@ const getSymbolsByTickerResponse =
1194
1218
  });
1195
1219
  ```
1196
1220
 
1197
- #### ⚙️ Parameters
1221
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1198
1222
 
1199
- ##### ticker: `string`
1223
+ ##### ticker: `string`<a id="ticker-string"></a>
1200
1224
 
1201
1225
  The ticker of the UniversalSymbol to get.
1202
1226
 
1203
- ##### symbolId: `string`
1227
+ ##### symbolId: `string`<a id="symbolid-string"></a>
1204
1228
 
1205
1229
  OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
1206
1230
 
1207
- #### 🔄 Return
1231
+ #### 🔄 Return<a id="🔄-return"></a>
1208
1232
 
1209
1233
  [UniversalSymbol](./models/universal-symbol.ts)
1210
1234
 
1211
- #### 🌐 Endpoint
1235
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1212
1236
 
1213
1237
  `/symbols/{ticker}` `GET`
1214
1238
 
@@ -1217,11 +1241,11 @@ OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymb
1217
1241
  ---
1218
1242
 
1219
1243
 
1220
- ### `snaptrade.referenceData.listAllBrokerageAuthorizationType`
1244
+ ### `snaptrade.referenceData.listAllBrokerageAuthorizationType`<a id="snaptradereferencedatalistallbrokerageauthorizationtype"></a>
1221
1245
 
1222
1246
  List of all brokerage authorization types
1223
1247
 
1224
- #### 🛠️ Usage
1248
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1225
1249
 
1226
1250
  ```typescript
1227
1251
  const listAllBrokerageAuthorizationTypeResponse =
@@ -1230,17 +1254,17 @@ const listAllBrokerageAuthorizationTypeResponse =
1230
1254
  });
1231
1255
  ```
1232
1256
 
1233
- #### ⚙️ Parameters
1257
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1234
1258
 
1235
- ##### brokerage: `string`
1259
+ ##### brokerage: `string`<a id="brokerage-string"></a>
1236
1260
 
1237
1261
  Comma separated value of brokerage slugs
1238
1262
 
1239
- #### 🔄 Return
1263
+ #### 🔄 Return<a id="🔄-return"></a>
1240
1264
 
1241
1265
  [BrokerageAuthorizationTypeReadOnly](./models/brokerage-authorization-type-read-only.ts)
1242
1266
 
1243
- #### 🌐 Endpoint
1267
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1244
1268
 
1245
1269
  `/brokerageAuthorizationTypes` `GET`
1246
1270
 
@@ -1249,22 +1273,22 @@ Comma separated value of brokerage slugs
1249
1273
  ---
1250
1274
 
1251
1275
 
1252
- ### `snaptrade.referenceData.listAllBrokerages`
1276
+ ### `snaptrade.referenceData.listAllBrokerages`<a id="snaptradereferencedatalistallbrokerages"></a>
1253
1277
 
1254
1278
  List brokerages
1255
1279
 
1256
- #### 🛠️ Usage
1280
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1257
1281
 
1258
1282
  ```typescript
1259
1283
  const listAllBrokeragesResponse =
1260
1284
  await snaptrade.referenceData.listAllBrokerages();
1261
1285
  ```
1262
1286
 
1263
- #### 🔄 Return
1287
+ #### 🔄 Return<a id="🔄-return"></a>
1264
1288
 
1265
1289
  [Brokerage](./models/brokerage.ts)
1266
1290
 
1267
- #### 🌐 Endpoint
1291
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1268
1292
 
1269
1293
  `/brokerages` `GET`
1270
1294
 
@@ -1273,22 +1297,22 @@ const listAllBrokeragesResponse =
1273
1297
  ---
1274
1298
 
1275
1299
 
1276
- ### `snaptrade.referenceData.listAllCurrencies`
1300
+ ### `snaptrade.referenceData.listAllCurrencies`<a id="snaptradereferencedatalistallcurrencies"></a>
1277
1301
 
1278
1302
  List currencies
1279
1303
 
1280
- #### 🛠️ Usage
1304
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1281
1305
 
1282
1306
  ```typescript
1283
1307
  const listAllCurrenciesResponse =
1284
1308
  await snaptrade.referenceData.listAllCurrencies();
1285
1309
  ```
1286
1310
 
1287
- #### 🔄 Return
1311
+ #### 🔄 Return<a id="🔄-return"></a>
1288
1312
 
1289
1313
  [Currency](./models/currency.ts)
1290
1314
 
1291
- #### 🌐 Endpoint
1315
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1292
1316
 
1293
1317
  `/currencies` `GET`
1294
1318
 
@@ -1297,22 +1321,22 @@ const listAllCurrenciesResponse =
1297
1321
  ---
1298
1322
 
1299
1323
 
1300
- ### `snaptrade.referenceData.listAllCurrenciesRates`
1324
+ ### `snaptrade.referenceData.listAllCurrenciesRates`<a id="snaptradereferencedatalistallcurrenciesrates"></a>
1301
1325
 
1302
1326
  List currency exchange rates
1303
1327
 
1304
- #### 🛠️ Usage
1328
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1305
1329
 
1306
1330
  ```typescript
1307
1331
  const listAllCurrenciesRatesResponse =
1308
1332
  await snaptrade.referenceData.listAllCurrenciesRates();
1309
1333
  ```
1310
1334
 
1311
- #### 🔄 Return
1335
+ #### 🔄 Return<a id="🔄-return"></a>
1312
1336
 
1313
1337
  [ExchangeRatePairs](./models/exchange-rate-pairs.ts)
1314
1338
 
1315
- #### 🌐 Endpoint
1339
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1316
1340
 
1317
1341
  `/currencies/rates` `GET`
1318
1342
 
@@ -1321,11 +1345,11 @@ const listAllCurrenciesRatesResponse =
1321
1345
  ---
1322
1346
 
1323
1347
 
1324
- ### `snaptrade.referenceData.symbolSearchUserAccount`
1348
+ ### `snaptrade.referenceData.symbolSearchUserAccount`<a id="snaptradereferencedatasymbolsearchuseraccount"></a>
1325
1349
 
1326
1350
  Search for symbols available in an account
1327
1351
 
1328
- #### 🛠️ Usage
1352
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1329
1353
 
1330
1354
  ```typescript
1331
1355
  const symbolSearchUserAccountResponse =
@@ -1337,23 +1361,23 @@ const symbolSearchUserAccountResponse =
1337
1361
  });
1338
1362
  ```
1339
1363
 
1340
- #### ⚙️ Parameters
1364
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1341
1365
 
1342
- ##### userId: `string`
1366
+ ##### userId: `string`<a id="userid-string"></a>
1343
1367
 
1344
- ##### userSecret: `string`
1368
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1345
1369
 
1346
- ##### accountId: `string`
1370
+ ##### accountId: `string`<a id="accountid-string"></a>
1347
1371
 
1348
1372
  The ID of the account to search for symbols within.
1349
1373
 
1350
- ##### substring: `string`
1374
+ ##### substring: `string`<a id="substring-string"></a>
1351
1375
 
1352
- #### 🔄 Return
1376
+ #### 🔄 Return<a id="🔄-return"></a>
1353
1377
 
1354
1378
  [UniversalSymbol](./models/universal-symbol.ts)
1355
1379
 
1356
- #### 🌐 Endpoint
1380
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1357
1381
 
1358
1382
  `/accounts/{accountId}/symbols` `POST`
1359
1383
 
@@ -1362,11 +1386,11 @@ The ID of the account to search for symbols within.
1362
1386
  ---
1363
1387
 
1364
1388
 
1365
- ### `snaptrade.trading.cancelUserAccountOrder`
1389
+ ### `snaptrade.trading.cancelUserAccountOrder`<a id="snaptradetradingcanceluseraccountorder"></a>
1366
1390
 
1367
1391
  Cancel open order in account
1368
1392
 
1369
- #### 🛠️ Usage
1393
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1370
1394
 
1371
1395
  ```typescript
1372
1396
  const cancelUserAccountOrderResponse =
@@ -1378,23 +1402,23 @@ const cancelUserAccountOrderResponse =
1378
1402
  });
1379
1403
  ```
1380
1404
 
1381
- #### ⚙️ Parameters
1405
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1382
1406
 
1383
- ##### userId: `string`
1407
+ ##### userId: `string`<a id="userid-string"></a>
1384
1408
 
1385
- ##### userSecret: `string`
1409
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1386
1410
 
1387
- ##### accountId: `string`
1411
+ ##### accountId: `string`<a id="accountid-string"></a>
1388
1412
 
1389
1413
  The ID of the account to cancel the order in.
1390
1414
 
1391
- ##### brokerage_order_id: `string`
1415
+ ##### brokerage_order_id: `string`<a id="brokerage_order_id-string"></a>
1392
1416
 
1393
- #### 🔄 Return
1417
+ #### 🔄 Return<a id="🔄-return"></a>
1394
1418
 
1395
1419
  [AccountOrderRecord](./models/account-order-record.ts)
1396
1420
 
1397
- #### 🌐 Endpoint
1421
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1398
1422
 
1399
1423
  `/accounts/{accountId}/orders/cancel` `POST`
1400
1424
 
@@ -1403,11 +1427,11 @@ The ID of the account to cancel the order in.
1403
1427
  ---
1404
1428
 
1405
1429
 
1406
- ### `snaptrade.trading.getOrderImpact`
1430
+ ### `snaptrade.trading.getOrderImpact`<a id="snaptradetradinggetorderimpact"></a>
1407
1431
 
1408
1432
  Check impact of trades on account.
1409
1433
 
1410
- #### 🛠️ Usage
1434
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1411
1435
 
1412
1436
  ```typescript
1413
1437
  const getOrderImpactResponse = await snaptrade.trading.getOrderImpact({
@@ -1423,39 +1447,39 @@ const getOrderImpactResponse = await snaptrade.trading.getOrderImpact({
1423
1447
  });
1424
1448
  ```
1425
1449
 
1426
- #### ⚙️ Parameters
1450
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1427
1451
 
1428
- ##### userId: `string`
1452
+ ##### userId: `string`<a id="userid-string"></a>
1429
1453
 
1430
- ##### userSecret: `string`
1454
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1431
1455
 
1432
- ##### account_id: `string`
1456
+ ##### account_id: `string`<a id="account_id-string"></a>
1433
1457
 
1434
- ##### action:
1458
+ ##### action:<a id="action"></a>
1435
1459
 
1436
- ##### order_type:
1460
+ ##### order_type:<a id="order_type"></a>
1437
1461
 
1438
- ##### price: `number`
1462
+ ##### price: `number`<a id="price-number"></a>
1439
1463
 
1440
1464
  Trade Price if limit or stop limit order
1441
1465
 
1442
- ##### stop: `number`
1466
+ ##### stop: `number`<a id="stop-number"></a>
1443
1467
 
1444
1468
  Stop Price. If stop loss or stop limit order, the price to trigger the stop
1445
1469
 
1446
- ##### time_in_force:
1470
+ ##### time_in_force:<a id="time_in_force"></a>
1447
1471
 
1448
- ##### units: `number`
1472
+ ##### units: `number`<a id="units-number"></a>
1449
1473
 
1450
1474
  Trade Units
1451
1475
 
1452
- ##### universal_symbol_id: `string`
1476
+ ##### universal_symbol_id: `string`<a id="universal_symbol_id-string"></a>
1453
1477
 
1454
- #### 🔄 Return
1478
+ #### 🔄 Return<a id="🔄-return"></a>
1455
1479
 
1456
1480
  [ManualTradeAndImpact](./models/manual-trade-and-impact.ts)
1457
1481
 
1458
- #### 🌐 Endpoint
1482
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1459
1483
 
1460
1484
  `/trade/impact` `POST`
1461
1485
 
@@ -1464,11 +1488,11 @@ Trade Units
1464
1488
  ---
1465
1489
 
1466
1490
 
1467
- ### `snaptrade.trading.getUserAccountQuotes`
1491
+ ### `snaptrade.trading.getUserAccountQuotes`<a id="snaptradetradinggetuseraccountquotes"></a>
1468
1492
 
1469
1493
  Get symbol quotes
1470
1494
 
1471
- #### 🛠️ Usage
1495
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1472
1496
 
1473
1497
  ```typescript
1474
1498
  const getUserAccountQuotesResponse =
@@ -1480,25 +1504,25 @@ const getUserAccountQuotesResponse =
1480
1504
  });
1481
1505
  ```
1482
1506
 
1483
- #### ⚙️ Parameters
1507
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1484
1508
 
1485
- ##### userId: `string`
1509
+ ##### userId: `string`<a id="userid-string"></a>
1486
1510
 
1487
- ##### userSecret: `string`
1511
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1488
1512
 
1489
- ##### symbols: `string`
1513
+ ##### symbols: `string`<a id="symbols-string"></a>
1490
1514
 
1491
1515
  List of universal_symbol_id or tickers to get quotes for.
1492
1516
 
1493
- ##### accountId: `string`
1517
+ ##### accountId: `string`<a id="accountid-string"></a>
1494
1518
 
1495
1519
  The ID of the account to get quotes.
1496
1520
 
1497
- ##### useTicker: `boolean`
1521
+ ##### useTicker: `boolean`<a id="useticker-boolean"></a>
1498
1522
 
1499
1523
  Should be set to True if providing tickers.
1500
1524
 
1501
- #### 🌐 Endpoint
1525
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1502
1526
 
1503
1527
  `/accounts/{accountId}/quotes` `GET`
1504
1528
 
@@ -1507,11 +1531,11 @@ Should be set to True if providing tickers.
1507
1531
  ---
1508
1532
 
1509
1533
 
1510
- ### `snaptrade.trading.placeForceOrder`
1534
+ ### `snaptrade.trading.placeForceOrder`<a id="snaptradetradingplaceforceorder"></a>
1511
1535
 
1512
1536
  Place a trade with NO validation.
1513
1537
 
1514
- #### 🛠️ Usage
1538
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1515
1539
 
1516
1540
  ```typescript
1517
1541
  const placeForceOrderResponse = await snaptrade.trading.placeForceOrder({
@@ -1527,39 +1551,39 @@ const placeForceOrderResponse = await snaptrade.trading.placeForceOrder({
1527
1551
  });
1528
1552
  ```
1529
1553
 
1530
- #### ⚙️ Parameters
1554
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1531
1555
 
1532
- ##### userId: `string`
1556
+ ##### userId: `string`<a id="userid-string"></a>
1533
1557
 
1534
- ##### userSecret: `string`
1558
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1535
1559
 
1536
- ##### account_id: `string`
1560
+ ##### account_id: `string`<a id="account_id-string"></a>
1537
1561
 
1538
- ##### action:
1562
+ ##### action:<a id="action"></a>
1539
1563
 
1540
- ##### order_type:
1564
+ ##### order_type:<a id="order_type"></a>
1541
1565
 
1542
- ##### price: `number`
1566
+ ##### price: `number`<a id="price-number"></a>
1543
1567
 
1544
1568
  Trade Price if limit or stop limit order
1545
1569
 
1546
- ##### stop: `number`
1570
+ ##### stop: `number`<a id="stop-number"></a>
1547
1571
 
1548
1572
  Stop Price. If stop loss or stop limit order, the price to trigger the stop
1549
1573
 
1550
- ##### time_in_force:
1574
+ ##### time_in_force:<a id="time_in_force"></a>
1551
1575
 
1552
- ##### units: `number`
1576
+ ##### units: `number`<a id="units-number"></a>
1553
1577
 
1554
1578
  Trade Units
1555
1579
 
1556
- ##### universal_symbol_id: `string`
1580
+ ##### universal_symbol_id: `string`<a id="universal_symbol_id-string"></a>
1557
1581
 
1558
- #### 🔄 Return
1582
+ #### 🔄 Return<a id="🔄-return"></a>
1559
1583
 
1560
1584
  [AccountOrderRecord](./models/account-order-record.ts)
1561
1585
 
1562
- #### 🌐 Endpoint
1586
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1563
1587
 
1564
1588
  `/trade/place` `POST`
1565
1589
 
@@ -1568,11 +1592,11 @@ Trade Units
1568
1592
  ---
1569
1593
 
1570
1594
 
1571
- ### `snaptrade.trading.placeOCOOrder`
1595
+ ### `snaptrade.trading.placeOCOOrder`<a id="snaptradetradingplaceocoorder"></a>
1572
1596
 
1573
1597
  Place a OCO (One Cancels Other) order
1574
1598
 
1575
- #### 🛠️ Usage
1599
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1576
1600
 
1577
1601
  ```typescript
1578
1602
  const placeOCOOrderResponse = await snaptrade.trading.placeOCOOrder({
@@ -1581,25 +1605,25 @@ const placeOCOOrderResponse = await snaptrade.trading.placeOCOOrder({
1581
1605
  });
1582
1606
  ```
1583
1607
 
1584
- #### ⚙️ Parameters
1608
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1585
1609
 
1586
- ##### userId: `string`
1610
+ ##### userId: `string`<a id="userid-string"></a>
1587
1611
 
1588
- ##### userSecret: `string`
1612
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1589
1613
 
1590
- ##### first_trade_id:
1614
+ ##### first_trade_id:<a id="first_trade_id"></a>
1591
1615
 
1592
1616
  The ID of first trade object obtained from trade/impact endpoint
1593
1617
 
1594
- ##### second_trade_id:
1618
+ ##### second_trade_id:<a id="second_trade_id"></a>
1595
1619
 
1596
1620
  The ID of second trade object obtained from trade/impact endpoint
1597
1621
 
1598
- #### 🔄 Return
1622
+ #### 🔄 Return<a id="🔄-return"></a>
1599
1623
 
1600
1624
  [AccountOrderRecord](./models/account-order-record.ts)
1601
1625
 
1602
- #### 🌐 Endpoint
1626
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1603
1627
 
1604
1628
  `/trade/oco` `POST`
1605
1629
 
@@ -1608,11 +1632,11 @@ The ID of second trade object obtained from trade/impact endpoint
1608
1632
  ---
1609
1633
 
1610
1634
 
1611
- ### `snaptrade.trading.placeOrder`
1635
+ ### `snaptrade.trading.placeOrder`<a id="snaptradetradingplaceorder"></a>
1612
1636
 
1613
1637
  Place order
1614
1638
 
1615
- #### 🛠️ Usage
1639
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1616
1640
 
1617
1641
  ```typescript
1618
1642
  const placeOrderResponse = await snaptrade.trading.placeOrder({
@@ -1622,21 +1646,21 @@ const placeOrderResponse = await snaptrade.trading.placeOrder({
1622
1646
  });
1623
1647
  ```
1624
1648
 
1625
- #### ⚙️ Parameters
1649
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1626
1650
 
1627
- ##### tradeId: `string`
1651
+ ##### tradeId: `string`<a id="tradeid-string"></a>
1628
1652
 
1629
1653
  The ID of trade object obtained from trade/impact endpoint
1630
1654
 
1631
- ##### userId: `string`
1655
+ ##### userId: `string`<a id="userid-string"></a>
1632
1656
 
1633
- ##### userSecret: `string`
1657
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1634
1658
 
1635
- #### 🔄 Return
1659
+ #### 🔄 Return<a id="🔄-return"></a>
1636
1660
 
1637
1661
  [AccountOrderRecord](./models/account-order-record.ts)
1638
1662
 
1639
- #### 🌐 Endpoint
1663
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1640
1664
 
1641
1665
  `/trade/{tradeId}` `POST`
1642
1666
 
@@ -1645,11 +1669,11 @@ The ID of trade object obtained from trade/impact endpoint
1645
1669
  ---
1646
1670
 
1647
1671
 
1648
- ### `snaptrade.transactionsAndReporting.getActivities`
1672
+ ### `snaptrade.transactionsAndReporting.getActivities`<a id="snaptradetransactionsandreportinggetactivities"></a>
1649
1673
 
1650
1674
  Returns activities (transactions) for a user. Specifing start and end date is highly recommended for better performance
1651
1675
 
1652
- #### 🛠️ Usage
1676
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1653
1677
 
1654
1678
  ```typescript
1655
1679
  const getActivitiesResponse =
@@ -1666,33 +1690,33 @@ const getActivitiesResponse =
1666
1690
  });
1667
1691
  ```
1668
1692
 
1669
- #### ⚙️ Parameters
1693
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1670
1694
 
1671
- ##### userId: `string`
1695
+ ##### userId: `string`<a id="userid-string"></a>
1672
1696
 
1673
- ##### userSecret: `string`
1697
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1674
1698
 
1675
- ##### startDate: `string | Date`
1699
+ ##### startDate: `string | Date`<a id="startdate-string--date"></a>
1676
1700
 
1677
- ##### endDate: `string | Date`
1701
+ ##### endDate: `string | Date`<a id="enddate-string--date"></a>
1678
1702
 
1679
- ##### accounts: `string`
1703
+ ##### accounts: `string`<a id="accounts-string"></a>
1680
1704
 
1681
1705
  Optional comma seperated list of account IDs used to filter the request on specific accounts
1682
1706
 
1683
- ##### brokerageAuthorizations: `string`
1707
+ ##### brokerageAuthorizations: `string`<a id="brokerageauthorizations-string"></a>
1684
1708
 
1685
1709
  Optional comma seperated list of brokerage authorization IDs used to filter the request on only accounts that belong to those authorizations
1686
1710
 
1687
- ##### type: `string`
1711
+ ##### type: `string`<a id="type-string"></a>
1688
1712
 
1689
1713
  Optional comma seperated list of types to filter activities by. This is not an exhaustive list, if we fail to match to these types, we will return the raw description from the brokerage. Potential values include - DIVIDEND - BUY - SELL - CONTRIBUTION - WITHDRAWAL - EXTERNAL_ASSET_TRANSFER_IN - EXTERNAL_ASSET_TRANSFER_OUT - INTERNAL_CASH_TRANSFER_IN - INTERNAL_CASH_TRANSFER_OUT - INTERNAL_ASSET_TRANSFER_IN - INTERNAL_ASSET_TRANSFER_OUT - INTEREST - REBATE - GOV_GRANT - TAX - FEE - REI - FXT
1690
1714
 
1691
- #### 🔄 Return
1715
+ #### 🔄 Return<a id="🔄-return"></a>
1692
1716
 
1693
1717
  [UniversalActivity](./models/universal-activity.ts)
1694
1718
 
1695
- #### 🌐 Endpoint
1719
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1696
1720
 
1697
1721
  `/activities` `GET`
1698
1722
 
@@ -1701,11 +1725,11 @@ Optional comma seperated list of types to filter activities by. This is not an e
1701
1725
  ---
1702
1726
 
1703
1727
 
1704
- ### `snaptrade.transactionsAndReporting.getReportingCustomRange`
1728
+ ### `snaptrade.transactionsAndReporting.getReportingCustomRange`<a id="snaptradetransactionsandreportinggetreportingcustomrange"></a>
1705
1729
 
1706
1730
  Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Total Equity Timeframe and Rate of Returns are experimental and should not be trusted to be 100% accurate
1707
1731
 
1708
- #### 🛠️ Usage
1732
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1709
1733
 
1710
1734
  ```typescript
1711
1735
  const getReportingCustomRangeResponse =
@@ -1721,33 +1745,33 @@ const getReportingCustomRangeResponse =
1721
1745
  });
1722
1746
  ```
1723
1747
 
1724
- #### ⚙️ Parameters
1748
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1725
1749
 
1726
- ##### startDate: `string | Date`
1750
+ ##### startDate: `string | Date`<a id="startdate-string--date"></a>
1727
1751
 
1728
- ##### endDate: `string | Date`
1752
+ ##### endDate: `string | Date`<a id="enddate-string--date"></a>
1729
1753
 
1730
- ##### userId: `string`
1754
+ ##### userId: `string`<a id="userid-string"></a>
1731
1755
 
1732
- ##### userSecret: `string`
1756
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1733
1757
 
1734
- ##### accounts: `string`
1758
+ ##### accounts: `string`<a id="accounts-string"></a>
1735
1759
 
1736
1760
  Optional comma seperated list of account IDs used to filter the request on specific accounts
1737
1761
 
1738
- ##### detailed: `boolean`
1762
+ ##### detailed: `boolean`<a id="detailed-boolean"></a>
1739
1763
 
1740
1764
  Optional, increases frequency of data points for the total value and contribution charts if set to true
1741
1765
 
1742
- ##### frequency: `string`
1766
+ ##### frequency: `string`<a id="frequency-string"></a>
1743
1767
 
1744
1768
  Optional frequency for the rate of return chart (defaults to monthly). Possible values are daily, weekly, monthly, quarterly, yearly.
1745
1769
 
1746
- #### 🔄 Return
1770
+ #### 🔄 Return<a id="🔄-return"></a>
1747
1771
 
1748
1772
  [PerformanceCustom](./models/performance-custom.ts)
1749
1773
 
1750
- #### 🌐 Endpoint
1774
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1751
1775
 
1752
1776
  `/performance/custom` `GET`
1753
1777
 
@@ -1756,5 +1780,5 @@ Optional frequency for the rate of return chart (defaults to monthly). Possible
1756
1780
  ---
1757
1781
 
1758
1782
 
1759
- ## Author
1783
+ ## Author<a id="author"></a>
1760
1784
  This TypeScript package is automatically generated by [Konfig](https://konfigthis.com)