snaptrade 2.0.11 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +19 -17
- data/README.md +3 -35
- data/lib/snaptrade/api/account_information_api.rb +4 -4
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +0 -3
- data/spec/api/account_information_api_spec.rb +1 -1
- metadata +3 -6
- data/lib/snaptrade/api/error_logs_api.rb +0 -111
- data/spec/api/error_logs_api_spec.rb +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca4787522cc6387a042cf45fba27e4e5483550f939752404a08f13b7e4905c75
|
4
|
+
data.tar.gz: dda650736408b41d3beff295d25500ad469e8aa215b8674e1875069172b95b94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b31b5c8f2ff7ad4b8c7d17d88660a469a641fe5765fc14b833acb1c78ce0ef7cbb744c658ee60e424ffc53d9e7e8a58bf65b0ba45549bb3d677a7b205355a04e
|
7
|
+
data.tar.gz: 701e3e29e339a99f4c79c9e84a7ffbcf5263c68013cb7523d22800d1ee8410eda9590a6b1f1b2b14038f68508389ba4c1ebc4fdd2b4d3155577699da5c69e10b
|
data/Gemfile.lock
CHANGED
@@ -9,40 +9,42 @@ GEM
|
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
ast (2.4.2)
|
12
|
+
base64 (0.1.1)
|
12
13
|
byebug (11.1.3)
|
13
14
|
coderay (1.1.3)
|
14
15
|
debug (1.8.0)
|
15
16
|
irb (>= 1.5.0)
|
16
17
|
reline (>= 0.3.1)
|
17
18
|
diff-lcs (1.5.0)
|
18
|
-
faraday (2.
|
19
|
-
|
19
|
+
faraday (2.7.11)
|
20
|
+
base64
|
21
|
+
faraday-net_http (>= 2.0, < 3.1)
|
22
|
+
ruby2_keywords (>= 0.0.4)
|
20
23
|
faraday-multipart (1.0.4)
|
21
24
|
multipart-post (~> 2)
|
22
|
-
faraday-net_http (3.
|
23
|
-
net-http
|
25
|
+
faraday-net_http (3.0.2)
|
24
26
|
io-console (0.6.0)
|
25
27
|
irb (1.6.4)
|
26
28
|
reline (>= 0.3.0)
|
27
29
|
method_source (1.0.0)
|
28
|
-
multipart-post (2.
|
29
|
-
net-http (0.4.1)
|
30
|
-
uri
|
30
|
+
multipart-post (2.3.0)
|
31
31
|
parallel (1.23.0)
|
32
|
-
parser (3.2.2.
|
32
|
+
parser (3.2.2.3)
|
33
33
|
ast (~> 2.4.1)
|
34
|
+
racc
|
34
35
|
pry (0.14.2)
|
35
36
|
coderay (~> 1.1)
|
36
37
|
method_source (~> 1.0)
|
37
38
|
pry-byebug (3.10.1)
|
38
39
|
byebug (~> 11.0)
|
39
40
|
pry (>= 0.13, < 0.15)
|
41
|
+
racc (1.7.1)
|
40
42
|
rainbow (3.1.1)
|
41
43
|
rake (13.0.6)
|
42
|
-
regexp_parser (2.8.
|
43
|
-
reline (0.3.
|
44
|
+
regexp_parser (2.8.1)
|
45
|
+
reline (0.3.8)
|
44
46
|
io-console (~> 0.5)
|
45
|
-
rexml (3.2.
|
47
|
+
rexml (3.2.6)
|
46
48
|
rspec (3.12.0)
|
47
49
|
rspec-core (~> 3.12.0)
|
48
50
|
rspec-expectations (~> 3.12.0)
|
@@ -52,10 +54,10 @@ GEM
|
|
52
54
|
rspec-expectations (3.12.3)
|
53
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
54
56
|
rspec-support (~> 3.12.0)
|
55
|
-
rspec-mocks (3.12.
|
57
|
+
rspec-mocks (3.12.6)
|
56
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
57
59
|
rspec-support (~> 3.12.0)
|
58
|
-
rspec-support (3.12.
|
60
|
+
rspec-support (3.12.1)
|
59
61
|
rubocop (1.12.1)
|
60
62
|
parallel (~> 1.10)
|
61
63
|
parser (>= 3.0.0.0)
|
@@ -65,14 +67,14 @@ GEM
|
|
65
67
|
rubocop-ast (>= 1.2.0, < 2.0)
|
66
68
|
ruby-progressbar (~> 1.7)
|
67
69
|
unicode-display_width (>= 1.4.0, < 3.0)
|
68
|
-
rubocop-ast (1.
|
70
|
+
rubocop-ast (1.29.0)
|
69
71
|
parser (>= 3.2.1.0)
|
70
72
|
ruby-progressbar (1.13.0)
|
73
|
+
ruby2_keywords (0.0.5)
|
71
74
|
unicode-display_width (2.4.2)
|
72
|
-
uri (0.13.0)
|
73
75
|
|
74
76
|
PLATFORMS
|
75
|
-
arm64-darwin-
|
77
|
+
arm64-darwin-22
|
76
78
|
|
77
79
|
DEPENDENCIES
|
78
80
|
debug (~> 1.8)
|
@@ -84,4 +86,4 @@ DEPENDENCIES
|
|
84
86
|
snaptrade!
|
85
87
|
|
86
88
|
BUNDLED WITH
|
87
|
-
2.
|
89
|
+
2.4.19
|
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.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v2.0.12-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.12)
|
10
10
|
[![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
|
11
11
|
|
12
12
|
</div>
|
@@ -38,7 +38,6 @@ Connect brokerage accounts to your app for live positions and trading
|
|
38
38
|
* [`snaptrade.connections.list_brokerage_authorizations`](#snaptradeconnectionslist_brokerage_authorizations)
|
39
39
|
* [`snaptrade.connections.remove_brokerage_authorization`](#snaptradeconnectionsremove_brokerage_authorization)
|
40
40
|
* [`snaptrade.connections.session_events`](#snaptradeconnectionssession_events)
|
41
|
-
* [`snaptrade.error_logs.list_user_errors`](#snaptradeerror_logslist_user_errors)
|
42
41
|
* [`snaptrade.options.get_option_strategy`](#snaptradeoptionsget_option_strategy)
|
43
42
|
* [`snaptrade.options.get_options_chain`](#snaptradeoptionsget_options_chain)
|
44
43
|
* [`snaptrade.options.get_options_strategy_quote`](#snaptradeoptionsget_options_strategy_quote)
|
@@ -71,7 +70,7 @@ Connect brokerage accounts to your app for live positions and trading
|
|
71
70
|
Add to Gemfile:
|
72
71
|
|
73
72
|
```ruby
|
74
|
-
gem 'snaptrade', '~> 2.0.
|
73
|
+
gem 'snaptrade', '~> 2.0.12'
|
75
74
|
```
|
76
75
|
|
77
76
|
## Getting Started<a id="getting-started"></a>
|
@@ -245,7 +244,7 @@ defaults value is set to \"all\"
|
|
245
244
|
|
246
245
|
##### days: `Integer`<a id="days-integer"></a>
|
247
246
|
Number of days in the past to fetch the most recent orders. Defaults to the last
|
248
|
-
|
247
|
+
30 days if no value is passed in.
|
249
248
|
|
250
249
|
#### 🔄 Return<a id="🔄-return"></a>
|
251
250
|
|
@@ -763,37 +762,6 @@ specific users
|
|
763
762
|
---
|
764
763
|
|
765
764
|
|
766
|
-
### `snaptrade.error_logs.list_user_errors`<a id="snaptradeerror_logslist_user_errors"></a>
|
767
|
-
|
768
|
-
Retrieve error logs on behalf of your SnapTrade users
|
769
|
-
|
770
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
771
|
-
|
772
|
-
```ruby
|
773
|
-
result = snaptrade.error_logs.list_user_errors(
|
774
|
-
user_id: "John.doe@snaptrade.com",
|
775
|
-
user_secret: "USERSECRET123",
|
776
|
-
)
|
777
|
-
p result
|
778
|
-
```
|
779
|
-
|
780
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
781
|
-
|
782
|
-
##### user_id: `String`<a id="user_id-string"></a>
|
783
|
-
##### user_secret: `String`<a id="user_secret-string"></a>
|
784
|
-
#### 🔄 Return<a id="🔄-return"></a>
|
785
|
-
|
786
|
-
[UserErrorLog](./lib/snaptrade/models/user_error_log.rb)
|
787
|
-
|
788
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
789
|
-
|
790
|
-
`/snapTrade/listUserErrors` `GET`
|
791
|
-
|
792
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
793
|
-
|
794
|
-
---
|
795
|
-
|
796
|
-
|
797
765
|
### `snaptrade.options.get_option_strategy`<a id="snaptradeoptionsget_option_strategy"></a>
|
798
766
|
|
799
767
|
Creates an option strategy object that will be used to place an option strategy order
|
@@ -321,7 +321,7 @@ module SnapTrade
|
|
321
321
|
# @param user_secret [String]
|
322
322
|
# @param account_id [String] The ID of the account to get orders.
|
323
323
|
# @param state [String] defaults value is set to \"all\"
|
324
|
-
# @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last
|
324
|
+
# @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
|
325
325
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
326
326
|
def get_user_account_orders(user_id:, user_secret:, account_id:, state: SENTINEL, days: SENTINEL, extra: {})
|
327
327
|
extra[:state] = state if state != SENTINEL
|
@@ -338,7 +338,7 @@ module SnapTrade
|
|
338
338
|
# @param user_secret [String]
|
339
339
|
# @param account_id [String] The ID of the account to get orders.
|
340
340
|
# @param state [String] defaults value is set to \"all\"
|
341
|
-
# @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last
|
341
|
+
# @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
|
342
342
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
343
343
|
def get_user_account_orders_with_http_info(user_id:, user_secret:, account_id:, state: SENTINEL, days: SENTINEL, extra: {})
|
344
344
|
extra[:state] = state if state != SENTINEL
|
@@ -353,7 +353,7 @@ module SnapTrade
|
|
353
353
|
# @param account_id [String] The ID of the account to get orders.
|
354
354
|
# @param [Hash] opts the optional parameters
|
355
355
|
# @option opts [String] :state defaults value is set to \"all\"
|
356
|
-
# @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last
|
356
|
+
# @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
|
357
357
|
# @return [Array<AccountOrderRecord>]
|
358
358
|
private def get_user_account_orders_impl(user_id, user_secret, account_id, opts = {})
|
359
359
|
data, _status_code, _headers = get_user_account_orders_with_http_info(user_id, user_secret, account_id, opts)
|
@@ -367,7 +367,7 @@ module SnapTrade
|
|
367
367
|
# @param account_id [String] The ID of the account to get orders.
|
368
368
|
# @param [Hash] opts the optional parameters
|
369
369
|
# @option opts [String] :state defaults value is set to \"all\"
|
370
|
-
# @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last
|
370
|
+
# @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
|
371
371
|
# @return [Array<(Array<AccountOrderRecord>, Integer, Hash)>] Array<AccountOrderRecord> data, response status code and response headers
|
372
372
|
private def get_user_account_orders_with_http_info_impl(user_id, user_secret, account_id, opts = {})
|
373
373
|
if @api_client.config.debugging
|
data/lib/snaptrade/version.rb
CHANGED
data/lib/snaptrade.rb
CHANGED
@@ -152,7 +152,6 @@ require 'snaptrade/api/account_information_api'
|
|
152
152
|
require 'snaptrade/api/api_status_api'
|
153
153
|
require 'snaptrade/api/authentication_api'
|
154
154
|
require 'snaptrade/api/connections_api'
|
155
|
-
require 'snaptrade/api/error_logs_api'
|
156
155
|
require 'snaptrade/api/options_api'
|
157
156
|
require 'snaptrade/api/reference_data_api'
|
158
157
|
require 'snaptrade/api/trading_api'
|
@@ -226,7 +225,6 @@ module SnapTrade
|
|
226
225
|
attr_reader :api_status
|
227
226
|
attr_reader :authentication
|
228
227
|
attr_reader :connections
|
229
|
-
attr_reader :error_logs
|
230
228
|
attr_reader :options
|
231
229
|
attr_reader :reference_data
|
232
230
|
attr_reader :trading
|
@@ -238,7 +236,6 @@ module SnapTrade
|
|
238
236
|
@api_status = SnapTrade::APIStatusApi.new(@api_client)
|
239
237
|
@authentication = SnapTrade::AuthenticationApi.new(@api_client)
|
240
238
|
@connections = SnapTrade::ConnectionsApi.new(@api_client)
|
241
|
-
@error_logs = SnapTrade::ErrorLogsApi.new(@api_client)
|
242
239
|
@options = SnapTrade::OptionsApi.new(@api_client)
|
243
240
|
@reference_data = SnapTrade::ReferenceDataApi.new(@api_client)
|
244
241
|
@trading = SnapTrade::TradingApi.new(@api_client)
|
@@ -75,7 +75,7 @@ describe 'AccountInformationApi' do
|
|
75
75
|
# @param account_id The ID of the account to get orders.
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
77
|
# @option opts [String] :state defaults value is set to \"all\"
|
78
|
-
# @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last
|
78
|
+
# @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.
|
79
79
|
# @return [Array<AccountOrderRecord>]
|
80
80
|
describe 'get_user_account_orders test' do
|
81
81
|
it 'should work' do
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SnapTrade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -87,7 +87,6 @@ files:
|
|
87
87
|
- lib/snaptrade/api/api_status_api.rb
|
88
88
|
- lib/snaptrade/api/authentication_api.rb
|
89
89
|
- lib/snaptrade/api/connections_api.rb
|
90
|
-
- lib/snaptrade/api/error_logs_api.rb
|
91
90
|
- lib/snaptrade/api/options_api.rb
|
92
91
|
- lib/snaptrade/api/reference_data_api.rb
|
93
92
|
- lib/snaptrade/api/trading_api.rb
|
@@ -232,7 +231,6 @@ files:
|
|
232
231
|
- spec/api/api_status_api_spec.rb
|
233
232
|
- spec/api/authentication_api_spec.rb
|
234
233
|
- spec/api/connections_api_spec.rb
|
235
|
-
- spec/api/error_logs_api_spec.rb
|
236
234
|
- spec/api/options_api_spec.rb
|
237
235
|
- spec/api/reference_data_api_spec.rb
|
238
236
|
- spec/api/trading_api_spec.rb
|
@@ -392,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
392
390
|
- !ruby/object:Gem::Version
|
393
391
|
version: '0'
|
394
392
|
requirements: []
|
395
|
-
rubygems_version: 3.
|
393
|
+
rubygems_version: 3.4.10
|
396
394
|
signing_key:
|
397
395
|
specification_version: 4
|
398
396
|
summary: SnapTrade Ruby Gem
|
@@ -400,7 +398,6 @@ test_files:
|
|
400
398
|
- spec/api/transactions_and_reporting_api_spec.rb
|
401
399
|
- spec/api/options_api_spec.rb
|
402
400
|
- spec/api/authentication_api_spec.rb
|
403
|
-
- spec/api/error_logs_api_spec.rb
|
404
401
|
- spec/api/api_status_api_spec.rb
|
405
402
|
- spec/api/connections_api_spec.rb
|
406
403
|
- spec/api/reference_data_api_spec.rb
|
@@ -1,111 +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 'cgi'
|
11
|
-
|
12
|
-
module SnapTrade
|
13
|
-
class ErrorLogsApi
|
14
|
-
attr_accessor :api_client
|
15
|
-
|
16
|
-
def initialize(api_client = ApiClient.default)
|
17
|
-
@api_client = api_client
|
18
|
-
end
|
19
|
-
|
20
|
-
# Retrieve error logs on behalf of your SnapTrade users
|
21
|
-
#
|
22
|
-
# @param user_id [String]
|
23
|
-
# @param user_secret [String]
|
24
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
25
|
-
def list_user_errors(user_id:, user_secret:, extra: {})
|
26
|
-
data, _status_code, _headers = list_user_errors_with_http_info_impl(user_id, user_secret, extra)
|
27
|
-
data
|
28
|
-
end
|
29
|
-
|
30
|
-
# Retrieve error logs on behalf of your SnapTrade users
|
31
|
-
#
|
32
|
-
# @param user_id [String]
|
33
|
-
# @param user_secret [String]
|
34
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
35
|
-
def list_user_errors_with_http_info(user_id:, user_secret:, extra: {})
|
36
|
-
list_user_errors_with_http_info_impl(user_id, user_secret, extra)
|
37
|
-
end
|
38
|
-
|
39
|
-
# Retrieve error logs on behalf of your SnapTrade users
|
40
|
-
# @param user_id [String]
|
41
|
-
# @param user_secret [String]
|
42
|
-
# @param [Hash] opts the optional parameters
|
43
|
-
# @return [Array<UserErrorLog>]
|
44
|
-
private def list_user_errors_impl(user_id, user_secret, opts = {})
|
45
|
-
data, _status_code, _headers = list_user_errors_with_http_info(user_id, user_secret, opts)
|
46
|
-
data
|
47
|
-
end
|
48
|
-
|
49
|
-
# Retrieve error logs on behalf of your SnapTrade users
|
50
|
-
# @param user_id [String]
|
51
|
-
# @param user_secret [String]
|
52
|
-
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [Array<(Array<UserErrorLog>, Integer, Hash)>] Array<UserErrorLog> data, response status code and response headers
|
54
|
-
private def list_user_errors_with_http_info_impl(user_id, user_secret, opts = {})
|
55
|
-
if @api_client.config.debugging
|
56
|
-
@api_client.config.logger.debug 'Calling API: ErrorLogsApi.list_user_errors ...'
|
57
|
-
end
|
58
|
-
# verify the required parameter 'user_id' is set
|
59
|
-
if @api_client.config.client_side_validation && user_id.nil?
|
60
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling ErrorLogsApi.list_user_errors"
|
61
|
-
end
|
62
|
-
# verify the required parameter 'user_secret' is set
|
63
|
-
if @api_client.config.client_side_validation && user_secret.nil?
|
64
|
-
fail ArgumentError, "Missing the required parameter 'user_secret' when calling ErrorLogsApi.list_user_errors"
|
65
|
-
end
|
66
|
-
# resource path
|
67
|
-
local_var_path = '/snapTrade/listUserErrors'
|
68
|
-
|
69
|
-
# query parameters
|
70
|
-
query_params = opts[:query_params] || {}
|
71
|
-
query_params[:'userId'] = user_id
|
72
|
-
query_params[:'userSecret'] = user_secret
|
73
|
-
|
74
|
-
# header parameters
|
75
|
-
header_params = opts[:header_params] || {}
|
76
|
-
# HTTP header 'Accept' (if needed)
|
77
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
78
|
-
|
79
|
-
# form parameters
|
80
|
-
form_params = opts[:form_params] || {}
|
81
|
-
|
82
|
-
# http body (model)
|
83
|
-
post_body = opts[:debug_body]
|
84
|
-
|
85
|
-
# return_type
|
86
|
-
return_type = opts[:debug_return_type] || 'Array<UserErrorLog>'
|
87
|
-
|
88
|
-
# auth_names
|
89
|
-
auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
|
90
|
-
|
91
|
-
new_options = opts.merge(
|
92
|
-
:operation => :"ErrorLogsApi.list_user_errors",
|
93
|
-
:header_params => header_params,
|
94
|
-
:query_params => query_params,
|
95
|
-
:form_params => form_params,
|
96
|
-
:body => post_body,
|
97
|
-
:auth_names => auth_names,
|
98
|
-
:return_type => return_type
|
99
|
-
)
|
100
|
-
|
101
|
-
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
102
|
-
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug "API called: ErrorLogsApi#list_user_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
104
|
-
end
|
105
|
-
return data, status_code, headers, response
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
# top-level client access to avoid having the user to insantiate their own API instances
|
110
|
-
ErrorLogs = ErrorLogsApi::new
|
111
|
-
end
|
@@ -1,42 +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
|
-
|
13
|
-
# Unit tests for SnapTrade::ErrorLogsApi
|
14
|
-
describe 'ErrorLogsApi' do
|
15
|
-
before do
|
16
|
-
# run before each test
|
17
|
-
@api_instance = SnapTrade::ErrorLogsApi.new
|
18
|
-
end
|
19
|
-
|
20
|
-
after do
|
21
|
-
# run after each test
|
22
|
-
end
|
23
|
-
|
24
|
-
describe 'test an instance of ErrorLogsApi' do
|
25
|
-
it 'should create an instance of ErrorLogsApi' do
|
26
|
-
expect(@api_instance).to be_instance_of(SnapTrade::ErrorLogsApi)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
# unit tests for list_user_errors
|
31
|
-
# Retrieve error logs on behalf of your SnapTrade users
|
32
|
-
# @param user_id
|
33
|
-
# @param user_secret
|
34
|
-
# @param [Hash] opts the optional parameters
|
35
|
-
# @return [Array<UserErrorLog>]
|
36
|
-
describe 'list_user_errors test' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|