snaptrade 2.0.112 → 2.0.113
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 -2
- data/lib/snaptrade/api/trading_api.rb +16 -16
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/trading_api_spec.rb +4 -4
- 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: 5c8414fe113d2fbcf57068fdf8abd6a3d780a6821598ec5e7721570720f1c8b8
|
4
|
+
data.tar.gz: ff961ec2d3e3b3950fc1fd56c93444d6f386fa6a96b495b42a179f50d744f1b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4773fe79516dea7a09c7567b63a2e76922bcfd7cec6fa5044dca9379117336a61d816d97e99ea8655531afadbb4114440875a3a1c9dcfe540cb718c119b12090
|
7
|
+
data.tar.gz: fd635308f0b5d66f93de6f3b8a7a582b740f47b852cec63341d78ede7c3f865b307bd8a5315ba3d97370845935d84ce3f8cb7a5908a1c9f7dd37362840609754
|
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.113)
|
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.113'
|
86
86
|
```
|
87
87
|
|
88
88
|
## Getting Started<a id="getting-started"></a>
|
@@ -17,7 +17,7 @@ module SnapTrade
|
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
19
|
|
20
|
-
# Cancel
|
20
|
+
# Cancel crypto order
|
21
21
|
#
|
22
22
|
# Cancels an order in the specified account.
|
23
23
|
#
|
@@ -31,7 +31,7 @@ module SnapTrade
|
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
34
|
-
# Cancel
|
34
|
+
# Cancel crypto order
|
35
35
|
#
|
36
36
|
# Cancels an order in the specified account.
|
37
37
|
#
|
@@ -44,7 +44,7 @@ module SnapTrade
|
|
44
44
|
cancel_order_with_http_info_impl(user_id, user_secret, account_id, brokerage_order_id, extra)
|
45
45
|
end
|
46
46
|
|
47
|
-
# Cancel
|
47
|
+
# Cancel crypto order
|
48
48
|
# Cancels an order in the specified account.
|
49
49
|
# @param user_id [String]
|
50
50
|
# @param user_secret [String]
|
@@ -57,7 +57,7 @@ module SnapTrade
|
|
57
57
|
data
|
58
58
|
end
|
59
59
|
|
60
|
-
# Cancel
|
60
|
+
# Cancel crypto order
|
61
61
|
# Cancels an order in the specified account.
|
62
62
|
# @param user_id [String]
|
63
63
|
# @param user_secret [String]
|
@@ -1220,7 +1220,7 @@ module SnapTrade
|
|
1220
1220
|
end
|
1221
1221
|
|
1222
1222
|
|
1223
|
-
# Place order
|
1223
|
+
# Place crypto order
|
1224
1224
|
#
|
1225
1225
|
# Places an order in the specified account.
|
1226
1226
|
# This endpoint does not compute the impact to the account balance from the order before submitting the order.
|
@@ -1255,7 +1255,7 @@ module SnapTrade
|
|
1255
1255
|
data
|
1256
1256
|
end
|
1257
1257
|
|
1258
|
-
# Place order
|
1258
|
+
# Place crypto order
|
1259
1259
|
#
|
1260
1260
|
# Places an order in the specified account.
|
1261
1261
|
# This endpoint does not compute the impact to the account balance from the order before submitting the order.
|
@@ -1289,7 +1289,7 @@ module SnapTrade
|
|
1289
1289
|
place_simple_order_with_http_info_impl(user_id, user_secret, account_id, simple_order_form, extra)
|
1290
1290
|
end
|
1291
1291
|
|
1292
|
-
# Place order
|
1292
|
+
# Place crypto order
|
1293
1293
|
# Places an order in the specified account. This endpoint does not compute the impact to the account balance from the order before submitting the order.
|
1294
1294
|
# @param user_id [String]
|
1295
1295
|
# @param user_secret [String]
|
@@ -1302,7 +1302,7 @@ module SnapTrade
|
|
1302
1302
|
data
|
1303
1303
|
end
|
1304
1304
|
|
1305
|
-
# Place order
|
1305
|
+
# Place crypto order
|
1306
1306
|
# Places an order in the specified account. This endpoint does not compute the impact to the account balance from the order before submitting the order.
|
1307
1307
|
# @param user_id [String]
|
1308
1308
|
# @param user_secret [String]
|
@@ -1378,7 +1378,7 @@ module SnapTrade
|
|
1378
1378
|
end
|
1379
1379
|
|
1380
1380
|
|
1381
|
-
# Preview order
|
1381
|
+
# Preview crypto order
|
1382
1382
|
#
|
1383
1383
|
# Previews an order using the specified account.
|
1384
1384
|
#
|
@@ -1412,7 +1412,7 @@ module SnapTrade
|
|
1412
1412
|
data
|
1413
1413
|
end
|
1414
1414
|
|
1415
|
-
# Preview order
|
1415
|
+
# Preview crypto order
|
1416
1416
|
#
|
1417
1417
|
# Previews an order using the specified account.
|
1418
1418
|
#
|
@@ -1445,7 +1445,7 @@ module SnapTrade
|
|
1445
1445
|
preview_simple_order_with_http_info_impl(user_id, user_secret, account_id, simple_order_form, extra)
|
1446
1446
|
end
|
1447
1447
|
|
1448
|
-
# Preview order
|
1448
|
+
# Preview crypto order
|
1449
1449
|
# Previews an order using the specified account.
|
1450
1450
|
# @param user_id [String]
|
1451
1451
|
# @param user_secret [String]
|
@@ -1458,7 +1458,7 @@ module SnapTrade
|
|
1458
1458
|
data
|
1459
1459
|
end
|
1460
1460
|
|
1461
|
-
# Preview order
|
1461
|
+
# Preview crypto order
|
1462
1462
|
# Previews an order using the specified account.
|
1463
1463
|
# @param user_id [String]
|
1464
1464
|
# @param user_secret [String]
|
@@ -1534,7 +1534,7 @@ module SnapTrade
|
|
1534
1534
|
end
|
1535
1535
|
|
1536
1536
|
|
1537
|
-
#
|
1537
|
+
# Replace crypto order
|
1538
1538
|
#
|
1539
1539
|
# Replaces an existing pending order with a new one. The way this works is brokerage dependent, but usually involves cancelling
|
1540
1540
|
# the existing order and placing a new one. The order's brokerage_order_id may or may not change, be sure to use the one
|
@@ -1567,7 +1567,7 @@ module SnapTrade
|
|
1567
1567
|
data
|
1568
1568
|
end
|
1569
1569
|
|
1570
|
-
#
|
1570
|
+
# Replace crypto order
|
1571
1571
|
#
|
1572
1572
|
# Replaces an existing pending order with a new one. The way this works is brokerage dependent, but usually involves cancelling
|
1573
1573
|
# the existing order and placing a new one. The order's brokerage_order_id may or may not change, be sure to use the one
|
@@ -1599,7 +1599,7 @@ module SnapTrade
|
|
1599
1599
|
replace_order_with_http_info_impl(account_id, brokerage_order_id, user_id, user_secret, manual_trade_replace_form, extra)
|
1600
1600
|
end
|
1601
1601
|
|
1602
|
-
#
|
1602
|
+
# Replace crypto order
|
1603
1603
|
# Replaces an existing pending order with a new one. The way this works is brokerage dependent, but usually involves cancelling the existing order and placing a new one. The order's brokerage_order_id may or may not change, be sure to use the one returned in the response going forward. Only supported on some brokerages
|
1604
1604
|
# @param account_id [String] The ID of the account to execute the trade on.
|
1605
1605
|
# @param brokerage_order_id [String] The Brokerage Order ID of the order to replace.
|
@@ -1613,7 +1613,7 @@ module SnapTrade
|
|
1613
1613
|
data
|
1614
1614
|
end
|
1615
1615
|
|
1616
|
-
#
|
1616
|
+
# Replace crypto order
|
1617
1617
|
# Replaces an existing pending order with a new one. The way this works is brokerage dependent, but usually involves cancelling the existing order and placing a new one. The order's brokerage_order_id may or may not change, be sure to use the one returned in the response going forward. Only supported on some brokerages
|
1618
1618
|
# @param account_id [String] The ID of the account to execute the trade on.
|
1619
1619
|
# @param brokerage_order_id [String] The Brokerage Order ID of the order to replace.
|
data/lib/snaptrade/version.rb
CHANGED
@@ -28,7 +28,7 @@ describe 'TradingApi' do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
# unit tests for cancel_order
|
31
|
-
# Cancel
|
31
|
+
# Cancel crypto order
|
32
32
|
# Cancels an order in the specified account.
|
33
33
|
# @param user_id
|
34
34
|
# @param user_secret
|
@@ -162,7 +162,7 @@ describe 'TradingApi' do
|
|
162
162
|
end
|
163
163
|
|
164
164
|
# unit tests for place_simple_order
|
165
|
-
# Place order
|
165
|
+
# Place crypto order
|
166
166
|
# Places an order in the specified account. This endpoint does not compute the impact to the account balance from the order before submitting the order.
|
167
167
|
# @param user_id
|
168
168
|
# @param user_secret
|
@@ -177,7 +177,7 @@ describe 'TradingApi' do
|
|
177
177
|
end
|
178
178
|
|
179
179
|
# unit tests for preview_simple_order
|
180
|
-
# Preview order
|
180
|
+
# Preview crypto order
|
181
181
|
# Previews an order using the specified account.
|
182
182
|
# @param user_id
|
183
183
|
# @param user_secret
|
@@ -192,7 +192,7 @@ describe 'TradingApi' do
|
|
192
192
|
end
|
193
193
|
|
194
194
|
# unit tests for replace_order
|
195
|
-
#
|
195
|
+
# Replace crypto order
|
196
196
|
# Replaces an existing pending order with a new one. The way this works is brokerage dependent, but usually involves cancelling the existing order and placing a new one. The order's brokerage_order_id may or may not change, be sure to use the one returned in the response going forward. Only supported on some brokerages
|
197
197
|
# @param account_id The ID of the account to execute the trade on.
|
198
198
|
# @param brokerage_order_id The Brokerage Order ID of the order to replace.
|