snaptrade-typescript-sdk 2.4.0 → 3.0.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.
@@ -1 +1 @@
1
- 5fa8de97-71fe-4542-a787-6b5205a8c112
1
+ b01b0b5a-207b-4bcc-872b-f039b191e11a
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## snaptrade-typescript-sdk@2.4.0
1
+ ## snaptrade-typescript-sdk@3.0.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -30,7 +30,7 @@ npm run build
30
30
  navigate to the folder of your consuming project and run the following command.
31
31
 
32
32
  ```
33
- npm install snaptrade-typescript-sdk@2.4.0 --save
33
+ npm install snaptrade-typescript-sdk@3.0.0 --save
34
34
  ```
35
35
 
36
36
  ### Getting Started
package/api.ts CHANGED
@@ -339,7 +339,7 @@ export interface Balance {
339
339
  * @type {number}
340
340
  * @memberof Balance
341
341
  */
342
- 'cash'?: number;
342
+ 'cash'?: number | null;
343
343
  }
344
344
  /**
345
345
  *
@@ -408,7 +408,7 @@ export interface Brokerage {
408
408
  * @type {boolean}
409
409
  * @memberof Brokerage
410
410
  */
411
- 'allows_fractional_units'?: boolean;
411
+ 'allows_fractional_units'?: boolean | null;
412
412
  /**
413
413
  *
414
414
  * @type {boolean}
@@ -432,7 +432,7 @@ export interface Brokerage {
432
432
  * @type {boolean}
433
433
  * @memberof Brokerage
434
434
  */
435
- 'allows_trading_through_snaptrade_api'?: boolean;
435
+ 'allows_trading_through_snaptrade_api'?: boolean | null;
436
436
  /**
437
437
  *
438
438
  * @type {boolean}
@@ -657,7 +657,7 @@ export interface BrokerageSymbol {
657
657
  * @type {boolean}
658
658
  * @memberof BrokerageSymbol
659
659
  */
660
- 'allows_fractional_units'?: boolean;
660
+ 'allows_fractional_units'?: boolean | null;
661
661
  }
662
662
  /**
663
663
  * Type of brokerage
@@ -809,13 +809,13 @@ export interface DividendAtDate {
809
809
  * @type {string}
810
810
  * @memberof DividendAtDate
811
811
  */
812
- 'symbol'?: string;
812
+ 'symbol'?: string | null;
813
813
  /**
814
814
  * The amount received from the dividend
815
815
  * @type {number}
816
816
  * @memberof DividendAtDate
817
817
  */
818
- 'amount'?: number;
818
+ 'amount'?: number | null;
819
819
  /**
820
820
  * The currency of the amount
821
821
  * @type {string}
@@ -924,7 +924,7 @@ export interface Exchange {
924
924
  * @type {string}
925
925
  * @memberof Exchange
926
926
  */
927
- 'suffix'?: string;
927
+ 'suffix'?: string | null;
928
928
  }
929
929
  /**
930
930
  * The exchange rate of a pair of currencies
@@ -1111,7 +1111,7 @@ export interface ManualTradeBalance {
1111
1111
  * @type {number}
1112
1112
  * @memberof ManualTradeBalance
1113
1113
  */
1114
- 'cash'?: number;
1114
+ 'cash'?: number | null;
1115
1115
  }
1116
1116
  /**
1117
1117
  * Manual Trade Form
@@ -1148,7 +1148,7 @@ export interface ManualTradeForm {
1148
1148
  * @type {number}
1149
1149
  * @memberof ManualTradeForm
1150
1150
  */
1151
- 'stop'?: number;
1151
+ 'stop'?: number | null;
1152
1152
  /**
1153
1153
  *
1154
1154
  * @type {TimeInForce}
@@ -1205,7 +1205,7 @@ export interface ManualTradeSymbol {
1205
1205
  * @type {string}
1206
1206
  * @memberof ManualTradeSymbol
1207
1207
  */
1208
- 'description'?: string;
1208
+ 'description'?: string | null;
1209
1209
  /**
1210
1210
  *
1211
1211
  * @type {string}
@@ -1495,7 +1495,7 @@ export interface NetContributions {
1495
1495
  * @type {number}
1496
1496
  * @memberof NetContributions
1497
1497
  */
1498
- 'contributions'?: number;
1498
+ 'contributions'?: number | null;
1499
1499
  /**
1500
1500
  *
1501
1501
  * @type {string}
@@ -1522,7 +1522,7 @@ export interface NetDividend {
1522
1522
  * @type {number}
1523
1523
  * @memberof NetDividend
1524
1524
  */
1525
- 'amount'?: number;
1525
+ 'amount'?: number | null;
1526
1526
  /**
1527
1527
  *
1528
1528
  * @type {string}
@@ -1609,19 +1609,19 @@ export interface OptionChainInnerChainPerRootInnerChainPerStrikePriceInner {
1609
1609
  * @type {number}
1610
1610
  * @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
1611
1611
  */
1612
- 'strikePrice'?: number;
1612
+ 'strikePrice'?: number | null;
1613
1613
  /**
1614
1614
  *
1615
1615
  * @type {number}
1616
1616
  * @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
1617
1617
  */
1618
- 'callSymbolId'?: number;
1618
+ 'callSymbolId'?: number | null;
1619
1619
  /**
1620
1620
  *
1621
1621
  * @type {number}
1622
1622
  * @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
1623
1623
  */
1624
- 'putSymbolId'?: number;
1624
+ 'putSymbolId'?: number | null;
1625
1625
  }
1626
1626
  /**
1627
1627
  * Option Leg
@@ -2141,19 +2141,19 @@ export interface PerformanceCustom {
2141
2141
  * @type {number}
2142
2142
  * @memberof PerformanceCustom
2143
2143
  */
2144
- 'contributionStreak'?: number;
2144
+ 'contributionStreak'?: number | null;
2145
2145
  /**
2146
2146
  * Number of months in the timeframe with contributions
2147
2147
  * @type {number}
2148
2148
  * @memberof PerformanceCustom
2149
2149
  */
2150
- 'contributionMonthsContributed'?: number;
2150
+ 'contributionMonthsContributed'?: number | null;
2151
2151
  /**
2152
2152
  * Total months in timeframe
2153
2153
  * @type {number}
2154
2154
  * @memberof PerformanceCustom
2155
2155
  */
2156
- 'contributionTotalMonths'?: number;
2156
+ 'contributionTotalMonths'?: number | null;
2157
2157
  /**
2158
2158
  *
2159
2159
  * @type {Array<NetDividend>}
@@ -2165,13 +2165,13 @@ export interface PerformanceCustom {
2165
2165
  * @type {number}
2166
2166
  * @memberof PerformanceCustom
2167
2167
  */
2168
- 'dividendIncome'?: number;
2168
+ 'dividendIncome'?: number | null;
2169
2169
  /**
2170
2170
  * Average dividends received per month over the timeframe
2171
2171
  * @type {number}
2172
2172
  * @memberof PerformanceCustom
2173
2173
  */
2174
- 'monthlyDividends'?: number;
2174
+ 'monthlyDividends'?: number | null;
2175
2175
  /**
2176
2176
  * list of tickers which may not be supported or may not have accurate price data
2177
2177
  * @type {Array<string>}
@@ -2189,25 +2189,25 @@ export interface PerformanceCustom {
2189
2189
  * @type {number}
2190
2190
  * @memberof PerformanceCustom
2191
2191
  */
2192
- 'commissions'?: number;
2192
+ 'commissions'?: number | null;
2193
2193
  /**
2194
2194
  * forex fees incurred during the timeframe
2195
2195
  * @type {number}
2196
2196
  * @memberof PerformanceCustom
2197
2197
  */
2198
- 'forexFees'?: number;
2198
+ 'forexFees'?: number | null;
2199
2199
  /**
2200
2200
  * other fees incurred during the timeframe
2201
2201
  * @type {number}
2202
2202
  * @memberof PerformanceCustom
2203
2203
  */
2204
- 'fees'?: number;
2204
+ 'fees'?: number | null;
2205
2205
  /**
2206
2206
  * The return rate over the timeframe. Annualized if timeframe is longer than 1 year
2207
2207
  * @type {number}
2208
2208
  * @memberof PerformanceCustom
2209
2209
  */
2210
- 'rateOfReturn'?: number;
2210
+ 'rateOfReturn'?: number | null;
2211
2211
  /**
2212
2212
  *
2213
2213
  * @type {Array<SubPeriodReturnRate>}
@@ -2336,7 +2336,7 @@ export interface PortfolioGroupPosition {
2336
2336
  * @type {number}
2337
2337
  * @memberof PortfolioGroupPosition
2338
2338
  */
2339
- 'price'?: number;
2339
+ 'price'?: number | null;
2340
2340
  /**
2341
2341
  *
2342
2342
  * @type {number}
@@ -2402,19 +2402,19 @@ export interface Position {
2402
2402
  * @type {number}
2403
2403
  * @memberof Position
2404
2404
  */
2405
- 'units'?: number;
2405
+ 'units'?: number | null;
2406
2406
  /**
2407
2407
  * Last known market price for the symbol
2408
2408
  * @type {number}
2409
2409
  * @memberof Position
2410
2410
  */
2411
- 'price'?: number;
2411
+ 'price'?: number | null;
2412
2412
  /**
2413
2413
  *
2414
2414
  * @type {number}
2415
2415
  * @memberof Position
2416
2416
  */
2417
- 'open_pnl'?: number;
2417
+ 'open_pnl'?: number | null;
2418
2418
  /**
2419
2419
  * Deprecated, use the units field for both fractional and integer units going forward
2420
2420
  * @type {number}
@@ -2459,7 +2459,7 @@ export interface PositionSymbol {
2459
2459
  * @type {string}
2460
2460
  * @memberof PositionSymbol
2461
2461
  */
2462
- 'local_id'?: string;
2462
+ 'local_id'?: string | null;
2463
2463
  /**
2464
2464
  *
2465
2465
  * @type {boolean}
@@ -2579,7 +2579,7 @@ export interface SnapTradeHoldingsAccount {
2579
2579
  * @type {string}
2580
2580
  * @memberof SnapTradeHoldingsAccount
2581
2581
  */
2582
- 'name'?: string;
2582
+ 'name'?: string | null;
2583
2583
  /**
2584
2584
  *
2585
2585
  * @type {string}
@@ -3399,7 +3399,7 @@ export interface SubPeriodReturnRate {
3399
3399
  * @type {number}
3400
3400
  * @memberof SubPeriodReturnRate
3401
3401
  */
3402
- 'rateOfReturn'?: number;
3402
+ 'rateOfReturn'?: number | null;
3403
3403
  }
3404
3404
  /**
3405
3405
  * Symbol
@@ -3539,7 +3539,7 @@ export interface TargetAsset {
3539
3539
  * @type {object}
3540
3540
  * @memberof TargetAsset
3541
3541
  */
3542
- 'meta'?: object;
3542
+ 'meta'?: object | null;
3543
3543
  }
3544
3544
  /**
3545
3545
  * Trade time in force: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
@@ -3812,7 +3812,7 @@ export interface USExchange {
3812
3812
  * @type {string}
3813
3813
  * @memberof USExchange
3814
3814
  */
3815
- 'suffix'?: string;
3815
+ 'suffix'?: string | null;
3816
3816
  /**
3817
3817
  *
3818
3818
  * @type {boolean}
@@ -3845,7 +3845,7 @@ export interface UnderlyingSymbol {
3845
3845
  * @type {string}
3846
3846
  * @memberof UnderlyingSymbol
3847
3847
  */
3848
- 'description'?: string;
3848
+ 'description'?: string | null;
3849
3849
  /**
3850
3850
  *
3851
3851
  * @type {Currency}
@@ -3896,7 +3896,7 @@ export interface UniversalActivity {
3896
3896
  * @type {number}
3897
3897
  * @memberof UniversalActivity
3898
3898
  */
3899
- 'amount'?: number;
3899
+ 'amount'?: number | null;
3900
3900
  /**
3901
3901
  *
3902
3902
  * @type {Currency}
@@ -3956,7 +3956,7 @@ export interface UniversalActivity {
3956
3956
  * @type {string}
3957
3957
  * @memberof UniversalActivity
3958
3958
  */
3959
- 'trade_date'?: string;
3959
+ 'trade_date'?: string | null;
3960
3960
  /**
3961
3961
  *
3962
3962
  * @type {string}
@@ -4023,7 +4023,7 @@ export interface UniversalSymbol {
4023
4023
  * @type {string}
4024
4024
  * @memberof UniversalSymbol
4025
4025
  */
