snaptrade-typescript-sdk 9.0.14 → 9.0.16

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.
@@ -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.14/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.16/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -1,6 +1,7 @@
1
1
  import { Currency } from './currency';
2
2
  import { Exchange } from './exchange';
3
3
  import { SecurityType } from './security-type';
4
+ import { SymbolFigiInstrument } from './symbol-figi-instrument';
4
5
  /**
5
6
  *
6
7
  * @export
@@ -61,4 +62,10 @@ export interface BrokerageSymbolSymbol {
61
62
  * @memberof BrokerageSymbolSymbol
62
63
  */
63
64
  'figi_code'?: string | null;
65
+ /**
66
+ *
67
+ * @type {SymbolFigiInstrument}
68
+ * @memberof BrokerageSymbolSymbol
69
+ */
70
+ 'figi_instrument'?: SymbolFigiInstrument | null;
64
71
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Open FIGI Identifiers
3
+ * @export
4
+ * @interface FigiInstrument
5
+ */
6
+ export interface FigiInstrument {
7
+ [key: string]: any;
8
+ /**
9
+ *
10
+ * @type {string}
11
+ * @memberof FigiInstrument
12
+ */
13
+ 'figi_code'?: string | null;
14
+ /**
15
+ *
16
+ * @type {string}
17
+ * @memberof FigiInstrument
18
+ */
19
+ 'figi_share_class'?: string | null;
20
+ }
@@ -31,6 +31,7 @@ export * from './encrypted-response-encrypted-message-data';
31
31
  export * from './exchange';
32
32
  export * from './exchange-rate-pairs';
33
33
  export * from './excluded-asset';
34
+ export * from './figi-instrument';
34
35
  export * from './jwt';
35
36
  export * from './login-redirect-uri';
36
37
  export * from './manual-trade';
@@ -95,6 +96,7 @@ export * from './strategy-quotes';
95
96
  export * from './strategy-quotes-greek';
96
97
  export * from './sub-period-return-rate';
97
98
  export * from './symbol';
99
+ export * from './symbol-figi-instrument';
98
100
  export * from './symbol-query';
99
101
  export * from './symbols-quotes-inner';
100
102
  export * from './target-asset';
@@ -103,7 +105,6 @@ export * from './trade';
103
105
  export * from './trade-execution-status';
104
106
  export * from './trade-impact';
105
107
  export * from './trading-cancel-user-account-order-request';
106
- export * from './trading-place-ocoorder-request';
107
108
  export * from './transactions-status';
108
109
  export * from './usexchange';
109
110
  export * from './underlying-symbol';
@@ -47,6 +47,7 @@ __exportStar(require("./encrypted-response-encrypted-message-data"), exports);
47
47
  __exportStar(require("./exchange"), exports);
48
48
  __exportStar(require("./exchange-rate-pairs"), exports);
49
49
  __exportStar(require("./excluded-asset"), exports);
50
+ __exportStar(require("./figi-instrument"), exports);
50
51
  __exportStar(require("./jwt"), exports);
51
52
  __exportStar(require("./login-redirect-uri"), exports);
52
53
  __exportStar(require("./manual-trade"), exports);
@@ -111,6 +112,7 @@ __exportStar(require("./strategy-quotes"), exports);
111
112
  __exportStar(require("./strategy-quotes-greek"), exports);
112
113
  __exportStar(require("./sub-period-return-rate"), exports);
113
114
  __exportStar(require("./symbol"), exports);
115
+ __exportStar(require("./symbol-figi-instrument"), exports);
114
116
  __exportStar(require("./symbol-query"), exports);
115
117
  __exportStar(require("./symbols-quotes-inner"), exports);
116
118
  __exportStar(require("./target-asset"), exports);
@@ -119,7 +121,6 @@ __exportStar(require("./trade"), exports);
119
121
  __exportStar(require("./trade-execution-status"), exports);
120
122
  __exportStar(require("./trade-impact"), exports);
121
123
  __exportStar(require("./trading-cancel-user-account-order-request"), exports);
122
- __exportStar(require("./trading-place-ocoorder-request"), exports);
123
124
  __exportStar(require("./transactions-status"), exports);
124
125
  __exportStar(require("./usexchange"), exports);
125
126
  __exportStar(require("./underlying-symbol"), exports);
@@ -0,0 +1,19 @@
1
+ /**
2
+ *
3
+ * @export
4
+ * @interface SymbolFigiInstrument
5
+ */
6
+ export interface SymbolFigiInstrument {
7
+ /**
8
+ *
9
+ * @type {string}
10
+ * @memberof SymbolFigiInstrument
11
+ */
12
+ 'figi_code'?: string | null;
13
+ /**
14
+ *
15
+ * @type {string}
16
+ * @memberof SymbolFigiInstrument
17
+ */
18
+ 'figi_share_class'?: string | null;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  import { Currency } from './currency';
2
2
  import { Exchange } from './exchange';
3
3
  import { SecurityType } from './security-type';
4
+ import { SymbolFigiInstrument } from './symbol-figi-instrument';
4
5
  /**
5
6
  * Symbol
6
7
  * @export
@@ -56,4 +57,10 @@ export interface Symbol {
56
57
  * @memberof Symbol
57
58
  */
58
59
  'figi_code'?: string | null;
60
+ /**
61
+ *
62
+ * @type {SymbolFigiInstrument}
63
+ * @memberof Symbol
64
+ */
65
+ 'figi_instrument'?: SymbolFigiInstrument | null;
59
66
  }
@@ -1,5 +1,6 @@
1
1
  import { Currency } from './currency';
2
2
  import { SecurityType } from './security-type';
3
+ import { SymbolFigiInstrument } from './symbol-figi-instrument';
3
4
  import { USExchange } from './usexchange';
4
5
  /**
5
6
  * Underlying Symbol
@@ -56,4 +57,10 @@ export interface UnderlyingSymbol {
56
57
  * @memberof UnderlyingSymbol
57
58
  */
58
59
  'figi_code'?: string | null;
60
+ /**
61
+ *
62
+ * @type {SymbolFigiInstrument}
63
+ * @memberof UnderlyingSymbol
64
+ */
65
+ 'figi_instrument'?: SymbolFigiInstrument | null;
59
66
  }
@@ -1,6 +1,7 @@
1
1
  import { Currency } from './currency';
2
2
  import { Exchange } from './exchange';
3
3
  import { SecurityType } from './security-type';
4
+ import { SymbolFigiInstrument } from './symbol-figi-instrument';
4
5
  /**
5
6
  * Universal symbol
6
7
  * @export
@@ -62,4 +63,10 @@ export interface UniversalSymbol {
62
63
  * @memberof UniversalSymbol
63
64
  */
64
65
  'figi_code'?: string | null;
66
+ /**
67
+ *
68
+ * @type {SymbolFigiInstrument}
69
+ * @memberof UniversalSymbol
70
+ */
71
+ 'figi_instrument'?: SymbolFigiInstrument | null;
65
72
  }
@@ -489,22 +489,6 @@ exports.operationParameterMap = {
489
489
  },
490
490
  ]
491
491
  },
492
- '/trade/oco-POST': {
493
- parameters: [
494
- {
495
- name: 'userId'
496
- },
497
- {
498
- name: 'userSecret'
499
- },
500
- {
501
- name: 'first_trade_id'
502
- },
503
- {
504
- name: 'second_trade_id'
505
- },
506
- ]
507
- },
508
492
  '/trade/{tradeId}-POST': {
509
493
  parameters: [
510
494
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.14",
3
+ "version": "9.0.16",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {
@@ -1,19 +0,0 @@
1
- /**
2
- *
3
- * @export
4
- * @interface TradingPlaceOCOOrderRequest
5
- */
6
- export interface TradingPlaceOCOOrderRequest {
7
- /**
8
- * The ID of first trade object obtained from trade/impact endpoint
9
- * @type {any}
10
- * @memberof TradingPlaceOCOOrderRequest
11
- */
12
- 'first_trade_id'?: any;
13
- /**
14
- * The ID of second trade object obtained from trade/impact endpoint
15
- * @type {any}
16
- * @memberof TradingPlaceOCOOrderRequest
17
- */
18
- 'second_trade_id'?: any;
19
- }