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 +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/brokerage-symbol-option-symbol.d.ts +2 -20
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/options-position-currency.d.ts +35 -0
- package/dist/models/options-position-currency.js +14 -0
- package/dist/models/options-position.d.ts +22 -16
- package/dist/models/options-symbol.d.ts +2 -20
- package/dist/models/position.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -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.
|
|
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 {
|
|
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
|
-
'
|
|
65
|
+
'exchange_id'?: string;
|
|
84
66
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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 {
|
|
12
|
-
import {
|
|
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 {
|
|
22
|
+
* @type {BrokerageSymbol}
|
|
23
23
|
* @memberof OptionsPosition
|
|
24
24
|
*/
|
|
25
|
-
'symbol'?:
|
|
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 {
|
|
34
|
+
* @type {number}
|
|
29
35
|
* @memberof OptionsPosition
|
|
30
36
|
*/
|
|
31
|
-
'
|
|
37
|
+
'units'?: number;
|
|
32
38
|
/**
|
|
33
39
|
*
|
|
34
|
-
* @type {
|
|
40
|
+
* @type {OptionsPositionCurrency}
|
|
35
41
|
* @memberof OptionsPosition
|
|
36
42
|
*/
|
|
37
|
-
'
|
|
43
|
+
'currency'?: OptionsPositionCurrency | null;
|
|
38
44
|
/**
|
|
39
|
-
*
|
|
45
|
+
* Average purchase price for this position
|
|
40
46
|
* @type {number}
|
|
41
47
|
* @memberof OptionsPosition
|
|
42
48
|
*/
|
|
43
|
-
'
|
|
49
|
+
'average_purchase_price'?: number | null;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @type {number}
|
|
47
53
|
* @memberof OptionsPosition
|
|
48
54
|
*/
|
|
49
|
-
'
|
|
55
|
+
'open_pnl'?: number | null;
|
|
50
56
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {
|
|
57
|
+
* Deprecated, use the units field for both fractional and integer units going forward
|
|
58
|
+
* @type {number}
|
|
53
59
|
* @memberof OptionsPosition
|
|
54
60
|
*/
|
|
55
|
-
'
|
|
61
|
+
'fractional_units'?: number | null;
|
|
56
62
|
/**
|
|
57
|
-
*
|
|
63
|
+
* The book price of the asset
|
|
58
64
|
* @type {number}
|
|
59
65
|
* @memberof OptionsPosition
|
|
60
66
|
*/
|
|
61
|
-
'
|
|
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 {
|
|
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
|
-
'
|
|
66
|
+
'exchange_id'?: string;
|
|
85
67
|
}
|