snaptrade-typescript-sdk 12.2.6 → 12.2.8
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 +64 -66
- package/dist/browser.umd.js +1 -1
- package/dist/index.cjs +122 -122
- package/dist/index.d.cts +73 -73
- package/dist/index.d.mts +73 -73
- package/dist/index.d.ts +73 -73
- package/dist/index.mjs +122 -122
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2823,6 +2823,79 @@ const ConnectionsApiAxiosParamCreator = function(configuration) {
|
|
|
2823
2823
|
};
|
|
2824
2824
|
},
|
|
2825
2825
|
/**
|
|
2826
|
+
* Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
2827
|
+
* @summary List accounts for a connection (discriminated union)
|
|
2828
|
+
* @param {string} connectionId
|
|
2829
|
+
* @param {string} [userId]
|
|
2830
|
+
* @param {string} [userSecret]
|
|
2831
|
+
* @param {*} [options] Override http request option.
|
|
2832
|
+
* @throws {RequiredError}
|
|
2833
|
+
*/
|
|
2834
|
+
listConnectionAccounts: async (connectionId, userId, userSecret, options = {}) => {
|
|
2835
|
+
assertParamExists("listConnectionAccounts", "connectionId", connectionId);
|
|
2836
|
+
const localVarPath = `/connections/{connectionId}/accounts`.replace(`{connectionId}`, encodeURIComponent(String(connectionId !== void 0 ? connectionId : `-connectionId-`)));
|
|
2837
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2838
|
+
let baseOptions;
|
|
2839
|
+
if (configuration) baseOptions = configuration.baseOptions;
|
|
2840
|
+
const localVarRequestOptions = {
|
|
2841
|
+
method: "GET",
|
|
2842
|
+
...baseOptions,
|
|
2843
|
+
...options
|
|
2844
|
+
};
|
|
2845
|
+
const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
|
|
2846
|
+
const localVarQueryParameter = {};
|
|
2847
|
+
if (configuration?.authMode === "commercialApiKey") {
|
|
2848
|
+
await setApiKeyToObject({
|
|
2849
|
+
object: localVarQueryParameter,
|
|
2850
|
+
key: "clientId",
|
|
2851
|
+
keyParamName: "clientId",
|
|
2852
|
+
configuration
|
|
2853
|
+
});
|
|
2854
|
+
if (userId !== void 0) localVarQueryParameter["userId"] = userId;
|
|
2855
|
+
if (userSecret !== void 0) localVarQueryParameter["userSecret"] = userSecret;
|
|
2856
|
+
}
|
|
2857
|
+
if (configuration?.authMode === "personalApiKey") await setApiKeyToObject({
|
|
2858
|
+
object: localVarQueryParameter,
|
|
2859
|
+
key: "clientId",
|
|
2860
|
+
keyParamName: "clientId",
|
|
2861
|
+
configuration
|
|
2862
|
+
});
|
|
2863
|
+
const localVarOperationAuth = {
|
|
2864
|
+
authModes: ["commercialApiKey", "personalApiKey"],
|
|
2865
|
+
requestSigningByAuthMode: {
|
|
2866
|
+
"commercialApiKey": {
|
|
2867
|
+
secretParameter: "consumerKey",
|
|
2868
|
+
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
2869
|
+
},
|
|
2870
|
+
"personalApiKey": {
|
|
2871
|
+
secretParameter: "consumerKey",
|
|
2872
|
+
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
selectedAuthMode: configuration?.authMode
|
|
2876
|
+
};
|
|
2877
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2878
|
+
localVarRequestOptions.headers = {
|
|
2879
|
+
...localVarHeaderParameter,
|
|
2880
|
+
...headersFromBaseOptions,
|
|
2881
|
+
...options.headers
|
|
2882
|
+
};
|
|
2883
|
+
requestBeforeHook({
|
|
2884
|
+
queryParameters: localVarQueryParameter,
|
|
2885
|
+
requestConfig: localVarRequestOptions,
|
|
2886
|
+
path: localVarPath,
|
|
2887
|
+
configuration,
|
|
2888
|
+
pathTemplate: "/connections/{connectionId}/accounts",
|
|
2889
|
+
httpMethod: "GET",
|
|
2890
|
+
operationAuth: localVarOperationAuth
|
|
2891
|
+
});
|
|
2892
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2893
|
+
return {
|
|
2894
|
+
url: toPathString(localVarUrlObj),
|
|
2895
|
+
options: localVarRequestOptions
|
|
2896
|
+
};
|
|
2897
|
+
},
|
|
2898
|
+
/**
|
|
2826
2899
|
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Real-time plans (Personal and Pay as you go) unless SnapTrade uses delayed data for the connection. Real-time connections do not benefit from this feature since data is refreshed when calls are made. Refer to `data_freshness_mode.snaptrade` on a connection to determine this.**
|
|
2827
2900
|
* @summary Refresh holdings for a connection
|
|
2828
2901
|
* @param {string} authorizationId
|
|
@@ -3168,6 +3241,29 @@ const ConnectionsApiFp = function(configuration) {
|
|
|
3168
3241
|
});
|
|
3169
3242
|
},
|
|
3170
3243
|
/**
|
|
3244
|
+
* Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
3245
|
+
* @summary List accounts for a connection (discriminated union)
|
|
3246
|
+
* @param {ConnectionsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
3247
|
+
* @param {*} [options] Override http request option.
|
|
3248
|
+
* @throws {RequiredError}
|
|
3249
|
+
*/
|
|
3250
|
+
async listConnectionAccounts(...args) {
|
|
3251
|
+
const [requestParameters = {}, options] = args;
|
|
3252
|
+
return createRequestFunction(await localVarAxiosParamCreator.listConnectionAccounts(requestParameters.connectionId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
3253
|
+
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3254
|
+
requestSigningByAuthMode: {
|
|
3255
|
+
"commercialApiKey": {
|
|
3256
|
+
secretParameter: "consumerKey",
|
|
3257
|
+
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
3258
|
+
},
|
|
3259
|
+
"personalApiKey": {
|
|
3260
|
+
secretParameter: "consumerKey",
|
|
3261
|
+
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
});
|
|
3265
|
+
},
|
|
3266
|
+
/**
|
|
3171
3267
|
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Real-time plans (Personal and Pay as you go) unless SnapTrade uses delayed data for the connection. Real-time connections do not benefit from this feature since data is refreshed when calls are made. Refer to `data_freshness_mode.snaptrade` on a connection to determine this.**
|
|
3172
3268
|
* @summary Refresh holdings for a connection
|
|
3173
3269
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -3296,6 +3392,16 @@ const ConnectionsApiFactory = function(configuration, basePath, axios$5) {
|
|
|
3296
3392
|
return localVarFp.listBrokerageAuthorizations(...args).then((request) => request(axios$5, basePath));
|
|
3297
3393
|
},
|
|
3298
3394
|
/**
|
|
3395
|
+
* Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
3396
|
+
* @summary List accounts for a connection (discriminated union)
|
|
3397
|
+
* @param {ConnectionsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
3398
|
+
* @param {*} [options] Override http request option.
|
|
3399
|
+
* @throws {RequiredError}
|
|
3400
|
+
*/
|
|
3401
|
+
listConnectionAccounts(...args) {
|
|
3402
|
+
return localVarFp.listConnectionAccounts(...args).then((request) => request(axios$5, basePath));
|
|
3403
|
+
},
|
|
3404
|
+
/**
|
|
3299
3405
|
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Real-time plans (Personal and Pay as you go) unless SnapTrade uses delayed data for the connection. Real-time connections do not benefit from this feature since data is refreshed when calls are made. Refer to `data_freshness_mode.snaptrade` on a connection to determine this.**
|
|
3300
3406
|
* @summary Refresh holdings for a connection
|
|
3301
3407
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -3390,6 +3496,17 @@ var ConnectionsApiGenerated = class extends BaseAPI {
|
|
|
3390
3496
|
return ConnectionsApiFp(this.configuration).listBrokerageAuthorizations(...args).then((request) => request(this.axios, this.basePath));
|
|
3391
3497
|
}
|
|
3392
3498
|
/**
|
|
3499
|
+
* Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
3500
|
+
* @summary List accounts for a connection (discriminated union)
|
|
3501
|
+
* @param {ConnectionsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
3502
|
+
* @param {*} [options] Override http request option.
|
|
3503
|
+
* @throws {RequiredError}
|
|
3504
|
+
* @memberof ConnectionsApiGenerated
|
|
3505
|
+
*/
|
|
3506
|
+
listConnectionAccounts(...args) {
|
|
3507
|
+
return ConnectionsApiFp(this.configuration).listConnectionAccounts(...args).then((request) => request(this.axios, this.basePath));
|
|
3508
|
+
}
|
|
3509
|
+
/**
|
|
3393
3510
|
* Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Real-time plans (Personal and Pay as you go) unless SnapTrade uses delayed data for the connection. Real-time connections do not benefit from this feature since data is refreshed when calls are made. Refer to `data_freshness_mode.snaptrade` on a connection to determine this.**
|
|
3394
3511
|
* @summary Refresh holdings for a connection
|
|
3395
3512
|
* @param {ConnectionsApiRefreshBrokerageAuthorizationRequest<TAuth>} requestParameters Request parameters.
|
|
@@ -3808,79 +3925,6 @@ const ExperimentalEndpointsApiAxiosParamCreator = function(configuration) {
|
|
|
3808
3925
|
};
|
|
3809
3926
|
},
|
|
3810
3927
|
/**
|
|
3811
|
-
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
3812
|
-
* @summary List accounts for a connection (discriminated union)
|
|
3813
|
-
* @param {string} connectionId
|
|
3814
|
-
* @param {string} [userId]
|
|
3815
|
-
* @param {string} [userSecret]
|
|
3816
|
-
* @param {*} [options] Override http request option.
|
|
3817
|
-
* @throws {RequiredError}
|
|
3818
|
-
*/
|
|
3819
|
-
listConnectionAccounts: async (connectionId, userId, userSecret, options = {}) => {
|
|
3820
|
-
assertParamExists("listConnectionAccounts", "connectionId", connectionId);
|
|
3821
|
-
const localVarPath = `/connections/{connectionId}/accounts`.replace(`{connectionId}`, encodeURIComponent(String(connectionId !== void 0 ? connectionId : `-connectionId-`)));
|
|
3822
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3823
|
-
let baseOptions;
|
|
3824
|
-
if (configuration) baseOptions = configuration.baseOptions;
|
|
3825
|
-
const localVarRequestOptions = {
|
|
3826
|
-
method: "GET",
|
|
3827
|
-
...baseOptions,
|
|
3828
|
-
...options
|
|
3829
|
-
};
|
|
3830
|
-
const localVarHeaderParameter = configuration && !isBrowser() ? { "User-Agent": configuration.userAgent } : {};
|
|
3831
|
-
const localVarQueryParameter = {};
|
|
3832
|
-
if (configuration?.authMode === "commercialApiKey") {
|
|
3833
|
-
await setApiKeyToObject({
|
|
3834
|
-
object: localVarQueryParameter,
|
|
3835
|
-
key: "clientId",
|
|
3836
|
-
keyParamName: "clientId",
|
|
3837
|
-
configuration
|
|
3838
|
-
});
|
|
3839
|
-
if (userId !== void 0) localVarQueryParameter["userId"] = userId;
|
|
3840
|
-
if (userSecret !== void 0) localVarQueryParameter["userSecret"] = userSecret;
|
|
3841
|
-
}
|
|
3842
|
-
if (configuration?.authMode === "personalApiKey") await setApiKeyToObject({
|
|
3843
|
-
object: localVarQueryParameter,
|
|
3844
|
-
key: "clientId",
|
|
3845
|
-
keyParamName: "clientId",
|
|
3846
|
-
configuration
|
|
3847
|
-
});
|
|
3848
|
-
const localVarOperationAuth = {
|
|
3849
|
-
authModes: ["commercialApiKey", "personalApiKey"],
|
|
3850
|
-
requestSigningByAuthMode: {
|
|
3851
|
-
"commercialApiKey": {
|
|
3852
|
-
secretParameter: "consumerKey",
|
|
3853
|
-
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
3854
|
-
},
|
|
3855
|
-
"personalApiKey": {
|
|
3856
|
-
secretParameter: "consumerKey",
|
|
3857
|
-
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
3858
|
-
}
|
|
3859
|
-
},
|
|
3860
|
-
selectedAuthMode: configuration?.authMode
|
|
3861
|
-
};
|
|
3862
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3863
|
-
localVarRequestOptions.headers = {
|
|
3864
|
-
...localVarHeaderParameter,
|
|
3865
|
-
...headersFromBaseOptions,
|
|
3866
|
-
...options.headers
|
|
3867
|
-
};
|
|
3868
|
-
requestBeforeHook({
|
|
3869
|
-
queryParameters: localVarQueryParameter,
|
|
3870
|
-
requestConfig: localVarRequestOptions,
|
|
3871
|
-
path: localVarPath,
|
|
3872
|
-
configuration,
|
|
3873
|
-
pathTemplate: "/connections/{connectionId}/accounts",
|
|
3874
|
-
httpMethod: "GET",
|
|
3875
|
-
operationAuth: localVarOperationAuth
|
|
3876
|
-
});
|
|
3877
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3878
|
-
return {
|
|
3879
|
-
url: toPathString(localVarUrlObj),
|
|
3880
|
-
options: localVarRequestOptions
|
|
3881
|
-
};
|
|
3882
|
-
},
|
|
3883
|
-
/**
|
|
3884
3928
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
3885
3929
|
* @summary List active Trade Detection subscriptions
|
|
3886
3930
|
* @param {*} [options] Override http request option.
|
|
@@ -4075,29 +4119,6 @@ const ExperimentalEndpointsApiFp = function(configuration) {
|
|
|
4075
4119
|
});
|
|
4076
4120
|
},
|
|
4077
4121
|
/**
|
|
4078
|
-
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
4079
|
-
* @summary List accounts for a connection (discriminated union)
|
|
4080
|
-
* @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4081
|
-
* @param {*} [options] Override http request option.
|
|
4082
|
-
* @throws {RequiredError}
|
|
4083
|
-
*/
|
|
4084
|
-
async listConnectionAccounts(...args) {
|
|
4085
|
-
const [requestParameters = {}, options] = args;
|
|
4086
|
-
return createRequestFunction(await localVarAxiosParamCreator.listConnectionAccounts(requestParameters.connectionId, requestParameters.userId, requestParameters.userSecret, options), axios.default, BASE_PATH, configuration, {
|
|
4087
|
-
authModes: ["commercialApiKey", "personalApiKey"],
|
|
4088
|
-
requestSigningByAuthMode: {
|
|
4089
|
-
"commercialApiKey": {
|
|
4090
|
-
secretParameter: "consumerKey",
|
|
4091
|
-
signedSecuritySchemes: ["PartnerSignature", "PartnerTimestamp"]
|
|
4092
|
-
},
|
|
4093
|
-
"personalApiKey": {
|
|
4094
|
-
secretParameter: "consumerKey",
|
|
4095
|
-
signedSecuritySchemes: ["PersonalSignature", "PersonalTimestamp"]
|
|
4096
|
-
}
|
|
4097
|
-
}
|
|
4098
|
-
});
|
|
4099
|
-
},
|
|
4100
|
-
/**
|
|
4101
4122
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
4102
4123
|
* @summary List active Trade Detection subscriptions
|
|
4103
4124
|
* @param {*} [options] Override http request option.
|
|
@@ -4179,16 +4200,6 @@ const ExperimentalEndpointsApiFactory = function(configuration, basePath, axios$
|
|
|
4179
4200
|
return localVarFp.getUserAccountRecentOrdersV2(...args).then((request) => request(axios$4, basePath));
|
|
4180
4201
|
},
|
|
4181
4202
|
/**
|
|
4182
|
-
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
4183
|
-
* @summary List accounts for a connection (discriminated union)
|
|
4184
|
-
* @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4185
|
-
* @param {*} [options] Override http request option.
|
|
4186
|
-
* @throws {RequiredError}
|
|
4187
|
-
*/
|
|
4188
|
-
listConnectionAccounts(...args) {
|
|
4189
|
-
return localVarFp.listConnectionAccounts(...args).then((request) => request(axios$4, basePath));
|
|
4190
|
-
},
|
|
4191
|
-
/**
|
|
4192
4203
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
4193
4204
|
* @summary List active Trade Detection subscriptions
|
|
4194
4205
|
* @param {*} [options] Override http request option.
|
|
@@ -4262,17 +4273,6 @@ var ExperimentalEndpointsApiGenerated = class extends BaseAPI {
|
|
|
4262
4273
|
return ExperimentalEndpointsApiFp(this.configuration).getUserAccountRecentOrdersV2(...args).then((request) => request(this.axios, this.basePath));
|
|
4263
4274
|
}
|
|
4264
4275
|
/**
|
|
4265
|
-
* Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account\'s opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
4266
|
-
* @summary List accounts for a connection (discriminated union)
|
|
4267
|
-
* @param {ExperimentalEndpointsApiListConnectionAccountsRequest<TAuth>} requestParameters Request parameters.
|
|
4268
|
-
* @param {*} [options] Override http request option.
|
|
4269
|
-
* @throws {RequiredError}
|
|
4270
|
-
* @memberof ExperimentalEndpointsApiGenerated
|
|
4271
|
-
*/
|
|
4272
|
-
listConnectionAccounts(...args) {
|
|
4273
|
-
return ExperimentalEndpointsApiFp(this.configuration).listConnectionAccounts(...args).then((request) => request(this.axios, this.basePath));
|
|
4274
|
-
}
|
|
4275
|
-
/**
|
|
4276
4276
|
* Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
4277
4277
|
* @summary List active Trade Detection subscriptions
|
|
4278
4278
|
* @param {*} [options] Override http request option.
|
|
@@ -4494,7 +4494,7 @@ const ReferenceDataApiAxiosParamCreator = function(configuration) {
|
|
|
4494
4494
|
};
|
|
4495
4495
|
},
|
|
4496
4496
|
/**
|
|
4497
|
-
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
4497
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade\'s canonical dotted form: use `HBND.U.TO` (not Yahoo\'s `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
4498
4498
|
* @summary Get symbol detail
|
|
4499
4499
|
* @param {string} query The ticker or Universal Symbol ID to look up the symbol with.
|
|
4500
4500
|
* @param {*} [options] Override http request option.
|
|
@@ -4914,7 +4914,7 @@ const ReferenceDataApiFp = function(configuration) {
|
|
|
4914
4914
|
});
|
|
4915
4915
|
},
|
|
4916
4916
|
/**
|
|
4917
|
-
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
4917
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade\'s canonical dotted form: use `HBND.U.TO` (not Yahoo\'s `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
4918
4918
|
* @summary Get symbol detail
|
|
4919
4919
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest<TAuth>} requestParameters Request parameters.
|
|
4920
4920
|
* @param {*} [options] Override http request option.
|
|
@@ -5066,7 +5066,7 @@ const ReferenceDataApiFactory = function(configuration, basePath, axios$3) {
|
|
|
5066
5066
|
return localVarFp.getSymbols(...args).then((request) => request(axios$3, basePath));
|
|
5067
5067
|
},
|
|
5068
5068
|
/**
|
|
5069
|
-
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
5069
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade\'s canonical dotted form: use `HBND.U.TO` (not Yahoo\'s `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
5070
5070
|
* @summary Get symbol detail
|
|
5071
5071
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest<TAuth>} requestParameters Request parameters.
|
|
5072
5072
|
* @param {*} [options] Override http request option.
|
|
@@ -5155,7 +5155,7 @@ var ReferenceDataApiGenerated = class extends BaseAPI {
|
|
|
5155
5155
|
return ReferenceDataApiFp(this.configuration).getSymbols(...args).then((request) => request(this.axios, this.basePath));
|
|
5156
5156
|
}
|
|
5157
5157
|
/**
|
|
5158
|
-
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
5158
|
+
* Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade\'s canonical dotted form: use `HBND.U.TO` (not Yahoo\'s `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
5159
5159
|
* @summary Get symbol detail
|
|
5160
5160
|
* @param {ReferenceDataApiGetSymbolsByTickerRequest<TAuth>} requestParameters Request parameters.
|
|
5161
5161
|
* @param {*} [options] Override http request option.
|
|
@@ -7080,7 +7080,7 @@ var Configuration = class {
|
|
|
7080
7080
|
}
|
|
7081
7081
|
this.basePath = param.basePath;
|
|
7082
7082
|
this.baseOptions = param.baseOptions ?? {};
|
|
7083
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.
|
|
7083
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/12.2.8/typescript" : param.userAgent;
|
|
7084
7084
|
this.formDataCtor = param.formDataCtor;
|
|
7085
7085
|
}
|
|
7086
7086
|
/**
|