snaptrade 2.0.141 → 2.0.143

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81916b27671774af4dabc3bb467c3ccb6f4ee19b43c0b98eb7653f7304f23889
4
- data.tar.gz: 6d7899e2826b82a38d4a9acbb97a283c5556bee74cf7454011f037f68b8265a2
3
+ metadata.gz: 65b010b4913c7e0ea2e411b6dc193e138d0d81b943a8643db10f2d23828db24c
4
+ data.tar.gz: ee19782bd513cb8b552201a936fed7cdb029a3a87a8a09f012cb1913db229a57
5
5
  SHA512:
6
- metadata.gz: c0e7b22c1ece6a16010bf1aff5a0cd5dd6e0e0bdcdb974444776df3eae6cc7943dbb02a7a05e1e00941a7836db6613f2462f5e5bba9561bd932638c6536f518f
7
- data.tar.gz: ef1ad7dc29b0ad2e7e5c56a377d388e997e9a2c6e505da0b561a63a0ea741a1e370099d60a40d9c5c6f14d387b0b60d4fc9f7f846e6ff3e6df98bdc0fade5734
6
+ metadata.gz: 2134c15eae825485a0258eefc04ec891a9e756b219e0b28f588dbc508005e41832447dc7588eeb508601cf3db8de904adb27b1db18cb269815fb839acfcd7453
7
+ data.tar.gz: f028758a9b8ccced84885cb0c7da9b9985d6588e3677e7ed851538ccf039a8c6b3f0393a850e8e3f36ce42415acc4613c5819523aef2516bb8bde84e48ba76fb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.141)
4
+ snaptrade (2.0.143)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -32,7 +32,7 @@ GEM
32
32
  parser (3.3.9.0)
33
33
  ast (~> 2.4.1)
34
34
  racc
35
- prism (1.5.1)
35
+ prism (1.6.0)
36
36
  pry (0.14.2)
37
37
  coderay (~> 1.1)
38
38
  method_source (~> 1.0)
@@ -46,16 +46,16 @@ GEM
46
46
  reline (0.6.2)
47
47
  io-console (~> 0.5)
48
48
  rexml (3.4.4)
49
- rspec (3.13.1)
49
+ rspec (3.13.2)
50
50
  rspec-core (~> 3.13.0)
51
51
  rspec-expectations (~> 3.13.0)
52
52
  rspec-mocks (~> 3.13.0)
53
- rspec-core (3.13.5)
53
+ rspec-core (3.13.6)
54
54
  rspec-support (~> 3.13.0)
55
55
  rspec-expectations (3.13.5)
56
56
  diff-lcs (>= 1.2.0, < 2.0)
57
57
  rspec-support (~> 3.13.0)
58
- rspec-mocks (3.13.5)
58
+ rspec-mocks (3.13.6)
59
59
  diff-lcs (>= 1.2.0, < 2.0)
60
60
  rspec-support (~> 3.13.0)
61
61
  rspec-support (3.13.6)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v2.0.141-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.141)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.143-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.143)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -81,7 +81,7 @@ Connect brokerage accounts to your app for live positions and trading
81
81
  Add to Gemfile:
82
82
 
83
83
  ```ruby
84
- gem 'snaptrade', '~> 2.0.141'
84
+ gem 'snaptrade', '~> 2.0.143'
85
85
  ```
86
86
 
87
87
  ## Getting Started<a id="getting-started"></a>
@@ -140,6 +140,8 @@ Transaction are returned in reverse chronological order, using the `trade_date`
140
140
 
141
141
  The data returned here is always cached and refreshed once a day.
142
142
 
143
+ If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
144
+
143
145
 
144
146
  #### 🛠️ Usage<a id="🛠️-usage"></a>
145
147
 
@@ -252,6 +254,8 @@ Returns a list of balances for the account. Each element of the list has a disti
252
254
 
253
255
  The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
254
256
 
257
+ If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
258
+
255
259
 
256
260
  #### 🛠️ Usage<a id="🛠️-usage"></a>
257
261
 
@@ -288,6 +292,8 @@ Returns account detail known to SnapTrade for the specified account.
288
292
 
289
293
  The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
290
294
 
295
+ If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
296
+
291
297
 
