snaptrade-typescript-sdk 8.25.0 → 8.26.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.25.0
1
+ # snaptrade-typescript-sdk@8.26.0
2
2
 
3
3
  Connect brokerage accounts to your app for live positions and trading
4
4
  ## Installing
@@ -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/8.25.0/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/8.26.0/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -59,26 +59,8 @@ export interface BrokerageSymbolOptionSymbol {
59
59
  'local_id'?: string;
60
60
  /**
61
61
  *
62
- * @type {any}
63
- * @memberof BrokerageSymbolOptionSymbol
64
- */
65
- 'security_type'?: any;
66
- /**
67
- *
68
- * @type {any}
69
- * @memberof BrokerageSymbolOptionSymbol
70
- */
71
- 'listing_exchange'?: any;
72
- /**
73
- *
74
- * @type {boolean}
75
- * @memberof BrokerageSymbolOptionSymbol
76
- */
77
- 'is_quotable'?: boolean;
78
- /**
79
- *
80
- * @type {boolean}
62
+ * @type {string}
81
63
  * @memberof BrokerageSymbolOptionSymbol
82
64
  */
83
- 'is_tradable'?: boolean;
65
+ 'exchange_id'?: string;
84
66
  }
@@ -59,6 +59,7 @@ export * from './options-get-option-strategy-request';
59
59
  export * from './options-holdings';
60
60
  export * from './options-place-option-strategy-request';
61
61
  export * from './options-position';
62
+ export * from './options-position-currency';
62
63
  export * from './options-symbol';
63
64
  export * from './order-type';
64
65
  export * from './partner-data';
@@ -75,6 +75,7 @@ __exportStar(require("./options-get-option-strategy-request"), exports);
75
75
  __exportStar(require("./options-holdings"), exports);
76
76
  __exportStar(require("./options-place-option-strategy-request"), exports);
77
77
  __exportStar(require("./options-position"), exports);
78
+ __exportStar(require("./options-position-currency"), exports);
78
79
  __exportStar(require("./options-symbol"), exports);
79
80
  __exportStar(require("./order-type"), exports);
80
81
  __exportStar(require("./partner-data"), exports);
@@ -0,0 +1,35 @@
1
+ /**
2
+ * SnapTrade
3
+ * Connect brokerage accounts to your app for live positions and trading
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: api@snaptrade.com
7
+ *
8
+ * NOTE: This file is auto generated by Konfig (https://konfigthis.com).
9
+ * Do not edit the class manually.
10
+ */
11
+ /**
12
+ *
13
+ * @export
14
+ * @interface OptionsPositionCurrency
15
+ */
16
+ export interface OptionsPositionCurrency {
17
+ /**
18
+ *
19
+ * @type {string}
20
+ * @memberof OptionsPositionCurrency
21
+ */
22
+ 'id'?: string;
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof OptionsPositionCurrency
27
+ */
28
+ 'code'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof OptionsPositionCurrency
33
+ */
34
+ 'name'?: string;
35
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * SnapTrade
6
+ * Connect brokerage accounts to your app for live positions and trading
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: api@snaptrade.com
10
+ *
11
+ * NOTE: This file is auto generated by Konfig (https://konfigthis.com).
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,8 +8,8 @@
8
8
  * NOTE: This file is auto generated by Konfig (https://konfigthis.com).
9
9
  * Do not edit the class manually.
10
10
  */
11
- import { Currency } from './currency';
12
- import { OptionsSymbol } from './options-symbol';
11
+ import { BrokerageSymbol } from './brokerage-symbol';
12
+ import { OptionsPositionCurrency } from './options-position-currency';
13
13
  /**
14
14
  * Option Holdings
15
15
  * @export
@@ -19,44 +19,50 @@ export interface OptionsPosition {
19
19
  [key: string]: any;
20
20
  /**
21
21
  *
22
- * @type {string}
22
+ * @type {BrokerageSymbol}
23
23
  * @memberof OptionsPosition
24
24
  */
25
- 'symbol'?: string;
25
+ 'symbol'?: BrokerageSymbol;
26
+ /**
27
+ * Trade Price if limit or stop limit order
28
+ * @type {number}
29
+ * @memberof OptionsPosition
30
+ */
31
+ 'price'?: number | null;
26
32
  /**
27
33
  *
28
- * @type {string}
34
+ * @type {number}
29
35
  * @memberof OptionsPosition
30
36
  */
31
- 'description'?: string;
37
+ 'units'?: number;
32
38
  /**
33
39
  *
34
- * @type {OptionsSymbol}
40
+ * @type {OptionsPositionCurrency}
35
41
  * @memberof OptionsPosition
36
42
  */
37
- 'option_symbol'?: OptionsSymbol;
43
+ 'currency'?: OptionsPositionCurrency | null;
38
44
  /**
39
- * Trade Price if limit or stop limit order
45
+ * Average purchase price for this position
40
46
  * @type {number}
41
47
  * @memberof OptionsPosition
42
48
  */
43
- 'price'?: number | null;
49
+ 'average_purchase_price'?: number | null;
44
50
  /**
45
51
  *
46
52
  * @type {number}
47
53
  * @memberof OptionsPosition
48
54
  */
49
- 'units'?: number;
55
+ 'open_pnl'?: number | null;
50
56
  /**
51
- *
52
- * @type {Currency}
57
+ * Deprecated, use the units field for both fractional and integer units going forward
58
+ * @type {number}
53
59
  * @memberof OptionsPosition
54
60
  */
55
- 'currency'?: Currency;
61
+ 'fractional_units'?: number | null;
56
62
  /**
57
- * Average purchase price for this position
63
+ * The book price of the asset
58
64
  * @type {number}
59
65
  * @memberof OptionsPosition
60
66
  */
61
- 'average_purchase_price'?: number | null;
67
+ 'book_price'?: number | null;
62
68
  }
@@ -60,26 +60,8 @@ export interface OptionsSymbol {
60
60
  'local_id'?: string;
61
61
  /**
62
62
  *
63
- * @type {any}
64
- * @memberof OptionsSymbol
65
- */
66
- 'security_type'?: any;
67
- /**
68
- *
69
- * @type {any}
70
- * @memberof OptionsSymbol
71
- */
72
- 'listing_exchange'?: any;
73
- /**
74
- *
75
- * @type {boolean}
76
- * @memberof OptionsSymbol
77
- */
78
- 'is_quotable'?: boolean;
79
- /**
80
- *
81
- * @type {boolean}
63
+ * @type {string}
82
64
  * @memberof OptionsSymbol
83
65
  */
84
- 'is_tradable'?: boolean;
66
+ 'exchange_id'?: string;
85
67
  }
@@ -52,4 +52,10 @@ export interface Position {
52
52
  * @memberof Position
53
53
  */
54
54
  'average_purchase_price'?: number | null;
55
+ /**
56
+ * The book price of the asset
57
+ * @type {number}
58
+ * @memberof Position
59
+ */
60
+ 'book_price'?: number | null;
55
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "8.25.0",
3
+ "version": "8.26.0",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {