snaptrade 2.0.152 → 2.0.154
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 +2 -3
- data/lib/snaptrade/api/account_information_api.rb +2 -4
- data/lib/snaptrade/models/account_universal_activity.rb +1 -1
- data/lib/snaptrade/models/mleg_trading_instrument.rb +1 -1
- data/lib/snaptrade/models/trading_instrument.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/account_information_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: 8cd1d97980cff323ce7a0c014067ebece91e61c5c0bca3ac4c279359e07bd4ce
|
|
4
|
+
data.tar.gz: ee721036231bc1c63bfea1671868266e873647b75591e286fb113e32ccf14e56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed039802d30c1f9945a826e92ce41fb07e12f90d437eb980a64b9f075f37e49737887e7ff36851285484010591cb23c7d7a578fda1a3edd546b586f184cb9154
|
|
7
|
+
data.tar.gz: a5f558aac9e37a85488b9a9e6785e861caf75e855043059a3985aaa8acea6702b9b9b2dccda31a93964cecef938f58754cebbb1d4bc8c7e6829da43348ba2f47
|
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.154)
|
|
10
10
|
[](https://snaptrade.com/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -83,7 +83,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
|
83
83
|
Add to Gemfile:
|
|
84
84
|
|
|
85
85
|
```ruby
|
|
86
|
-
gem 'snaptrade', '~> 2.0.
|
|
86
|
+
gem 'snaptrade', '~> 2.0.154'
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -471,7 +471,6 @@ A lightweight endpoint that returns a list of orders executed in the last 24 hou
|
|
|
471
471
|
This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders
|
|
472
472
|
Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days
|
|
473
473
|
By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
474
|
-
**Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
|
|
475
474
|
|
|
476
475
|
|
|
477
476
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -911,7 +911,6 @@ module SnapTrade
|
|
|
911
911
|
# This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders
|
|
912
912
|
# Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days
|
|
913
913
|
# By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
914
|
-
# **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
|
|
915
914
|
#
|
|
916
915
|
# @param user_id [String]
|
|
917
916
|
# @param user_secret [String]
|
|
@@ -930,7 +929,6 @@ module SnapTrade
|
|
|
930
929
|
# This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders
|
|
931
930
|
# Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days
|
|
932
931
|
# By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
933
|
-
# **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**
|
|
934
932
|
#
|
|
935
933
|
# @param user_id [String]
|
|
936
934
|
# @param user_secret [String]
|
|
@@ -943,7 +941,7 @@ module SnapTrade
|
|
|
943
941
|
end
|
|
944
942
|
|
|
945
943
|
# List account recent orders (last 24 hours only)
|
|
946
|
-
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
944
|
+
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
947
945
|
# @param user_id [String]
|
|
948
946
|
# @param user_secret [String]
|
|
949
947
|
# @param account_id [String]
|
|
@@ -956,7 +954,7 @@ module SnapTrade
|
|
|
956
954
|
end
|
|
957
955
|
|
|
958
956
|
# List account recent orders (last 24 hours only)
|
|
959
|
-
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
957
|
+
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
960
958
|
# @param user_id [String]
|
|
961
959
|
# @param user_secret [String]
|
|
962
960
|
# @param account_id [String]
|
|
@@ -31,7 +31,7 @@ module SnapTrade
|
|
|
31
31
|
|
|
32
32
|
attr_accessor :currency
|
|
33
33
|
|
|
34
|
-
# A string representing the type of transaction. SnapTrade does a best effort to categorize the brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX
|
|
34
|
+
# A string representing the type of transaction. SnapTrade does a best effort to categorize the brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of asset(s) from one account to another. - `EXTERNAL_ASSET_TRANSFER_IN` - Incoming transfer of an asset from an external account to this account. - `EXTERNAL_ASSET_TRANSFER_OUT` - Outgoing transfer of an asset from this account to an external account. - `SPLIT` - A stock share split. - `ADJUSTMENT` - A one time adjustment of the account's cash balance or shares of an asset
|
|
35
35
|
attr_accessor :type
|
|
36
36
|
|
|
37
37
|
# If an option `BUY` or `SELL` transaction, this further specifies the type of action. The possible values are: - BUY_TO_OPEN - BUY_TO_CLOSE - SELL_TO_OPEN - SELL_TO_CLOSE
|
|
@@ -12,7 +12,7 @@ require 'time'
|
|
|
12
12
|
|
|
13
13
|
module SnapTrade
|
|
14
14
|
class MlegTradingInstrument
|
|
15
|
-
# The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL
|
|
15
|
+
# The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
16
16
|
attr_accessor :symbol
|
|
17
17
|
|
|
18
18
|
# The instrument's type
|
|
@@ -12,7 +12,7 @@ require 'time'
|
|
|
12
12
|
|
|
13
13
|
module SnapTrade
|
|
14
14
|
class TradingInstrument
|
|
15
|
-
# The instrument's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL
|
|
15
|
+
# The instrument's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 251114C00240000` represents a call option on AAPL expiring on 2025-11-14 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
16
16
|
attr_accessor :symbol
|
|
17
17
|
|
|
18
18
|
# The instrument's type
|
data/lib/snaptrade/version.rb
CHANGED
|
@@ -135,7 +135,7 @@ describe 'AccountInformationApi' do
|
|
|
135
135
|
|
|
136
136
|
# unit tests for get_user_account_recent_orders
|
|
137
137
|
# List account recent orders (last 24 hours only)
|
|
138
|
-
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
138
|
+
# A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days By default only returns executed orders, but that can be changed by setting *only_executed* to false
|
|
139
139
|
# @param user_id
|
|
140
140
|
# @param user_secret
|
|
141
141
|
# @param account_id
|
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.154
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|