292
298
  #### 🛠️ Usage<a id="🛠️-usage"></a>
293
299
 
@@ -369,6 +375,8 @@ Returns a list of recent orders in the specified account.
369
375
 
370
376
  The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
371
377
 
378
+ If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
379
+
372
380
 
373
381
  #### 🛠️ Usage<a id="🛠️-usage"></a>
374
382
 
@@ -414,6 +422,8 @@ Returns a list of stock/ETF/crypto/mutual fund positions in the specified accoun
414
422
 
415
423
  The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
416
424
 
425
+ If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
426
+
417
427
 
418
428
  #### 🛠️ Usage<a id="🛠️-usage"></a>
419
429
 
@@ -1948,6 +1958,7 @@ result = snaptrade.trading.place_force_order(
1948
1958
  user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1949
1959
  universal_symbol_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
1950
1960
  symbol: "AAPL",
1961
+ trading_session: "REGULAR",
1951
1962
  price: 31.33,
1952
1963
  stop: 31.33,
1953
1964
  units: 10.5,
@@ -1992,6 +2003,12 @@ provided, otherwise must be provided.
1992
2003
  The security's trading ticker symbol. If 'symbol' is provided, then
1993
2004
  'universal_symbol_id' must be 'null'.
1994
2005
 
2006
+ ##### trading_session: [`TradingSession`](./lib/snaptrade/models/trading_session.rb)<a id="trading_session-tradingsessionlibsnaptrademodelstrading_sessionrb"></a>
2007
+ The trading session for the order. This field indicates which market session the
2008
+ order will be placed in. This is only available for certain brokerages. Defaults
2009
+ to REGULAR. Here are the supported values: - `REGULAR` - Regular trading hours.
2010
+ - `EXTENDED` - Extended trading hours.
2011
+
1995
2012
  ##### price: `Float`<a id="price-float"></a>
1996
2013
  The limit price for `Limit` and `StopLimit` orders.
1997
2014
 
@@ -26,6 +26,8 @@ module SnapTrade
26
26
  # Transaction are returned in reverse chronological order, using the `trade_date` field.
27
27
  #
28
28
  # The data returned here is always cached and refreshed once a day.
29
+ #
30
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
29
31
  #
30
32
  # @param account_id [String]
31
33
  # @param user_id [String]
@@ -55,6 +57,8 @@ module SnapTrade
55
57
  # Transaction are returned in reverse chronological order, using the `trade_date` field.
56
58
  #
57
59
  # The data returned here is always cached and refreshed once a day.
60
+ #
61
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
58
62
  #
59
63
  # @param account_id [String]
60
64
  # @param user_id [String]
@@ -75,7 +79,7 @@ module SnapTrade
75
79
  end
76
80
 
77
81
  # List account activities
78
- # Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day.
82
+ # Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the `trade_date` field. The data returned here is always cached and refreshed once a day. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
79
83
  # @param account_id [String]
80
84
  # @param user_id [String]
81
85
  # @param user_secret [String]
@@ -92,7 +96,7 @@ module SnapTrade
92
96
  end
93
97
 
94
98
  # List account activities
95
- # Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the &#x60;trade_date&#x60; field. The data returned here is always cached and refreshed once a day.
99
+ # Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the &#x60;trade_date&#x60; field. The data returned here is always cached and refreshed once a day. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
96
100
  # @param account_id [String]
97
101
  # @param user_id [String]
98
102
  # @param user_secret [String]
@@ -288,6 +292,8 @@ module SnapTrade
288
292
  # Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances).
289
293
  #
290
294
  # The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
295
+ #
296
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
291
297
  #
292
298
  # @param user_id [String]
293
299
  # @param user_secret [String]
@@ -303,6 +309,8 @@ module SnapTrade
303
309
  # Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances).
304
310
  #
305
311
  # The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
312
+ #
313
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
306
314
  #
307
315
  # @param user_id [String]
308
316
  # @param user_secret [String]
@@ -313,7 +321,7 @@ module SnapTrade
313
321
  end
314
322
 
315
323
  # List account balances
316
- # Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
324
+ # Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
317
325
  # @param user_id [String]
318
326
  # @param user_secret [String]
319
327
  # @param account_id [String]
@@ -325,7 +333,7 @@ module SnapTrade
325
333
  end
326
334
 
327
335
  # List account balances
328
- # Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
336
+ # Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
329
337
  # @param user_id [String]
330
338
  # @param user_secret [String]
331
339
  # @param account_id [String]
@@ -395,6 +403,8 @@ module SnapTrade
395
403
  # Returns account detail known to SnapTrade for the specified account.
396
404
  #
397
405
  # The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
406
+ #
407
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
398
408
  #
399
409
  # @param user_id [String]
400
410
  # @param user_secret [String]
@@ -410,6 +420,8 @@ module SnapTrade
410
420
  # Returns account detail known to SnapTrade for the specified account.
411
421
  #
412
422
  # The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
423
+ #
424
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
413
425
  #
414
426
  # @param user_id [String]
415
427
  # @param user_secret [String]
@@ -420,7 +432,7 @@ module SnapTrade
420
432
  end
421
433
 
422
434
  # Get account detail
423
- # Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
435
+ # Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
424
436
  # @param user_id [String]
425
437
  # @param user_secret [String]
426
438
  # @param account_id [String]
@@ -432,7 +444,7 @@ module SnapTrade
432
444
  end
433
445
 
434
446
  # Get account detail
435
- # Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
447
+ # Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
436
448
  # @param user_id [String]
437
449
  # @param user_secret [String]
438
450
  # @param account_id [String]
@@ -638,6 +650,8 @@ module SnapTrade
638
650
  # Returns a list of recent orders in the specified account.
639
651
  #
640
652
  # The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
653
+ #
654
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
641
655
  #
642
656
  # @param user_id [String]
643
657
  # @param user_secret [String]
@@ -657,6 +671,8 @@ module SnapTrade
657
671
  # Returns a list of recent orders in the specified account.
658
672
  #
659
673
  # The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
674
+ #
675
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
660
676
  #
661
677
  # @param user_id [String]
662
678
  # @param user_secret [String]
@@ -671,7 +687,7 @@ module SnapTrade
671
687
  end
672
688
 
673
689
  # List account orders
674
- # Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
690
+ # Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
675
691
  # @param user_id [String]
676
692
  # @param user_secret [String]
677
693
  # @param account_id [String]
@@ -685,7 +701,7 @@ module SnapTrade
685
701
  end
686
702
 
687
703
  # List account orders
688
- # Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
704
+ # Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
689
705
  # @param user_id [String]
690
706
  # @param user_secret [String]
691
707
  # @param account_id [String]
@@ -767,6 +783,8 @@ module SnapTrade
767
783
  # Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings).
768
784
  #
769
785
  # The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
786
+ #
787
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
770
788
  #
771
789
  # @param user_id [String]
772
790
  # @param user_secret [String]
@@ -782,6 +800,8 @@ module SnapTrade
782
800
  # Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings).
783
801
  #
784
802
  # The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
803
+ #
804
+ # If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
785
805
  #
786
806
  # @param user_id [String]
787
807
  # @param user_secret [String]
@@ -792,7 +812,7 @@ module SnapTrade
792
812
  end
793
813
 
794
814
  # List account positions
795
- # Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
815
+ # Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
796
816
  # @param user_id [String]
797
817
  # @param user_secret [String]
798
818
  # @param account_id [String]
@@ -804,7 +824,7 @@ module SnapTrade
804
824
  end
805
825
 
806
826
  # List account positions
807
- # Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
827
+ # Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
808
828
  # @param user_id [String]
809
829
  # @param user_secret [String]
810
830
  # @param account_id [String]
@@ -989,13 +989,14 @@ module SnapTrade
989
989
  # @param user_secret [String]
990
990
  # @param universal_symbol_id [String] The universal symbol ID of the security to trade. Must be 'null' if `symbol` is provided, otherwise must be provided.
991
991
  # @param symbol [String] The security's trading ticker symbol. If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
992
+ # @param trading_session [TradingSession] The trading session for the order. This field indicates which market session the order will be placed in. This is only available for certain brokerages. Defaults to REGULAR. Here are the supported values: - `REGULAR` - Regular trading hours. - `EXTENDED` - Extended trading hours.
992
993
  # @param price [Float] The limit price for `Limit` and `StopLimit` orders.
993
994
  # @param stop [Float] The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
994
995
  # @param units [Float] For Equity orders, this represents the number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided. If placing an Option order, this field represents the number of contracts to buy or sell. (e.g., 1 contract = 100 shares).
995
996
  # @param notional_value [ManualTradeFormNotionalValue]
996
997
  # @param body [ManualTradeFormWithOptions]
997
998
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
998
- def place_force_order(account_id:, action:, order_type:, time_in_force:, user_id:, user_secret:, universal_symbol_id: SENTINEL, symbol: SENTINEL, price: SENTINEL, stop: SENTINEL, units: SENTINEL, notional_value: SENTINEL, extra: {})
999
+ def place_force_order(account_id:, action:, order_type:, time_in_force:, user_id:, user_secret:, universal_symbol_id: SENTINEL, symbol: SENTINEL, trading_session: 'REGULAR', price: SENTINEL, stop: SENTINEL, units: SENTINEL, notional_value: SENTINEL, extra: {})
999
1000
  _body = {}
1000
1001
  _body[:account_id] = account_id if account_id != SENTINEL
1001
1002
  _body[:action] = action if action != SENTINEL
@@ -1003,6 +1004,7 @@ module SnapTrade
1003
1004
  _body[:symbol] = symbol if symbol != SENTINEL
1004
1005
  _body[:order_type] = order_type if order_type != SENTINEL
1005
1006
  _body[:time_in_force] = time_in_force if time_in_force != SENTINEL
1007
+ _body[:trading_session] = trading_session if trading_session != SENTINEL
1006
1008
  _body[:price] = price if price != SENTINEL
1007
1009
  _body[:stop] = stop if stop != SENTINEL
1008
1010
  _body[:units] = units if units != SENTINEL
@@ -1028,13 +1030,14 @@ module SnapTrade
1028
1030
  # @param user_secret [String]
1029
1031
  # @param universal_symbol_id [String] The universal symbol ID of the security to trade. Must be 'null' if `symbol` is provided, otherwise must be provided.
1030
1032
  # @param symbol [String] The security's trading ticker symbol. If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
1033
+ # @param trading_session [TradingSession] The trading session for the order. This field indicates which market session the order will be placed in. This is only available for certain brokerages. Defaults to REGULAR. Here are the supported values: - `REGULAR` - Regular trading hours. - `EXTENDED` - Extended trading hours.
1031
1034
  # @param price [Float] The limit price for `Limit` and `StopLimit` orders.
1032
1035
  # @param stop [Float] The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
1033
1036
  # @param units [Float] For Equity orders, this represents the number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided. If placing an Option order, this field represents the number of contracts to buy or sell. (e.g., 1 contract = 100 shares).
1034
1037
  # @param notional_value [ManualTradeFormNotionalValue]
1035
1038
  # @param body [ManualTradeFormWithOptions]
1036
1039
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1037
- def place_force_order_with_http_info(account_id:, action:, order_type:, time_in_force:, user_id:, user_secret:, universal_symbol_id: SENTINEL, symbol: SENTINEL, price: SENTINEL, stop: SENTINEL, units: SENTINEL, notional_value: SENTINEL, extra: {})
1040
+ def place_force_order_with_http_info(account_id:, action:, order_type:, time_in_force:, user_id:, user_secret:, universal_symbol_id: SENTINEL, symbol: SENTINEL, trading_session: 'REGULAR', price: SENTINEL, stop: SENTINEL, units: SENTINEL, notional_value: SENTINEL, extra: {})
1038
1041
  _body = {}
1039
1042
  _body[:account_id] = account_id if account_id != SENTINEL
1040
1043
  _body[:action] = action if action != SENTINEL
@@ -1042,6 +1045,7 @@ module SnapTrade
1042
1045
  _body[:symbol] = symbol if symbol != SENTINEL
1043
1046
  _body[:order_type] = order_type if order_type != SENTINEL
1044
1047
  _body[:time_in_force] = time_in_force if time_in_force != SENTINEL
1048
+ _body[:trading_session] = trading_session if trading_session != SENTINEL
1045
1049
  _body[:price] = price if price != SENTINEL
1046
1050
  _body[:stop] = stop if stop != SENTINEL
1047
1051
  _body[:units] = units if units != SENTINEL
@@ -31,6 +31,9 @@ module SnapTrade
31
31
  # The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.
32
32
  attr_accessor :time_in_force
33
33
 
34
+ # The trading session for the order. This field indicates which market session the order will be placed in. This is only available for certain brokerages. Defaults to REGULAR. Here are the supported values: - `REGULAR` - Regular trading hours. - `EXTENDED` - Extended trading hours.
35
+ attr_accessor :trading_session
36
+
34
37
  # The limit price for `Limit` and `StopLimit` orders.
35
38
  attr_accessor :price
36
39
 
@@ -51,6 +54,7 @@ module SnapTrade
51
54
  :'symbol' => :'symbol',
52
55
  :'order_type' => :'order_type',
53
56
  :'time_in_force' => :'time_in_force',
57
+ :'trading_session' => :'trading_session',
54
58
  :'price' => :'price',
55
59
  :'stop' => :'stop',
56
60
  :'units' => :'units',
@@ -72,6 +76,7 @@ module SnapTrade
72
76
  :'symbol' => :'String',
73
77
  :'order_type' => :'OrderTypeStrict',
74
78
  :'time_in_force' => :'TimeInForceStrict',
79
+ :'trading_session' => :'TradingSession',
75
80
  :'price' => :'Float',
76
81
  :'stop' => :'Float',
77
82
  :'units' => :'Float',
@@ -130,6 +135,12 @@ module SnapTrade
130
135
  self.time_in_force = attributes[:'time_in_force']
131
136
  end
132
137
 
138
+ if attributes.key?(:'trading_session')
139
+ self.trading_session = attributes[:'trading_session']
140
+ else
141
+ self.trading_session = 'REGULAR'
142
+ end
143
+
133
144
  if attributes.key?(:'price')
134
145
  self.price = attributes[:'price']
135
146
  end
@@ -191,6 +202,7 @@ module SnapTrade
191
202
  symbol == o.symbol &&
192
203
  order_type == o.order_type &&
193
204
  time_in_force == o.time_in_force &&
205
+ trading_session == o.trading_session &&
194
206
  price == o.price &&
195
207
  stop == o.stop &&
196
208
  units == o.units &&
@@ -206,7 +218,7 @@ module SnapTrade
206
218
  # Calculates hash code according to all attributes.
207
219
  # @return [Integer] Hash code
208
220
  def hash
209
- [account_id, action, universal_symbol_id, symbol, order_type, time_in_force, price, stop, units, notional_value].hash
221
+ [account_id, action, universal_symbol_id, symbol, order_type, time_in_force, trading_session, price, stop, units, notional_value].hash
210
222
  end
211
223
 
212
224
  # Builds the object from hash
@@ -0,0 +1,37 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'date'
11
+ require 'time'
12
+
13
+ module SnapTrade
14
+ class TradingSession
15
+ REGULAR = "REGULAR".freeze
16
+ EXTENDED = "EXTENDED".freeze
17
+
18
+ def self.all_vars
19
+ @all_vars ||= [REGULAR, EXTENDED].freeze
20
+ end
21
+
22
+ # Builds the enum from string
23
+ # @param [String] The enum value in the form of the string
24
+ # @return [String] The enum value
25
+ def self.build_from_hash(value)
26
+ new.build_from_hash(value)
27
+ end
28
+
29
+ # Builds the enum from string
30
+ # @param [String] The enum value in the form of the string
31
+ # @return [String] The enum value
32
+ def build_from_hash(value)
33
+ return value if TradingSession.all_vars.include?(value)
34
+ raise "Invalid ENUM value #{value} for class #TradingSession"
35
+ end
36
+ end
37
+ end
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.141'
11
+ VERSION = '2.0.143'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -161,6 +161,7 @@ require 'snaptrade/models/timeframe'
161
161
  require 'snaptrade/models/trading_instrument'
162
162
  require 'snaptrade/models/trading_instrument_type'
163
163
  require 'snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response'
164
+ require 'snaptrade/models/trading_session'
164
165
  require 'snaptrade/models/transactions_status'
165
166
  require 'snaptrade/models/type'
166
167
  require 'snaptrade/models/us_exchange'
@@ -29,7 +29,7 @@ describe 'AccountInformationApi' do
29
29
 
30
30
  # unit tests for get_account_activities
31
31
  # List account activities
32
- # Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the &#x60;trade_date&#x60; field. The data returned here is always cached and refreshed once a day.
32
+ # Returns all historical transactions for the specified account. This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options. Transaction are returned in reverse chronological order, using the &#x60;trade_date&#x60; field. The data returned here is always cached and refreshed once a day. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
33
33
  # @param account_id
34
34
  # @param user_id
35
35
  # @param user_secret
@@ -62,7 +62,7 @@ describe 'AccountInformationApi' do
62
62
 
63
63
  # unit tests for get_user_account_balance
64
64
  # List account balances
65
- # Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
65
+ # Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
66
66
  # @param user_id
67
67
  # @param user_secret
68
68
  # @param account_id
@@ -76,7 +76,7 @@ describe 'AccountInformationApi' do
76
76
 
77
77
  # unit tests for get_user_account_details
78
78
  # Get account detail
79
- # Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
79
+ # Returns account detail known to SnapTrade for the specified account. The data returned here is always cached and refreshed once a day. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
80
80
  # @param user_id
81
81
  # @param user_secret
82
82
  # @param account_id
@@ -105,7 +105,7 @@ describe 'AccountInformationApi' do
105
105
 
106
106
  # unit tests for get_user_account_orders
107
107
  # List account orders
108
- # Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
108
+ # Returns a list of recent orders in the specified account. The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
109
109
  # @param user_id
110
110
  # @param user_secret
111
111
  # @param account_id
@@ -121,7 +121,7 @@ describe 'AccountInformationApi' do
121
121
 
122
122
  # unit tests for get_user_account_positions
123
123
  # List account positions
124
- # Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
124
+ # Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings). The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v&#x3D;d16c4c97b8d5438bbb2d8581ac53b11e) and look for \&quot;Cache Expiry Time\&quot; to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
125
125
  # @param user_id
126
126
  # @param user_secret
127
127
  # @param account_id
@@ -56,6 +56,12 @@ describe SnapTrade::ManualTradeFormWithOptions do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "trading_session"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  describe 'test attribute "price"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,23 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SnapTrade::TradingSession
15
+ describe SnapTrade::TradingSession do
16
+ let(:instance) { SnapTrade::TradingSession.new }
17
+
18
+ describe 'test an instance of TradingSession' do
19
+ it 'should create an instance of TradingSession' do
20
+ expect(instance).to be_instance_of(SnapTrade::TradingSession)
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.141
4
+ version: 2.0.143
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-08 00:00:00.000000000 Z
11
+ date: 2025-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -240,6 +240,7 @@ files:
240
240
  - lib/snaptrade/models/trading_instrument.rb
241
241
  - lib/snaptrade/models/trading_instrument_type.rb
242
242
  - lib/snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response.rb
243
+ - lib/snaptrade/models/trading_session.rb
243
244
  - lib/snaptrade/models/transactions_status.rb
244
245
  - lib/snaptrade/models/type.rb
245
246
  - lib/snaptrade/models/underlying_symbol.rb
@@ -408,6 +409,7 @@ files:
408
409
  - spec/models/trading_instrument_spec.rb
409
410
  - spec/models/trading_instrument_type_spec.rb
410
411
  - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
412
+ - spec/models/trading_session_spec.rb
411
413
  - spec/models/transactions_status_spec.rb
412
414
  - spec/models/type_spec.rb
413
415
  - spec/models/underlying_symbol_exchange_spec.rb
@@ -585,6 +587,7 @@ test_files:
585
587
  - spec/models/symbol_query_spec.rb
586
588
  - spec/models/strategy_order_record_spec.rb
587
589
  - spec/models/model403_feature_not_enabled_response_spec.rb
590
+ - spec/models/trading_session_spec.rb
588
591
  - spec/models/action_strict_spec.rb
589
592
  - spec/models/crypto_order_form_type_spec.rb
590
593
  - spec/models/pagination_details_spec.rb