snaptrade 2.0.109 → 2.0.110
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 +2 -2
- data/README.md +3 -3
- data/lib/snaptrade/api/trading_api.rb +4 -4
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/trading_api_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a135d97662bbbf9ae5daa1e5956ff9c8b9c5d72e4d6c4a33d8e04f2f3c5f9c9e
|
4
|
+
data.tar.gz: eda561033fd4444b86d4df97e71f051c2e646885efe189bb80987d0b29f8f35e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 695f6df5697b640e690c8472696335ddeb67ffc4c5a66f0b6f2f326b156e28e5bc991cb1a3c9fcec5c3df01a3efc3d9e77c4bc17767cdc8b0a338ff2fd965ae6
|
7
|
+
data.tar.gz: 6c993b20e9f99a42a9f3a3f17b69bb83e2d4d9bf651e072143e59544d9f611a8f0d07fa279ecd1ef9da43843e82401ebc9efe4cf64dc4b054a29a44260be342b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
snaptrade (2.0.
|
4
|
+
snaptrade (2.0.110)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -50,7 +50,7 @@ GEM
|
|
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.
|
53
|
+
rspec-core (3.13.5)
|
54
54
|
rspec-support (~> 3.13.0)
|
55
55
|
rspec-expectations (3.13.5)
|
56
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
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.110)
|
10
10
|
[](https://snaptrade.com/)
|
11
11
|
|
12
12
|
</div>
|
@@ -82,7 +82,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
82
82
|
Add to Gemfile:
|
83
83
|
|
84
84
|
```ruby
|
85
|
-
gem 'snaptrade', '~> 2.0.
|
85
|
+
gem 'snaptrade', '~> 2.0.110'
|
86
86
|
```
|
87
87
|
|
88
88
|
## Getting Started<a id="getting-started"></a>
|
@@ -1997,7 +1997,7 @@ contracts to buy or sell. (e.g., 1 contract = 100 shares).
|
|
1997
1997
|
|
1998
1998
|
### `snaptrade.trading.place_mleg_order`<a id="snaptradetradingplace_mleg_order"></a>
|
1999
1999
|
|
2000
|
-
Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
2000
|
+
Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support.
|
2001
2001
|
|
2002
2002
|
|
2003
2003
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
@@ -954,7 +954,7 @@ module SnapTrade
|
|
954
954
|
|
955
955
|
# Place multi-leg option order
|
956
956
|
#
|
957
|
-
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
957
|
+
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support.
|
958
958
|
#
|
959
959
|
# @param order_type [MlegOrderTypeStrict] The type of order to place.
|
960
960
|
# @param time_in_force [TimeInForceStrict] 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.
|
@@ -982,7 +982,7 @@ module SnapTrade
|
|
982
982
|
|
983
983
|
# Place multi-leg option order
|
984
984
|
#
|
985
|
-
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
985
|
+
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support.
|
986
986
|
#
|
987
987
|
# @param order_type [MlegOrderTypeStrict] The type of order to place.
|
988
988
|
# @param time_in_force [TimeInForceStrict] 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.
|
@@ -1008,7 +1008,7 @@ module SnapTrade
|
|
1008
1008
|
end
|
1009
1009
|
|
1010
1010
|
# Place multi-leg option order
|
1011
|
-
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
1011
|
+
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support.
|
1012
1012
|
# @param user_id [String]
|
1013
1013
|
# @param user_secret [String]
|
1014
1014
|
# @param account_id [String]
|
@@ -1021,7 +1021,7 @@ module SnapTrade
|
|
1021
1021
|
end
|
1022
1022
|
|
1023
1023
|
# Place multi-leg option order
|
1024
|
-
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
1024
|
+
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support.
|
1025
1025
|
# @param user_id [String]
|
1026
1026
|
# @param user_secret [String]
|
1027
1027
|
# @param account_id [String]
|
data/lib/snaptrade/version.rb
CHANGED
@@ -133,7 +133,7 @@ describe 'TradingApi' do
|
|
133
133
|
|
134
134
|
# unit tests for place_mleg_order
|
135
135
|
# Place multi-leg option order
|
136
|
-
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
|
136
|
+
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support.
|
137
137
|
# @param user_id
|
138
138
|
# @param user_secret
|
139
139
|
# @param account_id
|