snaptrade 2.0.200 → 2.0.201
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 -6
- data/lib/snaptrade/api/account_information_api.rb +4 -8
- data/lib/snaptrade/api/trading_api.rb +4 -2
- 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: 599095255a9ceb4e75ded90cf082f6c1b95504b2b2cf719b86c0df7cc427336a
|
|
4
|
+
data.tar.gz: 6f3daeaf07209a90b6ac822b500d712916264573a3576979956002f10cfda331
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 708c48014c68f06d829f2f35093bb0a1478f40783a7a83885fa525311d1047756c15ccfffb26edfcaed90ad4e15922c5c3debda1b318588db26b8df9a02ae6cf
|
|
7
|
+
data.tar.gz: '029465e317e9b7a1a14d62fa094e7236c8ee244a16d6e7cb468af9a55a27b23eff79e40e782e2bd5aa45ab17f4bc871fe60ec3adf4d511dbcc45b4fa84c447a2'
|
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.201)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -94,7 +94,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
94
94
|
Add to Gemfile:
|
|
95
95
|
|
|
96
96
|
```ruby
|
|
97
|
-
gem 'snaptrade', '~> 2.0.
|
|
97
|
+
gem 'snaptrade', '~> 2.0.201'
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -680,13 +680,10 @@ p result
|
|
|
680
680
|
|
|
681
681
|
|
|
682
682
|
### `snaptrade.account_information.list_user_accounts`<a id="snaptradeaccount_informationlist_user_accounts"></a>
|
|
683
|
-

|
|
684
|
-
|
|
685
|
-
**Deprecated, please use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts) instead.**
|
|
686
683
|
|
|
687
684
|
Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
|
|
688
685
|
|
|
689
|
-
This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the connection
|
|
686
|
+
This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
690
687
|
|
|
691
688
|
|
|
692
689
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -2400,6 +2397,7 @@ Must be `null` if `notional_value` is provided.
|
|
|
2400
2397
|
|
|
2401
2398
|
Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable.
|
|
2402
2399
|
Only supported on certain brokerages.
|
|
2400
|
+
Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for details on which brokerages support complex orders and which types they support.
|
|
2403
2401
|
|
|
2404
2402
|
- **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled.
|
|
2405
2403
|
- **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order.
|
|
@@ -1480,11 +1480,9 @@ module SnapTrade
|
|
|
1480
1480
|
|
|
1481
1481
|
# List accounts
|
|
1482
1482
|
#
|
|
1483
|
-
# **Deprecated, please use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts) instead.**
|
|
1484
|
-
#
|
|
1485
1483
|
# Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
|
|
1486
1484
|
#
|
|
1487
|
-
# This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the connection
|
|
1485
|
+
# This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1488
1486
|
#
|
|
1489
1487
|
# @param user_id [String]
|
|
1490
1488
|
# @param user_secret [String]
|
|
@@ -1496,11 +1494,9 @@ module SnapTrade
|
|
|
1496
1494
|
|
|
1497
1495
|
# List accounts
|
|
1498
1496
|
#
|
|
1499
|
-
# **Deprecated, please use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts) instead.**
|
|
1500
|
-
#
|
|
1501
1497
|
# Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.
|
|
1502
1498
|
#
|
|
1503
|
-
# This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the connection
|
|
1499
|
+
# This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1504
1500
|
#
|
|
1505
1501
|
# @param user_id [String]
|
|
1506
1502
|
# @param user_secret [String]
|
|
@@ -1510,7 +1506,7 @@ module SnapTrade
|
|
|
1510
1506
|
end
|
|
1511
1507
|
|
|
1512
1508
|
# List accounts
|
|
1513
|
-
#
|
|
1509
|
+
# Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1514
1510
|
# @param user_id [String]
|
|
1515
1511
|
# @param user_secret [String]
|
|
1516
1512
|
# @param [Hash] opts the optional parameters
|
|
@@ -1521,7 +1517,7 @@ module SnapTrade
|
|
|
1521
1517
|
end
|
|
1522
1518
|
|
|
1523
1519
|
# List accounts
|
|
1524
|
-
#
|
|
1520
|
+
# Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1525
1521
|
# @param user_id [String]
|
|
1526
1522
|
# @param user_secret [String]
|
|
1527
1523
|
# @param [Hash] opts the optional parameters
|
|
@@ -1085,6 +1085,7 @@ module SnapTrade
|
|
|
1085
1085
|
#
|
|
1086
1086
|
# Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable.
|
|
1087
1087
|
# Only supported on certain brokerages.
|
|
1088
|
+
# Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for details on which brokerages support complex orders and which types they support.
|
|
1088
1089
|
#
|
|
1089
1090
|
# - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled.
|
|
1090
1091
|
# - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order.
|
|
@@ -1112,6 +1113,7 @@ module SnapTrade
|
|
|
1112
1113
|
#
|
|
1113
1114
|
# Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable.
|
|
1114
1115
|
# Only supported on certain brokerages.
|
|
1116
|
+
# Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for details on which brokerages support complex orders and which types they support.
|
|
1115
1117
|
#
|
|
1116
1118
|
# - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled.
|
|
1117
1119
|
# - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order.
|
|
@@ -1135,7 +1137,7 @@ module SnapTrade
|
|
|
1135
1137
|
end
|
|
1136
1138
|
|
|
1137
1139
|
# Place complex order
|
|
1138
|
-
# Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
1140
|
+
# Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for details on which brokerages support complex orders and which types they support. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
1139
1141
|
# @param account_id [String] The ID of the account to execute the trade on.
|
|
1140
1142
|
# @param user_id [String]
|
|
1141
1143
|
# @param user_secret [String]
|
|
@@ -1148,7 +1150,7 @@ module SnapTrade
|
|
|
1148
1150
|
end
|
|
1149
1151
|
|
|
1150
1152
|
# Place complex order
|
|
1151
|
-
# Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
1153
|
+
# Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for details on which brokerages support complex orders and which types they support. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
1152
1154
|
# @param account_id [String] The ID of the account to execute the trade on.
|
|
1153
1155
|
# @param user_id [String]
|
|
1154
1156
|
# @param user_secret [String]
|
data/lib/snaptrade/version.rb
CHANGED
|
@@ -207,7 +207,7 @@ describe 'AccountInformationApi' do
|
|
|
207
207
|
|
|
208
208
|
# unit tests for list_user_accounts
|
|
209
209
|
# List accounts
|
|
210
|
-
#
|
|
210
|
+
# Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user. This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by brokerage. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listBrokerageAuthorizationAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
211
211
|
# @param user_id
|
|
212
212
|
# @param user_secret
|
|
213
213
|
# @param [Hash] opts the optional parameters
|
|
@@ -149,7 +149,7 @@ describe 'TradingApi' do
|
|
|
149
149
|
|
|
150
150
|
# unit tests for place_complex_order
|
|
151
151
|
# Place complex order
|
|
152
|
-
# Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
152
|
+
# Places a complex conditional order (OCO, OTO, or OTOCO). Disabled by default — contact support to enable. Only supported on certain brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for details on which brokerages support complex orders and which types they support. - **OCO** (One Cancels the Other): Two peer orders; when one fills the other is cancelled. - **OTO** (One Triggers the Other): A trigger order that, when filled, activates a conditional order. - **OTOCO** (One Triggers a One Cancels the Other): A trigger order that, when filled, activates an OCO pair of two peer orders.
|
|
153
153
|
# @param account_id The ID of the account to execute the trade on.
|
|
154
154
|
# @param user_id
|
|
155
155
|
# @param user_secret
|
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.201
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|