snaptrade 2.0.17 → 2.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d92b0f13dc8029767eab7132f8eb60c79cabd15cd4b67d4a791eaeda3002d40
4
- data.tar.gz: ea03b59315889c14157aa3b1eb287207a2464ba8829bc7bcbfce4f7b6be4facc
3
+ metadata.gz: 3c958613ed72d29c4acd1238bbf384d1c91a08577f00fa97f89f8644d272a0d2
4
+ data.tar.gz: 3ff004f0161f765c4b6016780f48dd0523fb64f1ff70295e85962fdbdb7136cf
5
5
  SHA512:
6
- metadata.gz: f462f87c7d23bc96049bab41e0ede58f1456b9b49c832acc87d3b085eb425992d7c001057a4be2e179a609647cbe23aa3ade7d069011e5d9a3b2d1b0a596cd40
7
- data.tar.gz: 768feef57059c893141b5ee4aeb0cc57ea99145de77e733112cd6650d67449e8cffcadfe6ba18ec0af2f928e63fbd28d669d07a5784fa86d3af38314611bef20
6
+ metadata.gz: 0c83408740c4ed256dcf514d3fe4341e5b74118c971e565d44b916fe146a71a2291570330633e9c2cdee9ed475696f26173d03cce5c2796f9f60521590b59456
7
+ data.tar.gz: f428fb791c310d50595ff13b460e2dc9529a5cf87368e83cc3874f4b09537d69bfac031df88e0c4920ad15554c75d11496bb226e306085c41beef85766f8d24d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.16)
4
+ snaptrade (2.0.18)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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
- [![npm](https://img.shields.io/badge/gem-v2.0.17-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.17)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.19-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.19)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -69,7 +69,7 @@ Connect brokerage accounts to your app for live positions and trading
69
69
  Add to Gemfile:
70
70
 
71
71
  ```ruby
72
- gem 'snaptrade', '~> 2.0.17'
72
+ gem 'snaptrade', '~> 2.0.19'
73
73
  ```
74
74
 
75
75
  ## Getting Started<a id="getting-started"></a>
@@ -109,6 +109,7 @@ p.result[3] # [Faraday::Response] Raw HTTP response
109
109
 
110
110
 
111
111
  ### `snaptrade.account_information.get_all_user_holdings`<a id="snaptradeaccount_informationget_all_user_holdings"></a>
112
+ ![Deprecated](https://img.shields.io/badge/deprecated-yellow)
112
113
 
113
114
  Lists balances, positions and orders for the specified account. The data returned is similar to
114
115
  the data returned over the more fine-grained **positions**, **orders** and **balances** endpoints.
@@ -676,7 +677,7 @@ The ID of a brokerage authorization object.
676
677
 
677
678
  ### `snaptrade.connections.list_brokerage_authorizations`<a id="snaptradeconnectionslist_brokerage_authorizations"></a>
678
679
 
679
- Returns a list of Brokerage Autherization objects for the specified userId.
680
+ Returns a list of Brokerage Authorization objects for the user
680
681
 
681
682
  #### 🛠️ Usage<a id="🛠️-usage"></a>
682
683
 
@@ -958,7 +959,7 @@ p result
958
959
 
959
960
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
960
961
 
961
- ##### order_type: [`OrderType`](./lib/snaptrade/models/order_type.rb)<a id="order_type-ordertypelibsnaptrademodelsorder_typerb"></a>
962
+ ##### order_type: [`OrderTypeStrict`](./lib/snaptrade/models/order_type_strict.rb)<a id="order_type-ordertypestrictlibsnaptrademodelsorder_type_strictrb"></a>
962
963
  Order Type
963
964
 
964
965
  ##### time_in_force: [`TimeInForceStrict`](./lib/snaptrade/models/time_in_force_strict.rb)<a id="time_in_force-timeinforcestrictlibsnaptrademodelstime_in_force_strictrb"></a>
@@ -991,7 +992,7 @@ Trade Price if limit or stop limit order
991
992
 
992
993
  ### `snaptrade.reference_data.get_currency_exchange_rate_pair`<a id="snaptradereference_dataget_currency_exchange_rate_pair"></a>
993
994
 
994
- Return the exchange rate of a currency pair
995
+ Returns an Exchange Rate Pair object for the specified Currency Pair.
995
996
 
996
997
  #### 🛠️ Usage<a id="🛠️-usage"></a>
997
998
 
@@ -1070,7 +1071,7 @@ p result
1070
1071
 
1071
1072
  ### `snaptrade.reference_data.get_stock_exchanges`<a id="snaptradereference_dataget_stock_exchanges"></a>
1072
1073
 
1073
- List exchanges
1074
+ Returns a list of all supported Exchanges.
1074
1075
 
1075
1076
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1076
1077
 
@@ -1094,7 +1095,10 @@ p result
1094
1095
 
1095
1096
  ### `snaptrade.reference_data.get_symbols`<a id="snaptradereference_dataget_symbols"></a>
1096
1097
 
1097
- Search for symbols
1098
+ Returns a list of Universal Symbol objects that match a defined string.
1099
+
1100
+ Matches on ticker or name.
1101
+
1098
1102
 
1099
1103
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1100
1104
 
@@ -1123,7 +1127,7 @@ p result
1123
1127
 
1124
1128
  ### `snaptrade.reference_data.get_symbols_by_ticker`<a id="snaptradereference_dataget_symbols_by_ticker"></a>
1125
1129
 
1126
- Get details of a symbol by the ticker or the universal_symbol_id
1130
+ Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
1127
1131
 
1128
1132
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1129
1133
 
@@ -1154,7 +1158,7 @@ The ticker or universal_symbol_id of the UniversalSymbol to get.
1154
1158
 
1155
1159
  ### `snaptrade.reference_data.list_all_brokerage_authorization_type`<a id="snaptradereference_datalist_all_brokerage_authorization_type"></a>
1156
1160
 
1157
- List of all brokerage authorization types
1161
+ Returns a list of all defined Brokerage authorization Type objects.
1158
1162
 
1159
1163
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1160
1164
 
@@ -1185,7 +1189,7 @@ Comma separated value of brokerage slugs
1185
1189
 
1186
1190
  ### `snaptrade.reference_data.list_all_brokerages`<a id="snaptradereference_datalist_all_brokerages"></a>
1187
1191
 
1188
- List brokerages
1192
+ Returns a list of all defined Brokerage objects.
1189
1193
 
1190
1194
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1191
1195
 
@@ -1209,7 +1213,7 @@ p result
1209
1213
 
1210
1214
  ### `snaptrade.reference_data.list_all_currencies`<a id="snaptradereference_datalist_all_currencies"></a>
1211
1215
 
1212
- List currencies
1216
+ Returns a list of all defined Currency objects.
1213
1217
 
1214
1218
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1215
1219
 
@@ -1233,7 +1237,7 @@ p result
1233
1237
 
1234
1238
  ### `snaptrade.reference_data.list_all_currencies_rates`<a id="snaptradereference_datalist_all_currencies_rates"></a>
1235
1239
 
1236
- List currency exchange rates
1240
+ Returns a list of all Exchange Rate Pairs for all supported Currencies.
1237
1241
 
1238
1242
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1239
1243
 
@@ -1336,7 +1340,7 @@ The ID of the account to cancel the order in.
1336
1340
 
1337
1341
  ### `snaptrade.trading.get_order_impact`<a id="snaptradetradingget_order_impact"></a>
1338
1342
 
1339
- Check impact of trades on account.
1343
+ Return the trade object and it's impact on the account for the specified order.
1340
1344
 
1341
1345
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1342
1346
 
@@ -1365,7 +1369,7 @@ p result
1365
1369
  ##### action: [`Action`](./lib/snaptrade/models/action.rb)<a id="action-actionlibsnaptrademodelsactionrb"></a>
1366
1370
  Trade Action
1367
1371
 
1368
- ##### order_type: [`OrderType`](./lib/snaptrade/models/order_type.rb)<a id="order_type-ordertypelibsnaptrademodelsorder_typerb"></a>
1372
+ ##### order_type: [`OrderTypeStrict`](./lib/snaptrade/models/order_type_strict.rb)<a id="order_type-ordertypestrictlibsnaptrademodelsorder_type_strictrb"></a>
1369
1373
  Order Type
1370
1374
 
1371
1375
  ##### price: `Float`<a id="price-float"></a>
@@ -1439,7 +1443,7 @@ Should be set to True if providing tickers.
1439
1443
 
1440
1444
  ### `snaptrade.trading.place_force_order`<a id="snaptradetradingplace_force_order"></a>
1441
1445
 
1442
- Place a trade with NO validation.
1446
+ Places a specified trade in the specified account.
1443
1447
 
1444
1448
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1445
1449
 
@@ -1468,7 +1472,7 @@ p result
1468
1472
  ##### action: [`Action`](./lib/snaptrade/models/action.rb)<a id="action-actionlibsnaptrademodelsactionrb"></a>
1469
1473
  Trade Action
1470
1474
 
1471
- ##### order_type: [`OrderType`](./lib/snaptrade/models/order_type.rb)<a id="order_type-ordertypelibsnaptrademodelsorder_typerb"></a>
1475
+ ##### order_type: [`OrderTypeStrict`](./lib/snaptrade/models/order_type_strict.rb)<a id="order_type-ordertypestrictlibsnaptrademodelsorder_type_strictrb"></a>
1472
1476
  Order Type
1473
1477
 
1474
1478
  ##### price: `Float`<a id="price-float"></a>
@@ -1499,7 +1503,9 @@ Canceled
1499
1503
 
1500
1504
  ### `snaptrade.trading.place_order`<a id="snaptradetradingplace_order"></a>
1501
1505
 
1502
- Place order
1506
+ Places the specified trade object. This places the order in the account and
1507
+ returns the status of the order from the brokerage.
1508
+
1503
1509
 
1504
1510
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1505
1511
 
@@ -1596,6 +1602,7 @@ FXT
1596
1602
 
1597
1603
 
1598
1604
  ### `snaptrade.transactions_and_reporting.get_reporting_custom_range`<a id="snaptradetransactions_and_reportingget_reporting_custom_range"></a>
1605
+ ![Deprecated](https://img.shields.io/badge/deprecated-yellow)
1599
1606
 
1600
1607
  Returns performance information (contributions, dividends, rate of return, etc) for a specific timeframe. Please note that Total Equity Timeframe and Rate of Returns are experimental features. Please contact support@snaptrade.com if you notice any inconsistencies.
1601
1608
 
@@ -122,7 +122,7 @@ module SnapTrade
122
122
 
123
123
  # List all brokerage authorizations for the User
124
124
  #
125
- # Returns a list of Brokerage Autherization objects for the specified userId.
125
+ # Returns a list of Brokerage Authorization objects for the user
126
126
  #
127
127
  # @param user_id [String]
128
128
  # @param user_secret [String]
@@ -134,7 +134,7 @@ module SnapTrade
134
134
 
135
135
  # List all brokerage authorizations for the User
136
136
  #
137
- # Returns a list of Brokerage Autherization objects for the specified userId.
137
+ # Returns a list of Brokerage Authorization objects for the user
138
138
  #
139
139
  # @param user_id [String]
140
140
  # @param user_secret [String]
@@ -144,7 +144,7 @@ module SnapTrade
144
144
  end
145
145
 
146
146
  # List all brokerage authorizations for the User
147
- # Returns a list of Brokerage Autherization objects for the specified userId.
147
+ # Returns a list of Brokerage Authorization objects for the user
148
148
  # @param user_id [String]
149
149
  # @param user_secret [String]
150
150
  # @param [Hash] opts the optional parameters
@@ -155,7 +155,7 @@ module SnapTrade
155
155
  end
156
156
 
157
157
  # List all brokerage authorizations for the User
158
- # Returns a list of Brokerage Autherization objects for the specified userId.
158
+ # Returns a list of Brokerage Authorization objects for the user
159
159
  # @param user_id [String]
160
160
  # @param user_secret [String]
161
161
  # @param [Hash] opts the optional parameters
@@ -479,7 +479,7 @@ module SnapTrade
479
479
  #
480
480
  # Places the option strategy order and returns the order record received from the brokerage.
481
481
  #
482
- # @param order_type [OrderType] Order Type
482
+ # @param order_type [OrderTypeStrict] Order Type
483
483
  # @param time_in_force [TimeInForceStrict] Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
484
484
  # @param user_id [String]
485
485
  # @param user_secret [String]
@@ -502,7 +502,7 @@ module SnapTrade
502
502
  #
503
503
  # Places the option strategy order and returns the order record received from the brokerage.
504
504
  #
505
- # @param order_type [OrderType] Order Type
505
+ # @param order_type [OrderTypeStrict] Order Type
506
506
  # @param time_in_force [TimeInForceStrict] Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
507
507
  # @param user_id [String]
508
508
  # @param user_secret [String]
@@ -17,7 +17,9 @@ module SnapTrade
17
17
  @api_client = api_client
18
18
  end
19
19
 
20
- # Return the exchange rate of a currency pair
20
+ # Get exchange rate of a currency pair
21
+ #
22
+ # Returns an Exchange Rate Pair object for the specified Currency Pair.
21
23
  #
22
24
  # @param currency_pair [String] A currency pair based on currency code for example, {CAD-USD}
23
25
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -26,7 +28,9 @@ module SnapTrade
26
28
  data
27
29
  end
28
30
 
29
- # Return the exchange rate of a currency pair
31
+ # Get exchange rate of a currency pair
32
+ #
33
+ # Returns an Exchange Rate Pair object for the specified Currency Pair.
30
34
  #
31
35
  # @param currency_pair [String] A currency pair based on currency code for example, {CAD-USD}
32
36
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -34,7 +38,8 @@ module SnapTrade
34
38
  get_currency_exchange_rate_pair_with_http_info_impl(currency_pair, extra)
35
39
  end
36
40
 
37
- # Return the exchange rate of a currency pair
41
+ # Get exchange rate of a currency pair
42
+ # Returns an Exchange Rate Pair object for the specified Currency Pair.
38
43
  # @param currency_pair [String] A currency pair based on currency code for example, {CAD-USD}
39
44
  # @param [Hash] opts the optional parameters
40
45
  # @return [ExchangeRatePairs]
@@ -43,7 +48,8 @@ module SnapTrade
43
48
  data
44
49
  end
45
50
 
46
- # Return the exchange rate of a currency pair
51
+ # Get exchange rate of a currency pair
52
+ # Returns an Exchange Rate Pair object for the specified Currency Pair.
47
53
  # @param currency_pair [String] A currency pair based on currency code for example, {CAD-USD}
48
54
  # @param [Hash] opts the optional parameters
49
55
  # @return [Array<(ExchangeRatePairs, Integer, Hash)>] ExchangeRatePairs data, response status code and response headers
@@ -250,7 +256,9 @@ module SnapTrade
250
256
  end
251
257
 
252
258
 
253
- # List exchanges
259
+ # Get exchanges
260
+ #
261
+ # Returns a list of all supported Exchanges.
254
262
  #
255
263
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
256
264
  def get_stock_exchanges(extra: {})
@@ -258,14 +266,17 @@ module SnapTrade
258
266
  data
259
267
  end
260
268
 
261
- # List exchanges
269
+ # Get exchanges
270
+ #
271
+ # Returns a list of all supported Exchanges.
262
272
  #
263
273
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
264
274
  def get_stock_exchanges_with_http_info(extra: {})
265
275
  get_stock_exchanges_with_http_info_impl(extra)
266
276
  end
267
277
 
268
- # List exchanges
278
+ # Get exchanges
279
+ # Returns a list of all supported Exchanges.
269
280
  # @param [Hash] opts the optional parameters
270
281
  # @return [Array<Exchange>]
271
282
  private def get_stock_exchanges_impl(opts = {})
@@ -273,7 +284,8 @@ module SnapTrade
273
284
  data
274
285
  end
275
286
 
276
- # List exchanges
287
+ # Get exchanges
288
+ # Returns a list of all supported Exchanges.
277
289
  # @param [Hash] opts the optional parameters
278
290
  # @return [Array<(Array<Exchange>, Integer, Hash)>] Array<Exchange> data, response status code and response headers
279
291
  private def get_stock_exchanges_with_http_info_impl(opts = {})
@@ -323,6 +335,10 @@ module SnapTrade
323
335
 
324
336
  # Search for symbols
325
337
  #
338
+ # Returns a list of Universal Symbol objects that match a defined string.
339
+ #
340
+ # Matches on ticker or name.
341
+ #
326
342
  # @param substring [String]
327
343
  # @param body [SymbolQuery]
328
344
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -336,6 +352,10 @@ module SnapTrade
336
352
 
337
353
  # Search for symbols
338
354
  #
355
+ # Returns a list of Universal Symbol objects that match a defined string.
356
+ #
357
+ # Matches on ticker or name.
358
+ #
339
359
  # @param substring [String]
340
360
  # @param body [SymbolQuery]
341
361
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -347,6 +367,7 @@ module SnapTrade
347
367
  end
348
368
 
349
369
  # Search for symbols
370
+ # Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
350
371
  # @param [Hash] opts the optional parameters
351
372
  # @option opts [SymbolQuery] :symbol_query
352
373
  # @return [Array<UniversalSymbol>]
@@ -356,6 +377,7 @@ module SnapTrade
356
377
  end
357
378
 
358
379
  # Search for symbols
380
+ # Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
359
381
  # @param [Hash] opts the optional parameters
360
382
  # @option opts [SymbolQuery] :symbol_query
361
383
  # @return [Array<(Array<UniversalSymbol>, Integer, Hash)>] Array<UniversalSymbol> data, response status code and response headers
@@ -409,7 +431,9 @@ module SnapTrade
409
431
  end
410
432
 
411
433
 
412
- # Get details of a symbol by the ticker or the universal_symbol_id
434
+ # Get details of a symbol
435
+ #
436
+ # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
413
437
  #
414
438
  # @param query [String] The ticker or universal_symbol_id of the UniversalSymbol to get.
415
439
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -418,7 +442,9 @@ module SnapTrade
418
442
  data
419
443
  end
420
444
 
421
- # Get details of a symbol by the ticker or the universal_symbol_id
445
+ # Get details of a symbol
446
+ #
447
+ # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
422
448
  #
423
449
  # @param query [String] The ticker or universal_symbol_id of the UniversalSymbol to get.
424
450
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -426,7 +452,8 @@ module SnapTrade
426
452
  get_symbols_by_ticker_with_http_info_impl(query, extra)
427
453
  end
428
454
 
429
- # Get details of a symbol by the ticker or the universal_symbol_id
455
+ # Get details of a symbol
456
+ # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
430
457
  # @param query [String] The ticker or universal_symbol_id of the UniversalSymbol to get.
431
458
  # @param [Hash] opts the optional parameters
432
459
  # @return [UniversalSymbol]
@@ -435,7 +462,8 @@ module SnapTrade
435
462
  data
436
463
  end
437
464
 
438
- # Get details of a symbol by the ticker or the universal_symbol_id
465
+ # Get details of a symbol
466
+ # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
439
467
  # @param query [String] The ticker or universal_symbol_id of the UniversalSymbol to get.
440
468
  # @param [Hash] opts the optional parameters
441
469
  # @return [Array<(UniversalSymbol, Integer, Hash)>] UniversalSymbol data, response status code and response headers
@@ -488,7 +516,9 @@ module SnapTrade
488
516
  end
489
517
 
490
518
 
491
- # List of all brokerage authorization types
519
+ # Get all brokerage authorization types
520
+ #
521
+ # Returns a list of all defined Brokerage authorization Type objects.
492
522
  #
493
523
  # @param brokerage [String] Comma separated value of brokerage slugs
494
524
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -498,7 +528,9 @@ module SnapTrade
498
528
  data
499
529
  end
500
530
 
501
- # List of all brokerage authorization types
531
+ # Get all brokerage authorization types
532
+ #
533
+ # Returns a list of all defined Brokerage authorization Type objects.
502
534
  #
503
535
  # @param brokerage [String] Comma separated value of brokerage slugs
504
536
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
@@ -507,7 +539,8 @@ module SnapTrade
507
539
  list_all_brokerage_authorization_type_with_http_info_impl(extra)
508
540
  end
509
541
 
510
- # List of all brokerage authorization types
542
+ # Get all brokerage authorization types
543
+ # Returns a list of all defined Brokerage authorization Type objects.
511
544
  # @param [Hash] opts the optional parameters
512
545
  # @option opts [String] :brokerage Comma separated value of brokerage slugs
513
546
  # @return [Array<BrokerageAuthorizationTypeReadOnly>]
@@ -516,7 +549,8 @@ module SnapTrade
516
549
  data
517
550
  end
518
551
 
519
- # List of all brokerage authorization types
552
+ # Get all brokerage authorization types
553
+ # Returns a list of all defined Brokerage authorization Type objects.
520
554
  # @param [Hash] opts the optional parameters
521
555
  # @option opts [String] :brokerage Comma separated value of brokerage slugs
522
556
  # @return [Array<(Array<BrokerageAuthorizationTypeReadOnly>, Integer, Hash)>] Array<BrokerageAuthorizationTypeReadOnly> data, response status code and response headers
@@ -566,7 +600,9 @@ module SnapTrade
566
600
  end
567
601
 
568
602
 
569
- # List brokerages
603
+ # Get brokerages
604
+ #
605
+ # Returns a list of all defined Brokerage objects.
570
606
  #
571
607
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
572
608
  def list_all_brokerages(extra: {})
@@ -574,14 +610,17 @@ module SnapTrade
574
610
  data
575
611
  end
576
612
 
577
- # List brokerages
613
+ # Get brokerages
614
+ #
615
+ # Returns a list of all defined Brokerage objects.
578
616
  #
579
617
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
580
618
  def list_all_brokerages_with_http_info(extra: {})
581
619
  list_all_brokerages_with_http_info_impl(extra)
582
620
  end
583
621
 
584
- # List brokerages
622
+ # Get brokerages
623
+ # Returns a list of all defined Brokerage objects.
585
624
  # @param [Hash] opts the optional parameters
586
625
  # @return [Array<Brokerage>]
587
626
  private def list_all_brokerages_impl(opts = {})
@@ -589,7 +628,8 @@ module SnapTrade
589
628
  data
590
629
  end
591
630
 
592
- # List brokerages
631
+ # Get brokerages
632
+ # Returns a list of all defined Brokerage objects.
593
633
  # @param [Hash] opts the optional parameters
594
634
  # @return [Array<(Array<Brokerage>, Integer, Hash)>] Array<Brokerage> data, response status code and response headers
595
635
  private def list_all_brokerages_with_http_info_impl(opts = {})
@@ -637,7 +677,9 @@ module SnapTrade
637
677
  end
638
678
 
639
679
 
640
- # List currencies
680
+ # Get currencies
681
+ #
682
+ # Returns a list of all defined Currency objects.
641
683
  #
642
684
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
643
685
  def list_all_currencies(extra: {})
@@ -645,14 +687,17 @@ module SnapTrade
645
687
  data
646
688
  end
647
689
 
648
- # List currencies
690
+ # Get currencies
691
+ #
692
+ # Returns a list of all defined Currency objects.
649
693
  #
650
694
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
651
695
  def list_all_currencies_with_http_info(extra: {})
652
696
  list_all_currencies_with_http_info_impl(extra)
653
697
  end
654
698
 
655
- # List currencies
699
+ # Get currencies
700
+ # Returns a list of all defined Currency objects.
656
701
  # @param [Hash] opts the optional parameters
657
702
  # @return [Array<Currency>]
658
703
  private def list_all_currencies_impl(opts = {})
@@ -660,7 +705,8 @@ module SnapTrade
660
705
  data
661
706
  end
662
707
 
663
- # List currencies
708
+ # Get currencies
709
+ # Returns a list of all defined Currency objects.
664
710
  # @param [Hash] opts the optional parameters
665
711
  # @return [Array<(Array<Currency>, Integer, Hash)>] Array<Currency> data, response status code and response headers
666
712
  private def list_all_currencies_with_http_info_impl(opts = {})
@@ -708,7 +754,9 @@ module SnapTrade
708
754
  end
709
755
 
710
756
 
711
- # List currency exchange rates
757
+ # Get currency exchange rates
758
+ #
759
+ # Returns a list of all Exchange Rate Pairs for all supported Currencies.
712
760
  #
713
761
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
714
762
  def list_all_currencies_rates(extra: {})
@@ -716,14 +764,17 @@ module SnapTrade
716
764
  data
717
765
  end
718
766
 
719
- # List currency exchange rates
767
+ # Get currency exchange rates
768
+ #
769
+ # Returns a list of all Exchange Rate Pairs for all supported Currencies.
720
770
  #
721
771
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
722
772
  def list_all_currencies_rates_with_http_info(extra: {})
723
773
  list_all_currencies_rates_with_http_info_impl(extra)
724
774
  end
725
775
 
726
- # List currency exchange rates
776
+ # Get currency exchange rates
777
+ # Returns a list of all Exchange Rate Pairs for all supported Currencies.
727
778
  # @param [Hash] opts the optional parameters
728
779
  # @return [Array<ExchangeRatePairs>]
729
780
  private def list_all_currencies_rates_impl(opts = {})
@@ -731,7 +782,8 @@ module SnapTrade
731
782
  data
732
783
  end
733
784
 
734
- # List currency exchange rates
785
+ # Get currency exchange rates
786
+ # Returns a list of all Exchange Rate Pairs for all supported Currencies.
735
787
  # @param [Hash] opts the optional parameters
736
788
  # @return [Array<(Array<ExchangeRatePairs>, Integer, Hash)>] Array<ExchangeRatePairs> data, response status code and response headers
737
789
  private def list_all_currencies_rates_with_http_info_impl(opts = {})
@@ -143,13 +143,15 @@ module SnapTrade
143
143
  end
144
144
 
145
145
 
146
- # Check impact of trades on account.
146
+ # Check the impact of a trade on an account
147
+ #
148
+ # Return the trade object and it's impact on the account for the specified order.
147
149
  #
148
150
  # @param user_id [String]
149
151
  # @param user_secret [String]
150
152
  # @param account_id [String]
151
153
  # @param action [Action] Trade Action
152
- # @param order_type [OrderType] Order Type
154
+ # @param order_type [OrderTypeStrict] Order Type
153
155
  # @param price [Float] Trade Price if limit or stop limit order
154
156
  # @param stop [Float] Stop Price. If stop loss or stop limit order, the price to trigger the stop
155
157
  # @param time_in_force [TimeInForceStrict] Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
@@ -174,13 +176,15 @@ module SnapTrade
174
176
  data
175
177
  end
176
178
 
177
- # Check impact of trades on account.
179
+ # Check the impact of a trade on an account
180
+ #
181
+ # Return the trade object and it's impact on the account for the specified order.
178
182
  #
179
183
  # @param user_id [String]
180
184
  # @param user_secret [String]
181
185
  # @param account_id [String]
182
186
  # @param action [Action] Trade Action
183
- # @param order_type [OrderType] Order Type
187
+ # @param order_type [OrderTypeStrict] Order Type
184
188
  # @param price [Float] Trade Price if limit or stop limit order
185
189
  # @param stop [Float] Stop Price. If stop loss or stop limit order, the price to trigger the stop
186
190
  # @param time_in_force [TimeInForceStrict] Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
@@ -204,7 +208,8 @@ module SnapTrade
204
208
  get_order_impact_with_http_info_impl(user_id, user_secret, manual_trade_form, extra)
205
209
  end
206
210
 
207
- # Check impact of trades on account.
211
+ # Check the impact of a trade on an account
212
+ # Return the trade object and it's impact on the account for the specified order.
208
213
  # @param user_id [String]
209
214
  # @param user_secret [String]
210
215
  # @param manual_trade_form [ManualTradeForm]
@@ -215,7 +220,8 @@ module SnapTrade
215
220
  data
216
221
  end
217
222
 
218
- # Check impact of trades on account.
223
+ # Check the impact of a trade on an account
224
+ # Return the trade object and it&#39;s impact on the account for the specified order.
219
225
  # @param user_id [String]
220
226
  # @param user_secret [String]
221
227
  # @param manual_trade_form [ManualTradeForm]
@@ -406,11 +412,13 @@ module SnapTrade
406
412
 
407
413
  # Place a trade with NO validation.
408
414
  #
415
+ # Places a specified trade in the specified account.
416
+ #
409
417
  # @param user_id [String]
410
418
  # @param user_secret [String]
411
419
  # @param account_id [String]
412
420
  # @param action [Action] Trade Action
413
- # @param order_type [OrderType] Order Type
421
+ # @param order_type [OrderTypeStrict] Order Type
414
422
  # @param price [Float] Trade Price if limit or stop limit order
415
423
  # @param stop [Float] Stop Price. If stop loss or stop limit order, the price to trigger the stop
416
424
  # @param time_in_force [TimeInForceStrict] Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
@@ -437,11 +445,13 @@ module SnapTrade
437
445
 
438
446
  # Place a trade with NO validation.
439
447
  #
448
+ # Places a specified trade in the specified account.
449
+ #
440
450
  # @param user_id [String]
441
451
  # @param user_secret [String]
442
452
  # @param account_id [String]
443
453
  # @param action [Action] Trade Action
444
- # @param order_type [OrderType] Order Type
454
+ # @param order_type [OrderTypeStrict] Order Type
445
455
  # @param price [Float] Trade Price if limit or stop limit order
446
456
  # @param stop [Float] Stop Price. If stop loss or stop limit order, the price to trigger the stop
447
457
  # @param time_in_force [TimeInForceStrict] Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
@@ -466,6 +476,7 @@ module SnapTrade
466
476
  end
467
477
 
468
478
  # Place a trade with NO validation.
479
+ # Places a specified trade in the specified account.
469
480
  # @param user_id [String]
470
481
  # @param user_secret [String]
471
482
  # @param manual_trade_form [ManualTradeForm]
@@ -477,6 +488,7 @@ module SnapTrade
477
488
  end
478
489
 
479
490
  # Place a trade with NO validation.
491
+ # Places a specified trade in the specified account.
480
492
  # @param user_id [String]
481
493
  # @param user_secret [String]
482
494
  # @param manual_trade_form [ManualTradeForm]
@@ -548,6 +560,9 @@ module SnapTrade
548
560
 
549
561
  # Place order
550
562
  #
563
+ # Places the specified trade object. This places the order in the account and
564
+ # returns the status of the order from the brokerage.
565
+ #
551
566
  # @param trade_id [String] The ID of trade object obtained from trade/impact endpoint
552
567
  # @param user_id [String]
553
568
  # @param user_secret [String]
@@ -564,6 +579,9 @@ module SnapTrade
564
579
 
565
580
  # Place order
566
581
  #
582
+ # Places the specified trade object. This places the order in the account and
583
+ # returns the status of the order from the brokerage.
584
+ #
567
585
  # @param trade_id [String] The ID of trade object obtained from trade/impact endpoint
568
586
  # @param user_id [String]
569
587
  # @param user_secret [String]
@@ -578,6 +596,7 @@ module SnapTrade
578
596
  end
579
597
 
580
598
  # Place order
599
+ # Places the specified trade object. This places the order in the account and returns the status of the order from the brokerage.
581
600
  # @param trade_id [String] The ID of trade object obtained from trade/impact endpoint
582
601
  # @param user_id [String]
583
602
  # @param user_secret [String]
@@ -590,6 +609,7 @@ module SnapTrade
590
609
  end
591
610
 
592
611
  # Place order
612
+ # Places the specified trade object. This places the order in the account and returns the status of the order from the brokerage.
593
613
  # @param trade_id [String] The ID of trade object obtained from trade/impact endpoint
594
614
  # @param user_id [String]
595
615
  # @param user_secret [String]
@@ -47,7 +47,7 @@ module SnapTrade
47
47
  # Stop Price. If stop loss or stop limit order, the price to trigger the stop
48
48
  attr_accessor :stop_price
49
49
 
50
- # Order Type
50
+ # Order Type potential values include (but are not limited to) - Limit - Market - StopLimit - StopLoss
51
51
  attr_accessor :order_type
52
52
 
53
53
  # Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled * GTD - Good Til Date
@@ -109,7 +109,7 @@ module SnapTrade
109
109
  :'execution_price' => :'Float',
110
110
  :'limit_price' => :'Float',
111
111
  :'stop_price' => :'Float',
112
- :'order_type' => :'OrderType',
112
+ :'order_type' => :'String',
113
113
  :'time_in_force' => :'String',
114
114
  :'time_placed' => :'String',
115
115
  :'time_updated' => :'String',
@@ -128,6 +128,7 @@ module SnapTrade
128
128
  :'execution_price',
129
129
  :'limit_price',
130
130
  :'stop_price',
131
+ :'order_type',
131
132
  :'time_updated',
132
133
  :'time_executed',
133
134
  ])
@@ -57,7 +57,7 @@ module SnapTrade
57
57
  {
58
58
  :'id' => :'String',
59
59
  :'account' => :'String',
60
- :'order_type' => :'OrderType',
60
+ :'order_type' => :'OrderTypeStrict',
61
61
  :'time_in_force' => :'String',
62
62
  :'symbol' => :'ManualTradeSymbol',
63
63
  :'action' => :'Action',
@@ -61,7 +61,7 @@ module SnapTrade
61
61
  {
62
62
  :'account_id' => :'String',
63
63
  :'action' => :'Action',
64
- :'order_type' => :'OrderType',
64
+ :'order_type' => :'OrderTypeStrict',
65
65
  :'price' => :'Float',
66
66
  :'stop' => :'Float',
67
67
  :'time_in_force' => :'TimeInForceStrict',
@@ -38,7 +38,7 @@ module SnapTrade
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'order_type' => :'OrderType',
41
+ :'order_type' => :'OrderTypeStrict',
42
42
  :'time_in_force' => :'TimeInForceStrict',
43
43
  :'price' => :'Float'
44
44
  }
@@ -11,7 +11,7 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- class OrderType
14
+ class OrderTypeStrict
15
15
  LIMIT = "Limit".freeze
16
16
  MARKET = "Market".freeze
17
17
  STOP_LIMIT = "StopLimit".freeze
@@ -32,8 +32,8 @@ module SnapTrade
32
32
  # @param [String] The enum value in the form of the string
33
33
  # @return [String] The enum value
34
34
  def build_from_hash(value)
35
- return value if OrderType.all_vars.include?(value)
36
- raise "Invalid ENUM value #{value} for class #OrderType"
35
+ return value if OrderTypeStrict.all_vars.include?(value)
36
+ raise "Invalid ENUM value #{value} for class #OrderTypeStrict"
37
37
  end
38
38
  end
39
39
  end
@@ -23,7 +23,7 @@ module SnapTrade
23
23
 
24
24
  attr_accessor :closed_quantity
25
25
 
26
- # Order Type
26
+ # Order Type potential values include (but are not limited to) - Limit - Market - StopLimit - StopLoss
27
27
  attr_accessor :order_type
28
28
 
29
29
  # Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled * GTD - Good Til Date
@@ -71,7 +71,7 @@ module SnapTrade
71
71
  :'filled_quantity' => :'Float',
72
72
  :'open_quantity' => :'Float',
73
73
  :'closed_quantity' => :'Float',
74
- :'order_type' => :'OrderType',
74
+ :'order_type' => :'String',
75
75
  :'time_in_force' => :'String',
76
76
  :'limit_price' => :'Float',
77
77
  :'execution_price' => :'Float',
@@ -83,6 +83,7 @@ module SnapTrade
83
83
  # List of attributes with nullable: true
84
84
  def self.openapi_nullable
85
85
  Set.new([
86
+ :'order_type',
86
87
  :'limit_price',
87
88
  :'execution_price',
88
89
  ])
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.17'
11
+ VERSION = '2.0.19'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -92,7 +92,7 @@ require 'snaptrade/models/options_place_option_strategy_request'
92
92
  require 'snaptrade/models/options_position'
93
93
  require 'snaptrade/models/options_position_currency'
94
94
  require 'snaptrade/models/options_symbol'
95
- require 'snaptrade/models/order_type'
95
+ require 'snaptrade/models/order_type_strict'
96
96
  require 'snaptrade/models/partner_data'
97
97
  require 'snaptrade/models/past_value'
98
98
  require 'snaptrade/models/performance_custom'
@@ -43,7 +43,7 @@ describe 'ConnectionsApi' do
43
43
 
44
44
  # unit tests for list_brokerage_authorizations
45
45
  # List all brokerage authorizations for the User
46
- # Returns a list of Brokerage Autherization objects for the specified userId.
46
+ # Returns a list of Brokerage Authorization objects for the user
47
47
  # @param user_id
48
48
  # @param user_secret
49
49
  # @param [Hash] opts the optional parameters
@@ -28,7 +28,8 @@ describe 'ReferenceDataApi' do
28
28
  end
29
29
 
30
30
  # unit tests for get_currency_exchange_rate_pair
31
- # Return the exchange rate of a currency pair
31
+ # Get exchange rate of a currency pair
32
+ # Returns an Exchange Rate Pair object for the specified Currency Pair.
32
33
  # @param currency_pair A currency pair based on currency code for example, {CAD-USD}
33
34
  # @param [Hash] opts the optional parameters
34
35
  # @return [ExchangeRatePairs]
@@ -61,7 +62,8 @@ describe 'ReferenceDataApi' do
61
62
  end
62
63
 
63
64
  # unit tests for get_stock_exchanges
64
- # List exchanges
65
+ # Get exchanges
66
+ # Returns a list of all supported Exchanges.
65
67
  # @param [Hash] opts the optional parameters
66
68
  # @return [Array<Exchange>]
67
69
  describe 'get_stock_exchanges test' do
@@ -72,6 +74,7 @@ describe 'ReferenceDataApi' do
72
74
 
73
75
  # unit tests for get_symbols
74
76
  # Search for symbols
77
+ # Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
75
78
  # @param [Hash] opts the optional parameters
76
79
  # @option opts [SymbolQuery] :symbol_query
77
80
  # @return [Array<UniversalSymbol>]
@@ -82,7 +85,8 @@ describe 'ReferenceDataApi' do
82
85
  end
83
86
 
84
87
  # unit tests for get_symbols_by_ticker
85
- # Get details of a symbol by the ticker or the universal_symbol_id
88
+ # Get details of a symbol
89
+ # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
86
90
  # @param query The ticker or universal_symbol_id of the UniversalSymbol to get.
87
91
  # @param [Hash] opts the optional parameters
88
92
  # @return [UniversalSymbol]
@@ -93,7 +97,8 @@ describe 'ReferenceDataApi' do
93
97
  end
94
98
 
95
99
  # unit tests for list_all_brokerage_authorization_type
96
- # List of all brokerage authorization types
100
+ # Get all brokerage authorization types
101
+ # Returns a list of all defined Brokerage authorization Type objects.
97
102
  # @param [Hash] opts the optional parameters
98
103
  # @option opts [String] :brokerage Comma separated value of brokerage slugs
99
104
  # @return [Array<BrokerageAuthorizationTypeReadOnly>]
@@ -104,7 +109,8 @@ describe 'ReferenceDataApi' do
104
109
  end
105
110
 
106
111
  # unit tests for list_all_brokerages
107
- # List brokerages
112
+ # Get brokerages
113
+ # Returns a list of all defined Brokerage objects.
108
114
  # @param [Hash] opts the optional parameters
109
115
  # @return [Array<Brokerage>]
110
116
  describe 'list_all_brokerages test' do
@@ -114,7 +120,8 @@ describe 'ReferenceDataApi' do
114
120
  end
115
121
 
116
122
  # unit tests for list_all_currencies
117
- # List currencies
123
+ # Get currencies
124
+ # Returns a list of all defined Currency objects.
118
125
  # @param [Hash] opts the optional parameters
119
126
  # @return [Array<Currency>]
120
127
  describe 'list_all_currencies test' do
@@ -124,7 +131,8 @@ describe 'ReferenceDataApi' do
124
131
  end
125
132
 
126
133
  # unit tests for list_all_currencies_rates
127
- # List currency exchange rates
134
+ # Get currency exchange rates
135
+ # Returns a list of all Exchange Rate Pairs for all supported Currencies.
128
136
  # @param [Hash] opts the optional parameters
129
137
  # @return [Array<ExchangeRatePairs>]
130
138
  describe 'list_all_currencies_rates test' do
@@ -43,7 +43,8 @@ describe 'TradingApi' do
43
43
  end
44
44
 
45
45
  # unit tests for get_order_impact
46
- # Check impact of trades on account.
46
+ # Check the impact of a trade on an account
47
+ # Return the trade object and it&#39;s impact on the account for the specified order.
47
48
  # @param user_id
48
49
  # @param user_secret
49
50
  # @param manual_trade_form
@@ -73,6 +74,7 @@ describe 'TradingApi' do
73
74
 
74
75
  # unit tests for place_force_order
75
76
  # Place a trade with NO validation.
77
+ # Places a specified trade in the specified account.
76
78
  # @param user_id
77
79
  # @param user_secret
78
80
  # @param manual_trade_form
@@ -86,6 +88,7 @@ describe 'TradingApi' do
86
88
 
87
89
  # unit tests for place_order
88
90
  # Place order
91
+ # Places the specified trade object. This places the order in the account and returns the status of the order from the brokerage.
89
92
  # @param trade_id The ID of trade object obtained from trade/impact endpoint
90
93
  # @param user_id
91
94
  # @param user_secret
@@ -0,0 +1,23 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SnapTrade::OrderTypeStrict
15
+ describe SnapTrade::OrderTypeStrict do
16
+ let(:instance) { SnapTrade::OrderTypeStrict.new }
17
+
18
+ describe 'test an instance of OrderTypeStrict' do
19
+ it 'should create an instance of OrderTypeStrict' do
20
+ expect(instance).to be_instance_of(SnapTrade::OrderTypeStrict)
21
+ end
22
+ end
23
+ end
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.17
4
+ version: 2.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-08 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -171,7 +171,7 @@ files:
171
171
  - lib/snaptrade/models/options_position.rb
172
172
  - lib/snaptrade/models/options_position_currency.rb
173
173
  - lib/snaptrade/models/options_symbol.rb
174
- - lib/snaptrade/models/order_type.rb
174
+ - lib/snaptrade/models/order_type_strict.rb
175
175
  - lib/snaptrade/models/partner_data.rb
176
176
  - lib/snaptrade/models/past_value.rb
177
177
  - lib/snaptrade/models/performance_custom.rb
@@ -315,7 +315,7 @@ files:
315
315
  - spec/models/options_position_currency_spec.rb
316
316
  - spec/models/options_position_spec.rb
317
317
  - spec/models/options_symbol_spec.rb
318
- - spec/models/order_type_spec.rb
318
+ - spec/models/order_type_strict_spec.rb
319
319
  - spec/models/partner_data_spec.rb
320
320
  - spec/models/past_value_spec.rb
321
321
  - spec/models/performance_custom_spec.rb
@@ -459,7 +459,6 @@ test_files:
459
459
  - spec/models/brokerage_authorization_type_type_spec.rb
460
460
  - spec/models/portfolio_group_settings_spec.rb
461
461
  - spec/models/encrypted_response_spec.rb
462
- - spec/models/order_type_spec.rb
463
462
  - spec/models/time_in_force_strict_spec.rb
464
463
  - spec/models/account_simple_spec.rb
465
464
  - spec/models/manual_trade_balance_spec.rb
@@ -492,6 +491,7 @@ test_files:
492
491
  - spec/models/portfolio_group_position_spec.rb
493
492
  - spec/models/strategy_type_spec.rb
494
493
  - spec/models/figi_instrument_spec.rb
494
+ - spec/models/order_type_strict_spec.rb
495
495
  - spec/models/option_leg_action_spec.rb
496
496
  - spec/models/trade_impact_spec.rb
497
497
  - spec/models/symbol_query_spec.rb
@@ -1,23 +0,0 @@
1
- =begin
2
- #SnapTrade
3
-
4
- #Connect brokerage accounts to your app for live positions and trading
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: api@snaptrade.com
8
- =end
9
-
10
- require 'spec_helper'
11
- require 'json'
12
- require 'date'
13
-
14
- # Unit tests for SnapTrade::OrderType
15
- describe SnapTrade::OrderType do
16
- let(:instance) { SnapTrade::OrderType.new }
17
-
18
- describe 'test an instance of OrderType' do
19
- it 'should create an instance of OrderType' do
20
- expect(instance).to be_instance_of(SnapTrade::OrderType)
21
- end
22
- end
23
- end