snaptrade 2.0.191 → 2.0.192
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/lib/snaptrade/api/trading_api.rb +8 -8
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/trading_api_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ede6e6181e46a7500e67d7e924f252bc910cf62589cbf0d62fddf63920e3879
|
|
4
|
+
data.tar.gz: 5788add5fcbebce33f39e072191df96cac0e961cfb0e171845360b1cd2b99c2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fcb591561aef1f10e2da66be446a595a1fb25045295f501d833f1cb0b788bcc9957f5f0fe9d38d47825dbf498a80417e42e88bc8c1dd2299690694dc197f44d
|
|
7
|
+
data.tar.gz: ffffe7b8ee6e417a32b19547e44488bb068d9ef6b5446b492fe89d6651241fdcb27d0087f0ae45d06de5b6949b44972f6e41400e0743c82e98c07aebbc4aafc0
|
data/Gemfile.lock
CHANGED
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
|
-
[](https://rubygems.org/gems/snaptrade/versions/2.0.192)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -91,7 +91,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
91
91
|
Add to Gemfile:
|
|
92
92
|
|
|
93
93
|
```ruby
|
|
94
|
-
gem 'snaptrade', '~> 2.0.
|
|
94
|
+
gem 'snaptrade', '~> 2.0.192'
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -2154,7 +2154,7 @@ The OCC-formatted option symbol.
|
|
|
2154
2154
|
|
|
2155
2155
|
### `snaptrade.trading.get_user_account_quotes`<a id="snaptradetradingget_user_account_quotes"></a>
|
|
2156
2156
|
|
|
2157
|
-
Returns quotes from the brokerage for the specified symbols and account.
|
|
2157
|
+
Returns a maximum of 10 quotes from the brokerage for the specified symbols and account.
|
|
2158
2158
|
|
|
2159
2159
|
The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint.
|
|
2160
2160
|
|
|
@@ -2184,7 +2184,7 @@ p result
|
|
|
2184
2184
|
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
2185
2185
|
##### symbols: `String`<a id="symbols-string"></a>
|
|
2186
2186
|
List of Universal Symbol IDs or tickers to get quotes for. When providing
|
|
2187
|
-
multiple values, use a comma as separator
|
|
2187
|
+
multiple values, use a comma as separator. Maximum of 10 values allowed
|
|
2188
2188
|
|
|
2189
2189
|
##### account_id: `String`<a id="account_id-string"></a>
|
|
2190
2190
|
##### use_ticker: `Boolean`<a id="use_ticker-boolean"></a>
|
|
@@ -788,7 +788,7 @@ module SnapTrade
|
|
|
788
788
|
|
|
789
789
|
# Get equity symbol quotes
|
|
790
790
|
#
|
|
791
|
-
# Returns quotes from the brokerage for the specified symbols and account.
|
|
791
|
+
# Returns a maximum of 10 quotes from the brokerage for the specified symbols and account.
|
|
792
792
|
#
|
|
793
793
|
# The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint.
|
|
794
794
|
#
|
|
@@ -800,7 +800,7 @@ module SnapTrade
|
|
|
800
800
|
#
|
|
801
801
|
# @param user_id [String]
|
|
802
802
|
# @param user_secret [String]
|
|
803
|
-
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
|
|
803
|
+
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator. Maximum of 10 values allowed
|
|
804
804
|
# @param account_id [String]
|
|
805
805
|
# @param use_ticker [Boolean] Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
|
|
806
806
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
@@ -812,7 +812,7 @@ module SnapTrade
|
|
|
812
812
|
|
|
813
813
|
# Get equity symbol quotes
|
|
814
814
|
#
|
|
815
|
-
# Returns quotes from the brokerage for the specified symbols and account.
|
|
815
|
+
# Returns a maximum of 10 quotes from the brokerage for the specified symbols and account.
|
|
816
816
|
#
|
|
817
817
|
# The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint.
|
|
818
818
|
#
|
|
@@ -824,7 +824,7 @@ module SnapTrade
|
|
|
824
824
|
#
|
|
825
825
|
# @param user_id [String]
|
|
826
826
|
# @param user_secret [String]
|
|
827
|
-
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
|
|
827
|
+
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator. Maximum of 10 values allowed
|
|
828
828
|
# @param account_id [String]
|
|
829
829
|
# @param use_ticker [Boolean] Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
|
|
830
830
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
@@ -834,10 +834,10 @@ module SnapTrade
|
|
|
834
834
|
end
|
|
835
835
|
|
|
836
836
|
# Get equity symbol quotes
|
|
837
|
-
# Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
|
837
|
+
# Returns a maximum of 10 quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
|
838
838
|
# @param user_id [String]
|
|
839
839
|
# @param user_secret [String]
|
|
840
|
-
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
|
|
840
|
+
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator. Maximum of 10 values allowed
|
|
841
841
|
# @param account_id [String]
|
|
842
842
|
# @param [Hash] opts the optional parameters
|
|
843
843
|
# @option opts [Boolean] :use_ticker Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
|
|
@@ -848,10 +848,10 @@ module SnapTrade
|
|
|
848
848
|
end
|
|
849
849
|
|
|
850
850
|
# Get equity symbol quotes
|
|
851
|
-
# Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
|
851
|
+
# Returns a maximum of 10 quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
|
852
852
|
# @param user_id [String]
|
|
853
853
|
# @param user_secret [String]
|
|
854
|
-
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
|
|
854
|
+
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator. Maximum of 10 values allowed
|
|
855
855
|
# @param account_id [String]
|
|
856
856
|
# @param [Hash] opts the optional parameters
|
|
857
857
|
# @option opts [Boolean] :use_ticker Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
|
data/lib/snaptrade/version.rb
CHANGED
|
@@ -118,10 +118,10 @@ describe 'TradingApi' do
|
|
|
118
118
|
|
|
119
119
|
# unit tests for get_user_account_quotes
|
|
120
120
|
# Get equity symbol quotes
|
|
121
|
-
# Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
|
121
|
+
# Returns a maximum of 10 quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. **This endpoint is not a substitute for a market data provider. Frequent polling of this endpoint may result in the disabling of your keys** This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
|
122
122
|
# @param user_id
|
|
123
123
|
# @param user_secret
|
|
124
|
-
# @param symbols List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
|
|
124
|
+
# @param symbols List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator. Maximum of 10 values allowed
|
|
125
125
|
# @param account_id
|
|
126
126
|
# @param [Hash] opts the optional parameters
|
|
127
127
|
# @option opts [Boolean] :use_ticker Should be set to `True` if `symbols` are comprised of tickers. Defaults to `False` if not provided.
|
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.
|
|
4
|
+
version: 2.0.192
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|