snaptrade-typescript-sdk 8.1.0 → 8.3.0

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.
@@ -1 +1 @@
1
- bb289208-7395-456e-a499-f2a02971d3fc
1
+ 384a136a-3ada-4090-adaf-a280b7b0238b
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## snaptrade-typescript-sdk@8.1.0
1
+ ## snaptrade-typescript-sdk@8.3.0
2
2
  Connect brokerage accounts to your app for live positions and trading
3
3
 
4
4
 
@@ -22,6 +22,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
22
22
  // @ts-ignore
23
23
  import { OptionChainInner } from '../models';
24
24
  // @ts-ignore
25
+ import { OptionLeg } from '../models';
26
+ // @ts-ignore
25
27
  import { OptionsGetOptionStrategyRequest } from '../models';
26
28
  // @ts-ignore
27
29
  import { OptionsHoldings } from '../models';
@@ -26,12 +26,26 @@ import { Balance } from '../models';
26
26
  // @ts-ignore
27
27
  import { CalculatedTrade } from '../models';
28
28
  // @ts-ignore
29
+ import { Currency } from '../models';
30
+ // @ts-ignore
31
+ import { Exchange } from '../models';
32
+ // @ts-ignore
29
33
  import { ExcludedAsset } from '../models';
30
34
  // @ts-ignore
35
+ import { ModelAssetClass } from '../models';
36
+ // @ts-ignore
31
37
  import { ModelAssetClassDetails } from '../models';
32
38
  // @ts-ignore
39
+ import { ModelAssetClassTarget } from '../models';
40
+ // @ts-ignore
41
+ import { ModelPortfolio } from '../models';
42
+ // @ts-ignore
43
+ import { ModelPortfolioAssetClass } from '../models';
44
+ // @ts-ignore
33
45
  import { ModelPortfolioDetails } from '../models';
34
46
  // @ts-ignore
47
+ import { ModelPortfolioSecurity } from '../models';
48
+ // @ts-ignore
35
49
  import { PortfolioGroup } from '../models';
36
50
  // @ts-ignore
37
51
  import { PortfolioGroupInfo } from '../models';
@@ -40,6 +54,8 @@ import { PortfolioGroupPosition } from '../models';
40
54
  // @ts-ignore
41
55
  import { PortfolioGroupSettings } from '../models';
42
56
  // @ts-ignore
57
+ import { SecurityType } from '../models';
58
+ // @ts-ignore
43
59
  import { SymbolQuery } from '../models';
44
60
  // @ts-ignore
45
61
  import { TargetAsset } from '../models';
@@ -20,8 +20,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
20
20
  // @ts-ignore
21
21
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
22
22
  // @ts-ignore
23
+ import { Account } from '../models';
24
+ // @ts-ignore
23
25
  import { AccountOrderRecord } from '../models';
24
26
  // @ts-ignore
27
+ import { Action } from '../models';
28
+ // @ts-ignore
29
+ import { BrokerageSymbol } from '../models';
30
+ // @ts-ignore
25
31
  import { ManualTradeAndImpact } from '../models';
26
32
  // @ts-ignore
27
33
  import { ManualTradeForm } from '../models';
@@ -30,8 +36,12 @@ import { Model400FailedRequestResponse } from '../models';
30
36
  // @ts-ignore
31
37
  import { Model403FailedRequestResponse } from '../models';
32
38
  // @ts-ignore
39
+ import { OrderType } from '../models';
40
+ // @ts-ignore
33
41
  import { SymbolsQuotes } from '../models';
34
42
  // @ts-ignore
43
+ import { TimeInForce } from '../models';
44
+ // @ts-ignore
35
45
  import { Trade } from '../models';
36
46
  // @ts-ignore
37
47
  import { TradeExecutionStatus } from '../models';
@@ -41,6 +51,8 @@ import { TradeImpact } from '../models';
41
51
  import { TradingCancelUserAccountOrderRequest } from '../models';
42
52
  // @ts-ignore
43
53
  import { TradingPlaceOCOOrderRequest } from '../models';
54
+ // @ts-ignore
55
+ import { UniversalSymbol } from '../models';
44
56
  import { paginate } from "../pagination/paginate";
45
57
  import { requestBeforeHook } from '../requestBeforeHook';
46
58
  import { TradingApiCustom } from "./trading-api-custom";
package/configuration.ts CHANGED
@@ -110,7 +110,7 @@ export class Configuration {
110
110
  this.accessToken = param.accessToken;
111
111
  this.basePath = param.basePath;
112
112
  this.baseOptions = param.baseOptions ?? {};
113
- this.userAgent = param.userAgent === undefined ? "Konfig/8.1.0/typescript" : param.userAgent;
113
+ this.userAgent = param.userAgent === undefined ? "Konfig/8.3.0/typescript" : param.userAgent;
114
114
  this.formDataCtor = param.formDataCtor;
115
115
  }
116
116
 
@@ -34,7 +34,7 @@ var Configuration = /** @class */ (function () {
34
34
  this.accessToken = param.accessToken;
35
35
  this.basePath = param.basePath;
36
36
  this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
37
- this.userAgent = param.userAgent === undefined ? "Konfig/8.1.0/typescript" : param.userAgent;
37
+ this.userAgent = param.userAgent === undefined ? "Konfig/8.3.0/typescript" : param.userAgent;
38
38
  this.formDataCtor = param.formDataCtor;
39
39
  }
40
40
  /**
@@ -9,6 +9,7 @@
9
9
  * https://konfigthis.com
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { AccountSyncStatus } from './account-sync-status';
12
13
  import { CashRestriction } from './cash-restriction';
13
14
  /**
14
15
  * SnapTradeUser Investment Account
@@ -73,4 +74,10 @@ export interface Account {
73
74
  * @memberof Account
74
75
  */
75
76
  'cash_restrictions'?: Array<CashRestriction>;
77
+ /**
78
+ *
79
+ * @type {AccountSyncStatus}
80
+ * @memberof Account
81
+ */
82
+ 'sync_status'?: AccountSyncStatus;
76
83
  }
@@ -22,7 +22,7 @@ export interface TransactionsStatus {
22
22
  */
23
23
  'initial_sync_completed'?: boolean;
24
24
  /**
25
- *
25
+ * Date in YYYY-MM-DD format or null
26
26
  * @type {string}
27
27
  * @memberof TransactionsStatus
28
28
  */
package/models/account.ts CHANGED
@@ -12,6 +12,9 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+ // May contain unused imports in some cases
16
+ // @ts-ignore
17
+ import { AccountSyncStatus } from './account-sync-status';
15
18
  // May contain unused imports in some cases
16
19
  // @ts-ignore
17
20
  import { CashRestriction } from './cash-restriction';
@@ -78,5 +81,11 @@ export interface Account {
78
81
  * @memberof Account
79
82
  */
80
83
  'cash_restrictions'?: Array<CashRestriction>;
84
+ /**
85
+ *
86
+ * @type {AccountSyncStatus}
87
+ * @memberof Account
88
+ */
89
+ 'sync_status'?: AccountSyncStatus;
81
90
  }
82
91
 
@@ -26,7 +26,7 @@ export interface TransactionsStatus {
26
26
  */
27
27
  'initial_sync_completed'?: boolean;
28
28
  /**
29
- *
29
+ * Date in YYYY-MM-DD format or null
30
30
  * @type {string}
31
31
  * @memberof TransactionsStatus
32
32
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "8.1.0",
3
+ "version": "8.3.0",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {