snaptrade 2.0.125 → 2.0.126
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 +15 -4
- data/lib/snaptrade/api/account_information_api.rb +12 -4
- data/lib/snaptrade/api/trading_api.rb +16 -4
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/account_information_api_spec.rb +1 -1
- data/spec/api/trading_api_spec.rb +1 -1
- 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: 43137f138b8350fe0965e3a2a323075c292dc33820eb0f0e9539a18919627bd1
|
4
|
+
data.tar.gz: 4abe81884e2b96419e60f492ee407f042f30f032b1dc529a24b89ec6bb3b3321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60cf996815603a779d72c3aa5e4cb88e704004e88c09f11e00fc75808c6a649fb93d10abba6fe15a7f278466165a0bb0906cfabc9aa5562f8272fa56594897dc
|
7
|
+
data.tar.gz: 3aff0d1f2d907de76459213fc6d2a2b17f0eeb88c4dce9029ea4ce7ab306177c8b65d76798b77449edadd89d5f970c1c26d50a1196775d69f7dd447467506305
|
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.126)
|
10
10
|
[](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.
|
84
|
+
gem 'snaptrade', '~> 2.0.126'
|
85
85
|
```
|
86
86
|
|
87
87
|
## Getting Started<a id="getting-started"></a>
|
@@ -320,7 +320,11 @@ p result
|
|
320
320
|
|
321
321
|
### `snaptrade.account_information.get_user_account_order_detail`<a id="snaptradeaccount_informationget_user_account_order_detail"></a>
|
322
322
|
|
323
|
-
Returns the detail of a single order in the specified account.
|
323
|
+
Returns the detail of a single order in the specified account.
|
324
|
+
|
325
|
+
This endpoint is always realtime and does not rely on cached data.
|
326
|
+
|
327
|
+
This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
324
328
|
|
325
329
|
|
326
330
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
@@ -1689,7 +1693,14 @@ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
|
|
1689
1693
|
|
1690
1694
|
### `snaptrade.trading.get_user_account_quotes`<a id="snaptradetradingget_user_account_quotes"></a>
|
1691
1695
|
|
1692
|
-
Returns quotes from the brokerage for the specified symbols and account.
|
1696
|
+
Returns quotes from the brokerage for the specified symbols and account.
|
1697
|
+
|
1698
|
+
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.
|
1699
|
+
|
1700
|
+
This endpoint does not work for options quotes.
|
1701
|
+
|
1702
|
+
This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
1703
|
+
|
1693
1704
|
|
1694
1705
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
1695
1706
|
|
@@ -499,7 +499,11 @@ module SnapTrade
|
|
499
499
|
|
500
500
|
# Get account order detail
|
501
501
|
#
|
502
|
-
# Returns the detail of a single order in the specified account.
|
502
|
+
# Returns the detail of a single order in the specified account.
|
503
|
+
#
|
504
|
+
# This endpoint is always realtime and does not rely on cached data.
|
505
|
+
#
|
506
|
+
# This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
503
507
|
#
|
504
508
|
# @param user_id [String]
|
505
509
|
# @param user_secret [String]
|
@@ -513,7 +517,11 @@ module SnapTrade
|
|
513
517
|
|
514
518
|
# Get account order detail
|
515
519
|
#
|
516
|
-
# Returns the detail of a single order in the specified account.
|
520
|
+
# Returns the detail of a single order in the specified account.
|
521
|
+
#
|
522
|
+
# This endpoint is always realtime and does not rely on cached data.
|
523
|
+
#
|
524
|
+
# This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
517
525
|
#
|
518
526
|
# @param user_id [String]
|
519
527
|
# @param user_secret [String]
|
@@ -525,7 +533,7 @@ module SnapTrade
|
|
525
533
|
end
|
526
534
|
|
527
535
|
# Get account order detail
|
528
|
-
# Returns the detail of a single order in the specified account.
|
536
|
+
# Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
529
537
|
# @param user_id [String]
|
530
538
|
# @param user_secret [String]
|
531
539
|
# @param account_id [String]
|
@@ -538,7 +546,7 @@ module SnapTrade
|
|
538
546
|
end
|
539
547
|
|
540
548
|
# Get account order detail
|
541
|
-
# Returns the detail of a single order in the specified account.
|
549
|
+
# Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
542
550
|
# @param user_id [String]
|
543
551
|
# @param user_secret [String]
|
544
552
|
# @param account_id [String]
|
@@ -528,7 +528,13 @@ module SnapTrade
|
|
528
528
|
|
529
529
|
# Get equity symbol quotes
|
530
530
|
#
|
531
|
-
# Returns quotes from the brokerage for the specified symbols and account.
|
531
|
+
# Returns quotes from the brokerage for the specified symbols and account.
|
532
|
+
#
|
533
|
+
# 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.
|
534
|
+
#
|
535
|
+
# This endpoint does not work for options quotes.
|
536
|
+
#
|
537
|
+
# This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
532
538
|
#
|
533
539
|
# @param user_id [String]
|
534
540
|
# @param user_secret [String]
|
@@ -544,7 +550,13 @@ module SnapTrade
|
|
544
550
|
|
545
551
|
# Get equity symbol quotes
|
546
552
|
#
|
547
|
-
# Returns quotes from the brokerage for the specified symbols and account.
|
553
|
+
# Returns quotes from the brokerage for the specified symbols and account.
|
554
|
+
#
|
555
|
+
# 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.
|
556
|
+
#
|
557
|
+
# This endpoint does not work for options quotes.
|
558
|
+
#
|
559
|
+
# This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
548
560
|
#
|
549
561
|
# @param user_id [String]
|
550
562
|
# @param user_secret [String]
|
@@ -558,7 +570,7 @@ module SnapTrade
|
|
558
570
|
end
|
559
571
|
|
560
572
|
# Get equity symbol quotes
|
561
|
-
# Returns quotes from the brokerage for the specified symbols and account.
|
573
|
+
# 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 does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
562
574
|
# @param user_id [String]
|
563
575
|
# @param user_secret [String]
|
564
576
|
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
|
@@ -572,7 +584,7 @@ module SnapTrade
|
|
572
584
|
end
|
573
585
|
|
574
586
|
# Get equity symbol quotes
|
575
|
-
# Returns quotes from the brokerage for the specified symbols and account.
|
587
|
+
# 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 does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
576
588
|
# @param user_id [String]
|
577
589
|
# @param user_secret [String]
|
578
590
|
# @param symbols [String] List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
|
data/lib/snaptrade/version.rb
CHANGED
@@ -90,7 +90,7 @@ describe 'AccountInformationApi' do
|
|
90
90
|
|
91
91
|
# unit tests for get_user_account_order_detail
|
92
92
|
# Get account order detail
|
93
|
-
# Returns the detail of a single order in the specified account.
|
93
|
+
# Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
94
94
|
# @param user_id
|
95
95
|
# @param user_secret
|
96
96
|
# @param account_id
|
@@ -88,7 +88,7 @@ describe 'TradingApi' do
|
|
88
88
|
|
89
89
|
# unit tests for get_user_account_quotes
|
90
90
|
# Get equity symbol quotes
|
91
|
-
# Returns quotes from the brokerage for the specified symbols and account.
|
91
|
+
# 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 does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
|
92
92
|
# @param user_id
|
93
93
|
# @param user_secret
|
94
94
|
# @param symbols List of Universal Symbol IDs or tickers to get quotes for. When providing multiple values, use a comma as separator
|
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.126
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|