4026
- 'description'?: string;
4026
+ 'description'?: string | null;
4027
4027
  /**
4028
4028
  *
4029
4029
  * @type {Currency}
package/dist/api.d.ts CHANGED
@@ -318,7 +318,7 @@ export interface Balance {
318
318
  * @type {number}
319
319
  * @memberof Balance
320
320
  */
321
- 'cash'?: number;
321
+ 'cash'?: number | null;
322
322
  }
323
323
  /**
324
324
  *
@@ -386,7 +386,7 @@ export interface Brokerage {
386
386
  * @type {boolean}
387
387
  * @memberof Brokerage
388
388
  */
389
- 'allows_fractional_units'?: boolean;
389
+ 'allows_fractional_units'?: boolean | null;
390
390
  /**
391
391
  *
392
392
  * @type {boolean}
@@ -410,7 +410,7 @@ export interface Brokerage {
410
410
  * @type {boolean}
411
411
  * @memberof Brokerage
412
412
  */
413
- 'allows_trading_through_snaptrade_api'?: boolean;
413
+ 'allows_trading_through_snaptrade_api'?: boolean | null;
414
414
  /**
415
415
  *
416
416
  * @type {boolean}
@@ -625,7 +625,7 @@ export interface BrokerageSymbol {
625
625
  * @type {boolean}
626
626
  * @memberof BrokerageSymbol
627
627
  */
628
- 'allows_fractional_units'?: boolean;
628
+ 'allows_fractional_units'?: boolean | null;
629
629
  }
630
630
  /**
631
631
  * Type of brokerage
@@ -768,13 +768,13 @@ export interface DividendAtDate {
768
768
  * @type {string}
769
769
  * @memberof DividendAtDate
770
770
  */
771
- 'symbol'?: string;
771
+ 'symbol'?: string | null;
772
772
  /**
773
773
  * The amount received from the dividend
774
774
  * @type {number}
775
775
  * @memberof DividendAtDate
776
776
  */
777
- 'amount'?: number;
777
+ 'amount'?: number | null;
778
778
  /**
779
779
  * The currency of the amount
780
780
  * @type {string}
@@ -881,7 +881,7 @@ export interface Exchange {
881
881
  * @type {string}
882
882
  * @memberof Exchange
883
883
  */
884
- 'suffix'?: string;
884
+ 'suffix'?: string | null;
885
885
  }
886
886
  /**
887
887
  * The exchange rate of a pair of currencies
@@ -1062,7 +1062,7 @@ export interface ManualTradeBalance {
1062
1062
  * @type {number}
1063
1063
  * @memberof ManualTradeBalance
1064
1064
  */
1065
- 'cash'?: number;
1065
+ 'cash'?: number | null;
1066
1066
  }
1067
1067
  /**
1068
1068
  * Manual Trade Form
@@ -1099,7 +1099,7 @@ export interface ManualTradeForm {
1099
1099
  * @type {number}
1100
1100
  * @memberof ManualTradeForm
1101
1101
  */
1102
- 'stop'?: number;
1102
+ 'stop'?: number | null;
1103
1103
  /**
1104
1104
  *
1105
1105
  * @type {TimeInForce}
@@ -1155,7 +1155,7 @@ export interface ManualTradeSymbol {
1155
1155
  * @type {string}
1156
1156
  * @memberof ManualTradeSymbol
1157
1157
  */
1158
- 'description'?: string;
1158
+ 'description'?: string | null;
1159
1159
  /**
1160
1160
  *
1161
1161
  * @type {string}
@@ -1431,7 +1431,7 @@ export interface NetContributions {
1431
1431
  * @type {number}
1432
1432
  * @memberof NetContributions
1433
1433
  */
1434
- 'contributions'?: number;
1434
+ 'contributions'?: number | null;
1435
1435
  /**
1436
1436
  *
1437
1437
  * @type {string}
@@ -1457,7 +1457,7 @@ export interface NetDividend {
1457
1457
  * @type {number}
1458
1458
  * @memberof NetDividend
1459
1459
  */
1460
- 'amount'?: number;
1460
+ 'amount'?: number | null;
1461
1461
  /**
1462
1462
  *
1463
1463
  * @type {string}
@@ -1541,19 +1541,19 @@ export interface OptionChainInnerChainPerRootInnerChainPerStrikePriceInner {
1541
1541
  * @type {number}
1542
1542
  * @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
1543
1543
  */
1544
- 'strikePrice'?: number;
1544
+ 'strikePrice'?: number | null;
1545
1545
  /**
1546
1546
  *
1547
1547
  * @type {number}
1548
1548
  * @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
1549
1549
  */
1550
- 'callSymbolId'?: number;
1550
+ 'callSymbolId'?: number | null;
1551
1551
  /**
1552
1552
  *
1553
1553
  * @type {number}
1554
1554
  * @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
1555
1555
  */
1556
- 'putSymbolId'?: number;
1556
+ 'putSymbolId'?: number | null;
1557
1557
  }
1558
1558
  /**
1559
1559
  * Option Leg
@@ -2051,19 +2051,19 @@ export interface PerformanceCustom {
2051
2051
  * @type {number}
2052
2052
  * @memberof PerformanceCustom
2053
2053
  */
2054
- 'contributionStreak'?: number;
2054
+ 'contributionStreak'?: number | null;
2055
2055
  /**
2056
2056
  * Number of months in the timeframe with contributions
2057
2057
  * @type {number}
2058
2058
  * @memberof PerformanceCustom
2059
2059
  */
2060
- 'contributionMonthsContributed'?: number;
2060
+ 'contributionMonthsContributed'?: number | null;
2061
2061
  /**
2062
2062
  * Total months in timeframe
2063
2063
  * @type {number}
2064
2064
  * @memberof PerformanceCustom
2065
2065
  */
2066
- 'contributionTotalMonths'?: number;
2066
+ 'contributionTotalMonths'?: number | null;
2067
2067
  /**
2068
2068
  *
2069
2069
  * @type {Array<NetDividend>}
@@ -2075,13 +2075,13 @@ export interface PerformanceCustom {
2075
2075
  * @type {number}
2076
2076
  * @memberof PerformanceCustom
2077
2077
  */
2078
- 'dividendIncome'?: number;
2078
+ 'dividendIncome'?: number | null;
2079
2079
  /**
2080
2080
  * Average dividends received per month over the timeframe
2081
2081
  * @type {number}
2082
2082
  * @memberof PerformanceCustom
2083
2083
  */
2084
- 'monthlyDividends'?: number;
2084
+ 'monthlyDividends'?: number | null;
2085
2085
  /**
2086
2086
  * list of tickers which may not be supported or may not have accurate price data
2087
2087
  * @type {Array<string>}
@@ -2099,25 +2099,25 @@ export interface PerformanceCustom {
2099
2099
  * @type {number}
2100
2100
  * @memberof PerformanceCustom
2101
2101
  */
2102
- 'commissions'?: number;
2102
+ 'commissions'?: number | null;
2103
2103
  /**
2104
2104
  * forex fees incurred during the timeframe
2105
2105
  * @type {number}
2106
2106
  * @memberof PerformanceCustom
2107
2107
  */
2108
- 'forexFees'?: number;
2108
+ 'forexFees'?: number | null;
2109
2109
  /**
2110
2110
  * other fees incurred during the timeframe
2111
2111
  * @type {number}
2112
2112
  * @memberof PerformanceCustom
2113
2113
  */
2114
- 'fees'?: number;
2114
+ 'fees'?: number | null;
2115
2115
  /**
2116
2116
  * The return rate over the timeframe. Annualized if timeframe is longer than 1 year
2117
2117
  * @type {number}
2118
2118
  * @memberof PerformanceCustom
2119
2119
  */
2120
- 'rateOfReturn'?: number;
2120
+ 'rateOfReturn'?: number | null;
2121
2121
  /**
2122
2122
  *
2123
2123
  * @type {Array<SubPeriodReturnRate>}
@@ -2243,7 +2243,7 @@ export interface PortfolioGroupPosition {
2243
2243
  * @type {number}
2244
2244
  * @memberof PortfolioGroupPosition
2245
2245
  */
2246
- 'price'?: number;
2246
+ 'price'?: number | null;
2247
2247
  /**
2248
2248
  *
2249
2249
  * @type {number}
@@ -2307,19 +2307,19 @@ export interface Position {
2307
2307
  * @type {number}
2308
2308
  * @memberof Position
2309
2309
  */
