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.
- package/README.md +23 -16
- package/dist/api/connections-api-generated.d.ts +4 -4
- package/dist/api/connections-api-generated.js +4 -4
- package/dist/api/reference-data-api-generated.d.ts +60 -60
- package/dist/api/reference-data-api-generated.js +60 -60
- package/dist/api/trading-api-generated.d.ts +16 -16
- package/dist/api/trading-api-generated.js +16 -16
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-order-record.d.ts +3 -4
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/manual-trade-form.d.ts +3 -3
- package/dist/models/manual-trade.d.ts +3 -3
- package/dist/models/options-place-option-strategy-request.d.ts +3 -3
- package/dist/models/order-type-strict.d.ts +6 -0
- package/dist/models/strategy-order-record.d.ts +3 -4
- package/package.json +1 -1
- package/dist/models/order-type.d.ts +0 -6
- /package/dist/models/{order-type.js → order-type-strict.js} +0 -0
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/9.0.
|
|
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 {
|
|
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'?:
|
|
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}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -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 {
|
|
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 {
|
|
24
|
+
* @type {OrderTypeStrict}
|
|
25
25
|
* @memberof ManualTradeForm
|
|
26
26
|
*/
|
|
27
|
-
'order_type'?:
|
|
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 {
|
|
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 {
|
|
25
|
+
* @type {OrderTypeStrict}
|
|
26
26
|
* @memberof ManualTrade
|
|
27
27
|
*/
|
|
28
|
-
'order_type'?:
|
|
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 {
|
|
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 {
|
|
11
|
+
* @type {OrderTypeStrict}
|
|
12
12
|
* @memberof OptionsPlaceOptionStrategyRequest
|
|
13
13
|
*/
|
|
14
|
-
'order_type':
|
|
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}
|
|
@@ -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 {
|
|
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'?:
|
|
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
|
File without changes
|