snaptrade-typescript-sdk 9.0.166 → 9.0.167
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 +42 -1
- package/dist/api/options-api-generated.d.ts +61 -0
- package/dist/api/options-api-generated.js +91 -0
- package/dist/browser.js +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/option-quote.d.ts +80 -0
- package/dist/models/option-quote.js +2 -0
- package/dist/operationParameterMap.js +13 -0
- package/package.json +1 -1
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.167/typescript" : param.userAgent;
|
|
36
36
|
this.formDataCtor = param.formDataCtor;
|
|
37
37
|
}
|
|
38
38
|
/**
|
package/dist/models/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export * from './option-chain-inner-chain-per-root-inner';
|
|
|
92
92
|
export * from './option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner';
|
|
93
93
|
export * from './option-impact';
|
|
94
94
|
export * from './option-leg';
|
|
95
|
+
export * from './option-quote';
|
|
95
96
|
export * from './option-strategy';
|
|
96
97
|
export * from './option-strategy-legs-inner';
|
|
97
98
|
export * from './options-position';
|
package/dist/models/index.js
CHANGED
|
@@ -108,6 +108,7 @@ __exportStar(require("./option-chain-inner-chain-per-root-inner"), exports);
|
|
|
108
108
|
__exportStar(require("./option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner"), exports);
|
|
109
109
|
__exportStar(require("./option-impact"), exports);
|
|
110
110
|
__exportStar(require("./option-leg"), exports);
|
|
111
|
+
__exportStar(require("./option-quote"), exports);
|
|
111
112
|
__exportStar(require("./option-strategy"), exports);
|
|
112
113
|
__exportStar(require("./option-strategy-legs-inner"), exports);
|
|
113
114
|
__exportStar(require("./options-position"), exports);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Real-time quote for a single option contract.
|
|
3
|
+
* @export
|
|
4
|
+
* @interface OptionQuote
|
|
5
|
+
*/
|
|
6
|
+
export interface OptionQuote {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
/**
|
|
9
|
+
* The OCC-formatted option symbol.
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof OptionQuote
|
|
12
|
+
*/
|
|
13
|
+
'symbol'?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The best bid price for the option contract.
|
|
16
|
+
* @type {number}
|
|
17
|
+
* @memberof OptionQuote
|
|
18
|
+
*/
|
|
19
|
+
'bid_price'?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The number of contracts available at the bid price.
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof OptionQuote
|
|
24
|
+
*/
|
|
25
|
+
'bid_size'?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The best ask price for the option contract.
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof OptionQuote
|
|
30
|
+
*/
|
|
31
|
+
'ask_price'?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The number of contracts available at the ask price.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof OptionQuote
|
|
36
|
+
*/
|
|
37
|
+
'ask_size'?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The price of the last trade for the option contract.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof OptionQuote
|
|
42
|
+
*/
|
|
43
|
+
'last_price'?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The number of contracts in the last trade.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof OptionQuote
|
|
48
|
+
*/
|
|
49
|
+
'last_size'?: number;
|
|
50
|
+
/**
|
|
51
|
+
* The total number of outstanding contracts.
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof OptionQuote
|
|
54
|
+
*/
|
|
55
|
+
'open_interest'?: number;
|
|
56
|
+
/**
|
|
57
|
+
* The total number of contracts traded during the current session.
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof OptionQuote
|
|
60
|
+
*/
|
|
61
|
+
'volume'?: number;
|
|
62
|
+
/**
|
|
63
|
+
* The implied volatility of the option contract.
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof OptionQuote
|
|
66
|
+
*/
|
|
67
|
+
'implied_volatility'?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The current price of the underlying security.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof OptionQuote
|
|
72
|
+
*/
|
|
73
|
+
'underlying_price'?: number;
|
|
74
|
+
/**
|
|
75
|
+
* The timestamp of the quote.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof OptionQuote
|
|
78
|
+
*/
|
|
79
|
+
'timestamp'?: string | null;
|
|
80
|
+
}
|
|
@@ -385,6 +385,19 @@ exports.operationParameterMap = {
|
|
|
385
385
|
},
|
|
386
386
|
]
|
|
387
387
|
},
|
|
388
|
+
'/marketData/options/quotes-GET': {
|
|
389
|
+
parameters: [
|
|
390
|
+
{
|
|
391
|
+
name: 'userId'
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: 'userSecret'
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: 'symbol'
|
|
398
|
+
},
|
|
399
|
+
]
|
|
400
|
+
},
|
|
388
401
|
'/accounts/{accountId}/optionsChain-GET': {
|
|
389
402
|
parameters: [
|
|
390
403
|
{
|