snaptrade-typescript-sdk 9.0.178 → 9.0.180
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 +46 -46
- package/dist/api/account-information-api-generated.d.ts +12 -12
- package/dist/api/api-status-api-generated.d.ts +1 -1
- package/dist/api/authentication-api-generated.d.ts +5 -5
- package/dist/api/connections-api-generated.d.ts +8 -8
- package/dist/api/experimental-endpoints-api-generated.d.ts +4 -4
- package/dist/api/options-api-generated.d.ts +1 -69
- package/dist/api/options-api-generated.js +0 -95
- package/dist/api/reference-data-api-generated.d.ts +12 -12
- package/dist/api/trading-api-generated.d.ts +82 -14
- package/dist/api/trading-api-generated.js +95 -0
- package/dist/api/transactions-and-reporting-api-generated.d.ts +2 -2
- package/dist/browser.js +1 -1
- package/dist/browser.js.LICENSE.txt +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-order-record.d.ts +3 -3
- package/dist/models/account-universal-activity.d.ts +1 -1
- package/dist/models/order-updated-response-order.d.ts +3 -3
- package/dist/models/snap-trade-login-user-request-body.d.ts +1 -1
- package/dist/operationParameterMap.js +16 -16
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.14.0 Copyright (c) 2026 Matt Zabriskie and contributors */
|
package/dist/common.d.ts
CHANGED
|
@@ -57,5 +57,5 @@ export declare const removeTrailingSlash: (url: string) => string;
|
|
|
57
57
|
*
|
|
58
58
|
* @export
|
|
59
59
|
*/
|
|
60
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
60
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
61
61
|
export declare function isBrowser(): boolean;
|
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.180/typescript" : param.userAgent;
|
|
36
36
|
this.formDataCtor = param.formDataCtor;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -78,19 +78,19 @@ export interface AccountOrderRecord {
|
|
|
78
78
|
*/
|
|
79
79
|
'filled_quantity'?: string | null;
|
|
80
80
|
/**
|
|
81
|
-
* The price at which the order was executed.
|
|
81
|
+
* The price at which the order was executed. For option orders, this represents the price per share.
|
|
82
82
|
* @type {number}
|
|
83
83
|
* @memberof AccountOrderRecord
|
|
84
84
|
*/
|
|
85
85
|
'execution_price'?: number | null;
|
|
86
86
|
/**
|
|
87
|
-
* The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
|
|
87
|
+
* The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
88
88
|
* @type {number}
|
|
89
89
|
* @memberof AccountOrderRecord
|
|
90
90
|
*/
|
|
91
91
|
'limit_price'?: number | null;
|
|
92
92
|
/**
|
|
93
|
-
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
|
|
93
|
+
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
94
94
|
* @type {number}
|
|
95
95
|
* @memberof AccountOrderRecord
|
|
96
96
|
*/
|
|
@@ -27,7 +27,7 @@ export interface AccountUniversalActivity {
|
|
|
27
27
|
*/
|
|
28
28
|
'option_symbol'?: AccountUniversalActivityOptionSymbol | null;
|
|
29
29
|
/**
|
|
30
|
-
* The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
|
|
30
|
+
* The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions. For option transactions, this represents the price per share of the option contract.
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @memberof AccountUniversalActivity
|
|
33
33
|
*/
|
|
@@ -77,19 +77,19 @@ export interface OrderUpdatedResponseOrder {
|
|
|
77
77
|
*/
|
|
78
78
|
'filled_quantity'?: string | null;
|
|
79
79
|
/**
|
|
80
|
-
* The price at which the order was executed.
|
|
80
|
+
* The price at which the order was executed. For option orders, this represents the price per share.
|
|
81
81
|
* @type {number}
|
|
82
82
|
* @memberof OrderUpdatedResponseOrder
|
|
83
83
|
*/
|
|
84
84
|
'execution_price'?: number | null;
|
|
85
85
|
/**
|
|
86
|
-
* The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
|
|
86
|
+
* The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
87
87
|
* @type {number}
|
|
88
88
|
* @memberof OrderUpdatedResponseOrder
|
|
89
89
|
*/
|
|
90
90
|
'limit_price'?: number | null;
|
|
91
91
|
/**
|
|
92
|
-
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
|
|
92
|
+
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
93
93
|
* @type {number}
|
|
94
94
|
* @memberof OrderUpdatedResponseOrder
|
|
95
95
|
*/
|
|
@@ -47,7 +47,7 @@ export interface SnapTradeLoginUserRequestBody {
|
|
|
47
47
|
*/
|
|
48
48
|
'darkMode'?: boolean;
|
|
49
49
|
/**
|
|
50
|
-
* Sets the connection portal version to render. Currently only v4 is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
50
|
+
* Sets the connection portal version to render. Currently only `v4` is supported and is the default. All other versions are deprecated and will automatically be set to v4.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof SnapTradeLoginUserRequestBody
|
|
53
53
|
*/
|
|
@@ -411,22 +411,6 @@ exports.operationParameterMap = {
|
|
|
411
411
|
},
|
|
412
412
|
]
|
|
413
413
|
},
|
|
414
|
-
'/accounts/{accountId}/quotes/options-GET': {
|
|
415
|
-
parameters: [
|
|
416
|
-
{
|
|
417
|
-
name: 'userId'
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
name: 'userSecret'
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
name: 'accountId'
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
name: 'symbol'
|
|
427
|
-
},
|
|
428
|
-
]
|
|
429
|
-
},
|
|
430
414
|
'/accounts/{accountId}/options-GET': {
|
|
431
415
|
parameters: [
|
|
432
416
|
{
|
|
@@ -625,6 +609,22 @@ exports.operationParameterMap = {
|
|
|
625
609
|
},
|
|
626
610
|
]
|
|
627
611
|
},
|
|
612
|
+
'/accounts/{accountId}/quotes/options-GET': {
|
|
613
|
+
parameters: [
|
|
614
|
+
{
|
|
615
|
+
name: 'userId'
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
name: 'userSecret'
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
name: 'accountId'
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
name: 'symbol'
|
|
625
|
+
},
|
|
626
|
+
]
|
|
627
|
+
},
|
|
628
628
|
'/accounts/{accountId}/quotes-GET': {
|
|
629
629
|
parameters: [
|
|
630
630
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snaptrade-typescript-sdk",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.180",
|
|
4
4
|
"description": "Client for SnapTrade",
|
|
5
5
|
"author": "Konfig",
|
|
6
6
|
"engines": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "jest"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"axios": "1.
|
|
34
|
+
"axios": "1.14.0"
|
|
35
35
|
},
|
|
36
36
|
"resolutions": {
|
|
37
37
|
"semver": "^7.5.2",
|