snaptrade-typescript-sdk 8.21.0 → 8.22.0
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
CHANGED
|
@@ -13,8 +13,8 @@ import { Configuration } from '../configuration';
|
|
|
13
13
|
import { RequestArgs, BaseAPI } from '../base';
|
|
14
14
|
import { OptionChainInner } from '../models';
|
|
15
15
|
import { OptionsGetOptionStrategyRequest } from '../models';
|
|
16
|
-
import { OptionsHoldings } from '../models';
|
|
17
16
|
import { OptionsPlaceOptionStrategyRequest } from '../models';
|
|
17
|
+
import { OptionsPosition } from '../models';
|
|
18
18
|
import { StrategyOrderRecord } from '../models';
|
|
19
19
|
import { StrategyQuotes } from '../models';
|
|
20
20
|
/**
|
|
@@ -114,7 +114,7 @@ export declare const OptionsApiFp: (configuration?: Configuration) => {
|
|
|
114
114
|
* @param {*} [options] Override http request option.
|
|
115
115
|
* @throws {RequiredError}
|
|
116
116
|
*/
|
|
117
|
-
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
117
|
+
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionsPosition>>>;
|
|
118
118
|
/**
|
|
119
119
|
*
|
|
120
120
|
* @summary Place an option strategy order on the brokerage
|
|
@@ -160,7 +160,7 @@ export declare const OptionsApiFactory: (configuration?: Configuration, basePath
|
|
|
160
160
|
* @param {*} [options] Override http request option.
|
|
161
161
|
* @throws {RequiredError}
|
|
162
162
|
*/
|
|
163
|
-
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<
|
|
163
|
+
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<OptionsPosition>>;
|
|
164
164
|
/**
|
|
165
165
|
*
|
|
166
166
|
* @summary Place an option strategy order on the brokerage
|
|
@@ -355,7 +355,7 @@ export declare class OptionsApiGenerated extends BaseAPI {
|
|
|
355
355
|
* @throws {RequiredError}
|
|
356
356
|
* @memberof OptionsApiGenerated
|
|
357
357
|
*/
|
|
358
|
-
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
358
|
+
listOptionHoldings(requestParameters: OptionsApiListOptionHoldingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionsPosition[], any>>;
|
|
359
359
|
/**
|
|
360
360
|
*
|
|
361
361
|
* @summary Place an option strategy order on the brokerage
|
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.
|
|
35
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/8.22.0/typescript" : param.userAgent;
|
|
36
36
|
this.formDataCtor = param.formDataCtor;
|
|
37
37
|
}
|
|
38
38
|
/**
|