snaptrade-typescript-sdk 8.13.0 → 8.15.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # snaptrade-typescript-sdk@8.13.0
1
+ # snaptrade-typescript-sdk@8.15.0
2
2
 
3
3
  Connect brokerage accounts to your app for live positions and trading
4
4
  ## Installing
@@ -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.13.0/typescript" : param.userAgent;
37
+ this.userAgent = param.userAgent === undefined ? "Konfig/8.15.0/typescript" : param.userAgent;
38
38
  this.formDataCtor = param.formDataCtor;
39
39
  }
40
40
  /**
@@ -87,19 +87,19 @@ export interface AccountOrderRecord {
87
87
  * @type {number}
88
88
  * @memberof AccountOrderRecord
89
89
  */
90
- 'execution_price'?: number;
90
+ 'execution_price'?: number | null;
91
91
  /**
92
92
  * Trade Price if limit or stop limit order
93
93
  * @type {number}
94
94
  * @memberof AccountOrderRecord
95
95
  */
96
- 'limit_price'?: number;
96
+ 'limit_price'?: number | null;
97
97
  /**
98
98
  * Trade Price if limit or stop limit order
99
99
  * @type {number}
100
100
  * @memberof AccountOrderRecord
101
101
  */
102
- 'stop_price'?: number;
102
+ 'stop_price'?: number | null;
103
103
  /**
104
104
  *
105
105
  * @type {OrderType}
@@ -41,7 +41,7 @@ export interface ManualTradeForm {
41
41
  * @type {number}
42
42
  * @memberof ManualTradeForm
43
43
  */
44
- 'price'?: number;
44
+ 'price'?: number | null;
45
45
  /**
46
46
  * Stop Price. If stop loss or stop limit order, the price to trigger the stop
47
47
  * @type {number}
@@ -9,7 +9,6 @@
9
9
  * https://konfigthis.com
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Account } from './account';
13
12
  import { Action } from './action';
14
13
  import { ManualTradeSymbol } from './manual-trade-symbol';
15
14
  import { OrderType } from './order-type';
@@ -29,10 +28,10 @@ export interface ManualTrade {
29
28
  'id'?: string;
30
29
  /**
31
30
  *
32
- * @type {Account}
31
+ * @type {string}
33
32
  * @memberof ManualTrade
34
33
  */
35
- 'account'?: Account;
34
+ 'account'?: string;
36
35
  /**
37
36
  *
38
37
  * @type {OrderType}
@@ -68,5 +67,5 @@ export interface ManualTrade {
68
67
  * @type {number}
69
68
  * @memberof ManualTrade
70
69
  */
71
- 'price'?: number;
70
+ 'price'?: number | null;
72
71
  }
@@ -41,7 +41,7 @@ export interface OptionsHoldings {
41
41
  * @type {number}
42
42
  * @memberof OptionsHoldings
43
43
  */
44
- 'price'?: number;
44
+ 'price'?: number | null;
45
45
  /**
46
46
  *
47
47
  * @type {Currency}
@@ -32,7 +32,7 @@ export interface OptionsPlaceOptionStrategyRequest {
32
32
  * @type {number}
33
33
  * @memberof OptionsPlaceOptionStrategyRequest
34
34
  */
35
- 'price': number;
35
+ 'price': number | null;
36
36
  }
37
37
  type OptionsPlaceOptionStrategyRequestOrderTypeEnum = 'Limit' | 'Market' | 'NetDebit' | 'NetCredit';
38
38
  type OptionsPlaceOptionStrategyRequestTimeInForceEnum = 'DAY' | 'GTC';
@@ -41,7 +41,7 @@ export interface OptionsPosition {
41
41
  * @type {number}
42
42
  * @memberof OptionsPosition
43
43
  */
44
- 'price'?: number;
44
+ 'price'?: number | null;
45
45
  /**
46
46
  *
47
47
  * @type {number}
@@ -64,13 +64,13 @@ export interface StrategyOrderRecord {
64
64
  * @type {number}
65
65
  * @memberof StrategyOrderRecord
66
66
  */
67
- 'limit_price'?: number;
67
+ 'limit_price'?: number | null;
68
68
  /**
69
69
  * Trade Price if limit or stop limit order
70
70
  * @type {number}
71
71
  * @memberof StrategyOrderRecord
72
72
  */
73
- 'execution_price'?: number;
73
+ 'execution_price'?: number | null;
74
74
  /**
75
75
  * Time
76
76
  * @type {string}
@@ -29,19 +29,19 @@ export interface StrategyQuotes {
29
29
  * @type {number}
30
30
  * @memberof StrategyQuotes
31
31
  */
32
- 'open_price'?: number;
32
+ 'open_price'?: number | null;
33
33
  /**
34
34
  * Trade Price if limit or stop limit order
35
35
  * @type {number}
36
36
  * @memberof StrategyQuotes
37
37
  */
38
- 'bid_price'?: number;
38
+ 'bid_price'?: number | null;
39
39
  /**
40
40
  * Trade Price if limit or stop limit order
41
41
  * @type {number}
42
42
  * @memberof StrategyQuotes
43
43
  */
44
- 'ask_price'?: number;
44
+ 'ask_price'?: number | null;
45
45
  /**
46
46
  *
47
47
  * @type {number}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "8.13.0",
3
+ "version": "8.15.0",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {