snaptrade-typescript-sdk 10.0.5 → 10.0.7
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 +1 -1
- package/dist/browser.umd.js +11 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +28 -28
- package/dist/index.d.mts +28 -28
- package/dist/index.d.ts +28 -28
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/index.browser.mjs +0 -10332
package/dist/index.d.mts
CHANGED
|
@@ -1653,25 +1653,25 @@ interface AccountOrderRecord {
|
|
|
1653
1653
|
* @type {AccountOrderRecordUniversalSymbol}
|
|
1654
1654
|
* @memberof AccountOrderRecord
|
|
1655
1655
|
*/
|
|
1656
|
-
'universal_symbol'?: AccountOrderRecordUniversalSymbol;
|
|
1656
|
+
'universal_symbol'?: AccountOrderRecordUniversalSymbol | null;
|
|
1657
1657
|
/**
|
|
1658
1658
|
*
|
|
1659
1659
|
* @type {AccountOrderRecordOptionSymbol}
|
|
1660
1660
|
* @memberof AccountOrderRecord
|
|
1661
1661
|
*/
|
|
1662
|
-
'option_symbol'?: AccountOrderRecordOptionSymbol;
|
|
1662
|
+
'option_symbol'?: AccountOrderRecordOptionSymbol | null;
|
|
1663
1663
|
/**
|
|
1664
1664
|
*
|
|
1665
1665
|
* @type {AccountOrderRecordQuoteUniversalSymbol}
|
|
1666
1666
|
* @memberof AccountOrderRecord
|
|
1667
1667
|
*/
|
|
1668
|
-
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol;
|
|
1668
|
+
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol | null;
|
|
1669
1669
|
/**
|
|
1670
1670
|
*
|
|
1671
1671
|
* @type {AccountOrderRecordQuoteCurrency}
|
|
1672
1672
|
* @memberof AccountOrderRecord
|
|
1673
1673
|
*/
|
|
1674
|
-
'quote_currency'?: AccountOrderRecordQuoteCurrency;
|
|
1674
|
+
'quote_currency'?: AccountOrderRecordQuoteCurrency | null;
|
|
1675
1675
|
/**
|
|
1676
1676
|
* The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
|
|
1677
1677
|
* @type {string}
|
|
@@ -1704,22 +1704,22 @@ interface AccountOrderRecord {
|
|
|
1704
1704
|
'filled_quantity'?: string | null;
|
|
1705
1705
|
/**
|
|
1706
1706
|
* The price at which the order was executed. For option orders, this represents the price per share.
|
|
1707
|
-
* @type {
|
|
1707
|
+
* @type {string}
|
|
1708
1708
|
* @memberof AccountOrderRecord
|
|
1709
1709
|
*/
|
|
1710
|
-
'execution_price'?:
|
|
1710
|
+
'execution_price'?: string | null;
|
|
1711
1711
|
/**
|
|
1712
1712
|
* 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.
|
|
1713
|
-
* @type {
|
|
1713
|
+
* @type {string}
|
|
1714
1714
|
* @memberof AccountOrderRecord
|
|
1715
1715
|
*/
|
|
1716
|
-
'limit_price'?:
|
|
1716
|
+
'limit_price'?: string | null;
|
|
1717
1717
|
/**
|
|
1718
1718
|
* 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.
|
|
1719
|
-
* @type {
|
|
1719
|
+
* @type {string}
|
|
1720
1720
|
* @memberof AccountOrderRecord
|
|
1721
1721
|
*/
|
|
1722
|
-
'stop_price'?:
|
|
1722
|
+
'stop_price'?: string | null;
|
|
1723
1723
|
/**
|
|
1724
1724
|
*
|
|
1725
1725
|
* @type {AccountOrderRecordTrailingStop}
|
|
@@ -2067,10 +2067,10 @@ interface AccountOrderRecordLeg {
|
|
|
2067
2067
|
'action'?: string;
|
|
2068
2068
|
/**
|
|
2069
2069
|
* Execution price for this leg, if available.
|
|
2070
|
-
* @type {
|
|
2070
|
+
* @type {string}
|
|
2071
2071
|
* @memberof AccountOrderRecordLeg
|
|
2072
2072
|
*/
|
|
2073
|
-
'execution_price'?:
|
|
2073
|
+
'execution_price'?: string | null;
|
|
2074
2074
|
/**
|
|
2075
2075
|
* The total number of shares or contracts associated with this leg. Can be a decimal number for fractional shares.
|
|
2076
2076
|
* @type {string}
|
|
@@ -2161,22 +2161,22 @@ interface AccountOrderRecordV2 {
|
|
|
2161
2161
|
'quote_currency'?: string;
|
|
2162
2162
|
/**
|
|
2163
2163
|
* The price at which the order was executed.
|
|
2164
|
-
* @type {
|
|
2164
|
+
* @type {string}
|
|
2165
2165
|
* @memberof AccountOrderRecordV2
|
|
2166
2166
|
*/
|
|
2167
|
-
'execution_price'?:
|
|
2167
|
+
'execution_price'?: string | null;
|
|
2168
2168
|
/**
|
|
2169
2169
|
* 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.
|
|
2170
|
-
* @type {
|
|
2170
|
+
* @type {string}
|
|
2171
2171
|
* @memberof AccountOrderRecordV2
|
|
2172
2172
|
*/
|
|
2173
|
-
'limit_price'?:
|
|
2173
|
+
'limit_price'?: string | null;
|
|
2174
2174
|
/**
|
|
2175
2175
|
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
|
|
2176
|
-
* @type {
|
|
2176
|
+
* @type {string}
|
|
2177
2177
|
* @memberof AccountOrderRecordV2
|
|
2178
2178
|
*/
|
|
2179
|
-
'stop_price'?:
|
|
2179
|
+
'stop_price'?: string | null;
|
|
2180
2180
|
/**
|
|
2181
2181
|
*
|
|
2182
2182
|
* @type {AccountOrderRecordTrailingStop}
|
|
@@ -5381,25 +5381,25 @@ interface OrderUpdatedResponseOrder {
|
|
|
5381
5381
|
* @type {AccountOrderRecordUniversalSymbol}
|
|
5382
5382
|
* @memberof OrderUpdatedResponseOrder
|
|
5383
5383
|
*/
|
|
5384
|
-
'universal_symbol'?: AccountOrderRecordUniversalSymbol;
|
|
5384
|
+
'universal_symbol'?: AccountOrderRecordUniversalSymbol | null;
|
|
5385
5385
|
/**
|
|
5386
5386
|
*
|
|
5387
5387
|
* @type {AccountOrderRecordOptionSymbol}
|
|
5388
5388
|
* @memberof OrderUpdatedResponseOrder
|
|
5389
5389
|
*/
|
|
5390
|
-
'option_symbol'?: AccountOrderRecordOptionSymbol;
|
|
5390
|
+
'option_symbol'?: AccountOrderRecordOptionSymbol | null;
|
|
5391
5391
|
/**
|
|
5392
5392
|
*
|
|
5393
5393
|
* @type {AccountOrderRecordQuoteUniversalSymbol}
|
|
5394
5394
|
* @memberof OrderUpdatedResponseOrder
|
|
5395
5395
|
*/
|
|
5396
|
-
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol;
|
|
5396
|
+
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol | null;
|
|
5397
5397
|
/**
|
|
5398
5398
|
*
|
|
5399
5399
|
* @type {AccountOrderRecordQuoteCurrency}
|
|
5400
5400
|
* @memberof OrderUpdatedResponseOrder
|
|
5401
5401
|
*/
|
|
5402
|
-
'quote_currency'?: AccountOrderRecordQuoteCurrency;
|
|
5402
|
+
'quote_currency'?: AccountOrderRecordQuoteCurrency | null;
|
|
5403
5403
|
/**
|
|
5404
5404
|
* The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
|
|
5405
5405
|
* @type {string}
|
|
@@ -5432,22 +5432,22 @@ interface OrderUpdatedResponseOrder {
|
|
|
5432
5432
|
'filled_quantity'?: string | null;
|
|
5433
5433
|
/**
|
|
5434
5434
|
* The price at which the order was executed. For option orders, this represents the price per share.
|
|
5435
|
-
* @type {
|
|
5435
|
+
* @type {string}
|
|
5436
5436
|
* @memberof OrderUpdatedResponseOrder
|
|
5437
5437
|
*/
|
|
5438
|
-
'execution_price'?:
|
|
5438
|
+
'execution_price'?: string | null;
|
|
5439
5439
|
/**
|
|
5440
5440
|
* 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.
|
|
5441
|
-
* @type {
|
|
5441
|
+
* @type {string}
|
|
5442
5442
|
* @memberof OrderUpdatedResponseOrder
|
|
5443
5443
|
*/
|
|
5444
|
-
'limit_price'?:
|
|
5444
|
+
'limit_price'?: string | null;
|
|
5445
5445
|
/**
|
|
5446
5446
|
* 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.
|
|
5447
|
-
* @type {
|
|
5447
|
+
* @type {string}
|
|
5448
5448
|
* @memberof OrderUpdatedResponseOrder
|
|
5449
5449
|
*/
|
|
5450
|
-
'stop_price'?:
|
|
5450
|
+
'stop_price'?: string | null;
|
|
5451
5451
|
/**
|
|
5452
5452
|
*
|
|
5453
5453
|
* @type {AccountOrderRecordTrailingStop}
|
package/dist/index.d.ts
CHANGED
|
@@ -1653,25 +1653,25 @@ interface AccountOrderRecord {
|
|
|
1653
1653
|
* @type {AccountOrderRecordUniversalSymbol}
|
|
1654
1654
|
* @memberof AccountOrderRecord
|
|
1655
1655
|
*/
|
|
1656
|
-
'universal_symbol'?: AccountOrderRecordUniversalSymbol;
|
|
1656
|
+
'universal_symbol'?: AccountOrderRecordUniversalSymbol | null;
|
|
1657
1657
|
/**
|
|
1658
1658
|
*
|
|
1659
1659
|
* @type {AccountOrderRecordOptionSymbol}
|
|
1660
1660
|
* @memberof AccountOrderRecord
|
|
1661
1661
|
*/
|
|
1662
|
-
'option_symbol'?: AccountOrderRecordOptionSymbol;
|
|
1662
|
+
'option_symbol'?: AccountOrderRecordOptionSymbol | null;
|
|
1663
1663
|
/**
|
|
1664
1664
|
*
|
|
1665
1665
|
* @type {AccountOrderRecordQuoteUniversalSymbol}
|
|
1666
1666
|
* @memberof AccountOrderRecord
|
|
1667
1667
|
*/
|
|
1668
|
-
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol;
|
|
1668
|
+
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol | null;
|
|
1669
1669
|
/**
|
|
1670
1670
|
*
|
|
1671
1671
|
* @type {AccountOrderRecordQuoteCurrency}
|
|
1672
1672
|
* @memberof AccountOrderRecord
|
|
1673
1673
|
*/
|
|
1674
|
-
'quote_currency'?: AccountOrderRecordQuoteCurrency;
|
|
1674
|
+
'quote_currency'?: AccountOrderRecordQuoteCurrency | null;
|
|
1675
1675
|
/**
|
|
1676
1676
|
* The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
|
|
1677
1677
|
* @type {string}
|
|
@@ -1704,22 +1704,22 @@ interface AccountOrderRecord {
|
|
|
1704
1704
|
'filled_quantity'?: string | null;
|
|
1705
1705
|
/**
|
|
1706
1706
|
* The price at which the order was executed. For option orders, this represents the price per share.
|
|
1707
|
-
* @type {
|
|
1707
|
+
* @type {string}
|
|
1708
1708
|
* @memberof AccountOrderRecord
|
|
1709
1709
|
*/
|
|
1710
|
-
'execution_price'?:
|
|
1710
|
+
'execution_price'?: string | null;
|
|
1711
1711
|
/**
|
|
1712
1712
|
* 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.
|
|
1713
|
-
* @type {
|
|
1713
|
+
* @type {string}
|
|
1714
1714
|
* @memberof AccountOrderRecord
|
|
1715
1715
|
*/
|
|
1716
|
-
'limit_price'?:
|
|
1716
|
+
'limit_price'?: string | null;
|
|
1717
1717
|
/**
|
|
1718
1718
|
* 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.
|
|
1719
|
-
* @type {
|
|
1719
|
+
* @type {string}
|
|
1720
1720
|
* @memberof AccountOrderRecord
|
|
1721
1721
|
*/
|
|
1722
|
-
'stop_price'?:
|
|
1722
|
+
'stop_price'?: string | null;
|
|
1723
1723
|
/**
|
|
1724
1724
|
*
|
|
1725
1725
|
* @type {AccountOrderRecordTrailingStop}
|
|
@@ -2067,10 +2067,10 @@ interface AccountOrderRecordLeg {
|
|
|
2067
2067
|
'action'?: string;
|
|
2068
2068
|
/**
|
|
2069
2069
|
* Execution price for this leg, if available.
|
|
2070
|
-
* @type {
|
|
2070
|
+
* @type {string}
|
|
2071
2071
|
* @memberof AccountOrderRecordLeg
|
|
2072
2072
|
*/
|
|
2073
|
-
'execution_price'?:
|
|
2073
|
+
'execution_price'?: string | null;
|
|
2074
2074
|
/**
|
|
2075
2075
|
* The total number of shares or contracts associated with this leg. Can be a decimal number for fractional shares.
|
|
2076
2076
|
* @type {string}
|
|
@@ -2161,22 +2161,22 @@ interface AccountOrderRecordV2 {
|
|
|
2161
2161
|
'quote_currency'?: string;
|
|
2162
2162
|
/**
|
|
2163
2163
|
* The price at which the order was executed.
|
|
2164
|
-
* @type {
|
|
2164
|
+
* @type {string}
|
|
2165
2165
|
* @memberof AccountOrderRecordV2
|
|
2166
2166
|
*/
|
|
2167
|
-
'execution_price'?:
|
|
2167
|
+
'execution_price'?: string | null;
|
|
2168
2168
|
/**
|
|
2169
2169
|
* 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.
|
|
2170
|
-
* @type {
|
|
2170
|
+
* @type {string}
|
|
2171
2171
|
* @memberof AccountOrderRecordV2
|
|
2172
2172
|
*/
|
|
2173
|
-
'limit_price'?:
|
|
2173
|
+
'limit_price'?: string | null;
|
|
2174
2174
|
/**
|
|
2175
2175
|
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
|
|
2176
|
-
* @type {
|
|
2176
|
+
* @type {string}
|
|
2177
2177
|
* @memberof AccountOrderRecordV2
|
|
2178
2178
|
*/
|
|
2179
|
-
'stop_price'?:
|
|
2179
|
+
'stop_price'?: string | null;
|
|
2180
2180
|
/**
|
|
2181
2181
|
*
|
|
2182
2182
|
* @type {AccountOrderRecordTrailingStop}
|
|
@@ -5381,25 +5381,25 @@ interface OrderUpdatedResponseOrder {
|
|
|
5381
5381
|
* @type {AccountOrderRecordUniversalSymbol}
|
|
5382
5382
|
* @memberof OrderUpdatedResponseOrder
|
|
5383
5383
|
*/
|
|
5384
|
-
'universal_symbol'?: AccountOrderRecordUniversalSymbol;
|
|
5384
|
+
'universal_symbol'?: AccountOrderRecordUniversalSymbol | null;
|
|
5385
5385
|
/**
|
|
5386
5386
|
*
|
|
5387
5387
|
* @type {AccountOrderRecordOptionSymbol}
|
|
5388
5388
|
* @memberof OrderUpdatedResponseOrder
|
|
5389
5389
|
*/
|
|
5390
|
-
'option_symbol'?: AccountOrderRecordOptionSymbol;
|
|
5390
|
+
'option_symbol'?: AccountOrderRecordOptionSymbol | null;
|
|
5391
5391
|
/**
|
|
5392
5392
|
*
|
|
5393
5393
|
* @type {AccountOrderRecordQuoteUniversalSymbol}
|
|
5394
5394
|
* @memberof OrderUpdatedResponseOrder
|
|
5395
5395
|
*/
|
|
5396
|
-
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol;
|
|
5396
|
+
'quote_universal_symbol'?: AccountOrderRecordQuoteUniversalSymbol | null;
|
|
5397
5397
|
/**
|
|
5398
5398
|
*
|
|
5399
5399
|
* @type {AccountOrderRecordQuoteCurrency}
|
|
5400
5400
|
* @memberof OrderUpdatedResponseOrder
|
|
5401
5401
|
*/
|
|
5402
|
-
'quote_currency'?: AccountOrderRecordQuoteCurrency;
|
|
5402
|
+
'quote_currency'?: AccountOrderRecordQuoteCurrency | null;
|
|
5403
5403
|
/**
|
|
5404
5404
|
* The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
|
|
5405
5405
|
* @type {string}
|
|
@@ -5432,22 +5432,22 @@ interface OrderUpdatedResponseOrder {
|
|
|
5432
5432
|
'filled_quantity'?: string | null;
|
|
5433
5433
|
/**
|
|
5434
5434
|
* The price at which the order was executed. For option orders, this represents the price per share.
|
|
5435
|
-
* @type {
|
|
5435
|
+
* @type {string}
|
|
5436
5436
|
* @memberof OrderUpdatedResponseOrder
|
|
5437
5437
|
*/
|
|
5438
|
-
'execution_price'?:
|
|
5438
|
+
'execution_price'?: string | null;
|
|
5439
5439
|
/**
|
|
5440
5440
|
* 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.
|
|
5441
|
-
* @type {
|
|
5441
|
+
* @type {string}
|
|
5442
5442
|
* @memberof OrderUpdatedResponseOrder
|
|
5443
5443
|
*/
|
|
5444
|
-
'limit_price'?:
|
|
5444
|
+
'limit_price'?: string | null;
|
|
5445
5445
|
/**
|
|
5446
5446
|
* 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.
|
|
5447
|
-
* @type {
|
|
5447
|
+
* @type {string}
|
|
5448
5448
|
* @memberof OrderUpdatedResponseOrder
|
|
5449
5449
|
*/
|
|
5450
|
-
'stop_price'?:
|
|
5450
|
+
'stop_price'?: string | null;
|
|
5451
5451
|
/**
|
|
5452
5452
|
*
|
|
5453
5453
|
* @type {AccountOrderRecordTrailingStop}
|
package/dist/index.mjs
CHANGED
|
@@ -7095,7 +7095,7 @@ var Configuration = class {
|
|
|
7095
7095
|
this.accessToken = param.accessToken;
|
|
7096
7096
|
this.basePath = param.basePath;
|
|
7097
7097
|
this.baseOptions = param.baseOptions ?? {};
|
|
7098
|
-
this.userAgent = param.userAgent === void 0 ? "Konfig/10.0.
|
|
7098
|
+
this.userAgent = param.userAgent === void 0 ? "Konfig/10.0.7/typescript" : param.userAgent;
|
|
7099
7099
|
this.formDataCtor = param.formDataCtor;
|
|
7100
7100
|
}
|
|
7101
7101
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snaptrade-typescript-sdk",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.7",
|
|
4
4
|
"description": "Client for SnapTrade",
|
|
5
5
|
"author": "Konfig",
|
|
6
6
|
"engines": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"main": "./dist/index.cjs",
|
|
24
24
|
"module": "./dist/index.mjs",
|
|
25
|
-
"browser": "./dist/
|
|
25
|
+
"browser": "./dist/browser.js",
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
29
|
"browser": {
|
|
30
30
|
"types": "./dist/index.d.mts",
|
|
31
|
-
"default": "./dist/
|
|
31
|
+
"default": "./dist/browser.js"
|
|
32
32
|
},
|
|
33
33
|
"require": {
|
|
34
34
|
"types": "./dist/index.d.cts",
|