snaptrade-typescript-sdk 9.0.18 → 9.0.20

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.
@@ -32,7 +32,7 @@ class Configuration {
32
32
  this.accessToken = param.accessToken;
33
33
  this.basePath = param.basePath;
34
34
  this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
35
- this.userAgent = param.userAgent === undefined ? "Konfig/9.0.18/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.20/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -1,7 +1,6 @@
1
1
  import { AccountOrderRecordStatus } from './account-order-record-status';
2
2
  import { Action } from './action';
3
3
  import { OptionsSymbol } from './options-symbol';
4
- import { OrderType } from './order-type';
5
4
  import { UniversalSymbol } from './universal-symbol';
6
5
  /**
7
6
  * Record of order in brokerageaccount
@@ -89,11 +88,11 @@ export interface AccountOrderRecord {
89
88
  */
90
89
  'stop_price'?: number | null;
91
90
  /**
92
- * Order Type
93
- * @type {OrderType}
91
+ * Order Type potential values include (but are not limited to) - Limit - Market - StopLimit - StopLoss
92
+ * @type {string}
94
93
  * @memberof AccountOrderRecord
95
94
  */
96
- 'order_type'?: OrderType;
95
+ 'order_type'?: string | null;
97
96
  /**
98
97
  * Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled * GTD - Good Til Date
99
98
  * @type {string}
@@ -66,7 +66,7 @@ export * from './options-place-option-strategy-request';
66
66
  export * from './options-position';
67
67
  export * from './options-position-currency';
68
68
  export * from './options-symbol';
69
- export * from './order-type';
69
+ export * from './order-type-strict';
70
70
  export * from './partner-data';
71
71
  export * from './past-value';
72
72
  export * from './performance-custom';
@@ -82,7 +82,7 @@ __exportStar(require("./options-place-option-strategy-request"), exports);
82
82
  __exportStar(require("./options-position"), exports);
83
83
  __exportStar(require("./options-position-currency"), exports);
84
84
  __exportStar(require("./options-symbol"), exports);
85
- __exportStar(require("./order-type"), exports);
85
+ __exportStar(require("./order-type-strict"), exports);
86
86
  __exportStar(require("./partner-data"), exports);
87
87
  __exportStar(require("./past-value"), exports);
88
88
  __exportStar(require("./performance-custom"), exports);
@@ -1,5 +1,5 @@
1
1
  import { Action } from './action';
2
- import { OrderType } from './order-type';
2
+ import { OrderTypeStrict } from './order-type-strict';
3
3
  import { TimeInForceStrict } from './time-in-force-strict';
4
4
  /**
5
5
  * Manual Trade Form
@@ -21,10 +21,10 @@ export interface ManualTradeForm {
21
21
  'action'?: Action;
22
22
  /**
23
23
  * Order Type
24
- * @type {OrderType}
24
+ * @type {OrderTypeStrict}
25
25
  * @memberof ManualTradeForm
26
26
  */
27
- 'order_type'?: OrderType;
27
+ 'order_type'?: OrderTypeStrict;
28
28
  /**
29
29
  * Trade Price if limit or stop limit order
30
30
  * @type {number}
@@ -1,6 +1,6 @@
1
1
  import { Action } from './action';
2
2
  import { ManualTradeSymbol } from './manual-trade-symbol';
3
- import { OrderType } from './order-type';
3
+ import { OrderTypeStrict } from './order-type-strict';
4
4
  /**
5
5
  * A manual trade object
6
6
  * @export
@@ -22,10 +22,10 @@ export interface ManualTrade {
22
22
  'account'?: string;
23
23
  /**
24
24
  * Order Type
25
- * @type {OrderType}
25
+ * @type {OrderTypeStrict}
26
26
  * @memberof ManualTrade
27
27
  */
28
- 'order_type'?: OrderType;
28
+ 'order_type'?: OrderTypeStrict;
29
29
  /**
30
30
  * Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled * GTD - Good Til Date
31
31
  * @type {string}
@@ -1,4 +1,4 @@
1
- import { OrderType } from './order-type';
1
+ import { OrderTypeStrict } from './order-type-strict';
2
2
  import { TimeInForceStrict } from './time-in-force-strict';
3
3
  /**
4
4
  *
@@ -8,10 +8,10 @@ import { TimeInForceStrict } from './time-in-force-strict';
8
8
  export interface OptionsPlaceOptionStrategyRequest {
9
9
  /**
10
10
  * Order Type
11
- * @type {OrderType}
11
+ * @type {OrderTypeStrict}
12
12
  * @memberof OptionsPlaceOptionStrategyRequest
13
13
  */
14
- 'order_type': OrderType;
14
+ 'order_type': OrderTypeStrict;
15
15
  /**
16
16
  * Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
17
17
  * @type {TimeInForceStrict}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Order Type
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export type OrderTypeStrict = 'Limit' | 'Market' | 'StopLimit' | 'StopLoss';
@@ -1,5 +1,4 @@
1
1
  import { OptionStrategy } from './option-strategy';
2
- import { OrderType } from './order-type';
3
2
  /**
4
3
  * Strategy order record
5
4
  * @export
@@ -38,11 +37,11 @@ export interface StrategyOrderRecord {
38
37
  */
39
38
  'closed_quantity'?: number;
40
39
  /**
41
- * Order Type
42
- * @type {OrderType}
40
+ * Order Type potential values include (but are not limited to) - Limit - Market - StopLimit - StopLoss
41
+ * @type {string}
43
42
  * @memberof StrategyOrderRecord
44
43
  */
45
- 'order_type'?: OrderType;
44
+ 'order_type'?: string | null;
46
45
  /**
47
46
  * Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled * GTD - Good Til Date
48
47
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.18",
3
+ "version": "9.0.20",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {
@@ -1,6 +0,0 @@
1
- /**
2
- * Order Type
3
- * @export
4
- * @enum {string}
5
- */
6
- export type OrderType = 'Limit' | 'Market' | 'StopLimit' | 'StopLoss';