snaptrade-typescript-sdk 8.29.2 → 8.29.4
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 +373 -349
- package/dist/api/account-information-api-generated.d.ts +12 -5
- package/dist/api/account-information-api-generated.js +10 -6
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/options-place-option-strategy-request.d.ts +7 -8
- package/dist/models/strategy-order-record.d.ts +6 -6
- package/package.json +3 -2
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.29.
|
|
35
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/8.29.4/typescript" : param.userAgent;
|
|
36
36
|
this.formDataCtor = param.formDataCtor;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { OrderType } from './order-type';
|
|
2
|
+
import { TimeInForce } from './time-in-force';
|
|
1
3
|
/**
|
|
2
4
|
*
|
|
3
5
|
* @export
|
|
@@ -6,23 +8,20 @@
|
|
|
6
8
|
export interface OptionsPlaceOptionStrategyRequest {
|
|
7
9
|
/**
|
|
8
10
|
*
|
|
9
|
-
* @type {
|
|
11
|
+
* @type {OrderType}
|
|
10
12
|
* @memberof OptionsPlaceOptionStrategyRequest
|
|
11
13
|
*/
|
|
12
|
-
'order_type':
|
|
14
|
+
'order_type': OrderType;
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
15
|
-
* @type {
|
|
17
|
+
* @type {TimeInForce}
|
|
16
18
|
* @memberof OptionsPlaceOptionStrategyRequest
|
|
17
19
|
*/
|
|
18
|
-
'time_in_force':
|
|
20
|
+
'time_in_force': TimeInForce;
|
|
19
21
|
/**
|
|
20
22
|
* Trade Price if limit or stop limit order
|
|
21
23
|
* @type {number}
|
|
22
24
|
* @memberof OptionsPlaceOptionStrategyRequest
|
|
23
25
|
*/
|
|
24
|
-
'price'
|
|
26
|
+
'price'?: number | null;
|
|
25
27
|
}
|
|
26
|
-
type OptionsPlaceOptionStrategyRequestOrderTypeEnum = 'Limit' | 'Market' | 'NetDebit' | 'NetCredit';
|
|
27
|
-
type OptionsPlaceOptionStrategyRequestTimeInForceEnum = 'DAY' | 'GTC';
|
|
28
|
-
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { OptionStrategy } from './option-strategy';
|
|
2
|
+
import { OrderType } from './order-type';
|
|
3
|
+
import { TimeInForce } from './time-in-force';
|
|
2
4
|
/**
|
|
3
5
|
* Strategy order record
|
|
4
6
|
* @export
|
|
@@ -38,16 +40,16 @@ export interface StrategyOrderRecord {
|
|
|
38
40
|
'closed_quantity'?: number;
|
|
39
41
|
/**
|
|
40
42
|
*
|
|
41
|
-
* @type {
|
|
43
|
+
* @type {OrderType}
|
|
42
44
|
* @memberof StrategyOrderRecord
|
|
43
45
|
*/
|
|
44
|
-
'order_type'?:
|
|
46
|
+
'order_type'?: OrderType;
|
|
45
47
|
/**
|
|
46
48
|
*
|
|
47
|
-
* @type {
|
|
49
|
+
* @type {TimeInForce}
|
|
48
50
|
* @memberof StrategyOrderRecord
|
|
49
51
|
*/
|
|
50
|
-
'time_in_force'?:
|
|
52
|
+
'time_in_force'?: TimeInForce;
|
|
51
53
|
/**
|
|
52
54
|
* Trade Price if limit or stop limit order
|
|
53
55
|
* @type {number}
|
|
@@ -74,6 +76,4 @@ export interface StrategyOrderRecord {
|
|
|
74
76
|
'time_updated'?: string;
|
|
75
77
|
}
|
|
76
78
|
type StrategyOrderRecordStatusEnum = 'PENDING' | 'ACCEPTED' | 'FAILED' | 'REJECTED' | 'CANCELED' | 'PARTIAL_CANCELED' | 'CANCEL_PENDING' | 'EXECUTED' | 'PARTIAL' | 'REPLACE_PENDING' | 'REPLACED' | 'STOPPED' | 'SUSPENDED' | 'EXPIRED' | 'QUEUED' | 'TRIGGERED' | 'ACTIVATED' | 'PENDING_RISK_REVIEW' | 'CONTINGENT_ORDER';
|
|
77
|
-
type StrategyOrderRecordOrderTypeEnum = 'Limit' | 'Market' | 'NetDebit' | 'NetCredit';
|
|
78
|
-
type StrategyOrderRecordTimeInForceEnum = 'DAY' | 'GTC';
|
|
79
79
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snaptrade-typescript-sdk",
|
|
3
|
-
"version": "8.29.
|
|
3
|
+
"version": "8.29.4",
|
|
4
4
|
"description": "Client for SnapTrade",
|
|
5
5
|
"author": "Konfig",
|
|
6
6
|
"engines": {
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"axios": "0.27.2"
|
|
33
33
|
},
|
|
34
34
|
"resolutions": {
|
|
35
|
-
"semver": "^7.5.2"
|
|
35
|
+
"semver": "^7.5.2",
|
|
36
|
+
"@babel/traverse": "^7.23.2"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@types/jest": "^29.2.4",
|