2310
- 'units'?: number;
2310
+ 'units'?: number | null;
2311
2311
  /**
2312
2312
  * Last known market price for the symbol
2313
2313
  * @type {number}
2314
2314
  * @memberof Position
2315
2315
  */
2316
- 'price'?: number;
2316
+ 'price'?: number | null;
2317
2317
  /**
2318
2318
  *
2319
2319
  * @type {number}
2320
2320
  * @memberof Position
2321
2321
  */
2322
- 'open_pnl'?: number;
2322
+ 'open_pnl'?: number | null;
2323
2323
  /**
2324
2324
  * Deprecated, use the units field for both fractional and integer units going forward
2325
2325
  * @type {number}
@@ -2363,7 +2363,7 @@ export interface PositionSymbol {
2363
2363
  * @type {string}
2364
2364
  * @memberof PositionSymbol
2365
2365
  */
2366
- 'local_id'?: string;
2366
+ 'local_id'?: string | null;
2367
2367
  /**
2368
2368
  *
2369
2369
  * @type {boolean}
@@ -2479,7 +2479,7 @@ export interface SnapTradeHoldingsAccount {
2479
2479
  * @type {string}
2480
2480
  * @memberof SnapTradeHoldingsAccount
2481
2481
  */
2482
- 'name'?: string;
2482
+ 'name'?: string | null;
2483
2483
  /**
2484
2484
  *
2485
2485
  * @type {string}
@@ -3282,7 +3282,7 @@ export interface SubPeriodReturnRate {
3282
3282
  * @type {number}
3283
3283
  * @memberof SubPeriodReturnRate
3284
3284
  */
3285
- 'rateOfReturn'?: number;
3285
+ 'rateOfReturn'?: number | null;
3286
3286
  }
3287
3287
  /**
3288
3288
  * Symbol
@@ -3420,7 +3420,7 @@ export interface TargetAsset {
3420
3420
  * @type {object}
3421
3421
  * @memberof TargetAsset
3422
3422
  */
3423
- 'meta'?: object;
3423
+ 'meta'?: object | null;
3424
3424
  }
3425
3425
  /**
3426
3426
  * Trade time in force: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
@@ -3681,7 +3681,7 @@ export interface USExchange {
3681
3681
  * @type {string}
3682
3682
  * @memberof USExchange
3683
3683
  */
3684
- 'suffix'?: string;
3684
+ 'suffix'?: string | null;
3685
3685
  /**
3686
3686
  *
3687
3687
  * @type {boolean}
@@ -3713,7 +3713,7 @@ export interface UnderlyingSymbol {
3713
3713
  * @type {string}
3714
3714
  * @memberof UnderlyingSymbol
3715
3715
  */
3716
- 'description'?: string;
3716
+ 'description'?: string | null;
3717
3717
  /**
3718
3718
  *
3719
3719
  * @type {Currency}
@@ -3763,7 +3763,7 @@ export interface UniversalActivity {
3763
3763
  * @type {number}
3764
3764
  * @memberof UniversalActivity
3765
3765
  */
3766
- 'amount'?: number;
3766
+ 'amount'?: number | null;
3767
3767
  /**
3768
3768
  *
3769
3769
  * @type {Currency}
@@ -3823,7 +3823,7 @@ export interface UniversalActivity {
3823
3823
  * @type {string}
3824
3824
  * @memberof UniversalActivity
3825
3825
  */
3826
- 'trade_date'?: string;
3826
+ 'trade_date'?: string | null;
3827
3827
  /**
3828
3828
  *
3829
3829
  * @type {string}
@@ -3887,7 +3887,7 @@ export interface UniversalSymbol {
3887
3887
  * @type {string}
3888
3888
  * @memberof UniversalSymbol
3889
3889
  */
3890
- 'description'?: string;
3890
+ 'description'?: string | null;
3891
3891
  /**
3892
3892
  *
3893
3893
  * @type {Currency}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "2.4.0",
3
+ "version": "3.0.0",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "repository": {
package/git_push.sh DELETED
@@ -1,57 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="passiv"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="snaptrade-sdks/tree/master/sdks/typescript"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=$(git remote)
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'