snaptrade 2.0.32 → 2.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +26 -21
  4. data/lib/snaptrade/api/account_information_api.rb +70 -52
  5. data/lib/snaptrade/api/options_api.rb +16 -12
  6. data/lib/snaptrade/models/account.rb +13 -3
  7. data/lib/snaptrade/models/account_balance_total.rb +1 -8
  8. data/lib/snaptrade/models/account_holdings_account.rb +2 -2
  9. data/lib/snaptrade/models/account_order_record.rb +22 -18
  10. data/lib/snaptrade/models/{snap_trade_holdings_account_account_id_balance.rb → account_order_record_option_symbol.rb} +102 -12
  11. data/lib/snaptrade/models/{snap_trade_holdings_account_account_id.rb → account_order_record_universal_symbol.rb} +106 -73
  12. data/lib/snaptrade/models/account_sync_status.rb +1 -1
  13. data/lib/snaptrade/models/balance.rb +1 -1
  14. data/lib/snaptrade/models/{cash_restriction.rb → balance_currency.rb} +27 -35
  15. data/lib/snaptrade/models/brokerage_authorization_type_read_only.rb +1 -1
  16. data/lib/snaptrade/models/holdings_status.rb +4 -4
  17. data/lib/snaptrade/models/monthly_dividends.rb +1 -1
  18. data/lib/snaptrade/models/net_contributions.rb +1 -1
  19. data/lib/snaptrade/models/order_type_strict.rb +2 -2
  20. data/lib/snaptrade/models/past_value.rb +1 -1
  21. data/lib/snaptrade/models/strategy_order_record.rb +1 -1
  22. data/lib/snaptrade/models/sub_period_return_rate.rb +2 -2
  23. data/lib/snaptrade/models/transactions_status.rb +4 -5
  24. data/lib/snaptrade/models/type.rb +3 -3
  25. data/lib/snaptrade/version.rb +1 -1
  26. data/lib/snaptrade.rb +3 -5
  27. data/spec/api/account_information_api_spec.rb +12 -12
  28. data/spec/api/options_api_spec.rb +3 -3
  29. data/spec/models/{cash_restriction_spec.rb → account_order_record_option_symbol_spec.rb} +22 -10
  30. data/spec/models/{snap_trade_holdings_account_account_id_spec.rb → account_order_record_universal_symbol_spec.rb} +15 -15
  31. data/spec/models/balance_currency_spec.rb +41 -0
  32. metadata +11 -17
  33. data/lib/snaptrade/models/amount.rb +0 -228
  34. data/lib/snaptrade/models/brokerage_authorization_type_read_only_type.rb +0 -37
  35. data/spec/models/amount_spec.rb +0 -35
  36. data/spec/models/brokerage_authorization_type_read_only_type_spec.rb +0 -23
  37. data/spec/models/snap_trade_holdings_account_account_id_balance_spec.rb +0 -29
@@ -1,37 +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 'date'
11
- require 'time'
12
-
13
- module SnapTrade
14
- class BrokerageAuthorizationTypeReadOnlyType
15
- READ = "read".freeze
16
- TRADE = "trade".freeze
17
-
18
- def self.all_vars
19
- @all_vars ||= [READ, TRADE].freeze
20
- end
21
-
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
28
-
29
- # Builds the enum from string
30
- # @param [String] The enum value in the form of the string
31
- # @return [String] The enum value
32
- def build_from_hash(value)
33
- return value if BrokerageAuthorizationTypeReadOnlyType.all_vars.include?(value)
34
- raise "Invalid ENUM value #{value} for class #BrokerageAuthorizationTypeReadOnlyType"
35
- end
36
- end
37
- end
@@ -1,35 +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::Amount
15
- describe SnapTrade::Amount do
16
- let(:instance) { SnapTrade::Amount.new }
17
-
18
- describe 'test an instance of Amount' do
19
- it 'should create an instance of Amount' do
20
- expect(instance).to be_instance_of(SnapTrade::Amount)
21
- end
22
- end
23
- describe 'test attribute "amount"' do
24
- it 'should work' do
25
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
- end
27
- end
28
-
29
- describe 'test attribute "currency"' do
30
- it 'should work' do
31
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
- end
33
- end
34
-
35
- end
@@ -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::BrokerageAuthorizationTypeReadOnlyType
15
- describe SnapTrade::BrokerageAuthorizationTypeReadOnlyType do
16
- let(:instance) { SnapTrade::BrokerageAuthorizationTypeReadOnlyType.new }
17
-
18
- describe 'test an instance of BrokerageAuthorizationTypeReadOnlyType' do
19
- it 'should create an instance of BrokerageAuthorizationTypeReadOnlyType' do
20
- expect(instance).to be_instance_of(SnapTrade::BrokerageAuthorizationTypeReadOnlyType)
21
- end
22
- end
23
- end
@@ -1,29 +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::SnapTradeHoldingsAccountAccountIdBalance
15
- describe SnapTrade::SnapTradeHoldingsAccountAccountIdBalance do
16
- let(:instance) { SnapTrade::SnapTradeHoldingsAccountAccountIdBalance.new }
17
-
18
- describe 'test an instance of SnapTradeHoldingsAccountAccountIdBalance' do
19
- it 'should create an instance of SnapTradeHoldingsAccountAccountIdBalance' do
20
- expect(instance).to be_instance_of(SnapTrade::SnapTradeHoldingsAccountAccountIdBalance)
21
- end
22
- end
23
- describe 'test attribute "total"' do
24
- it 'should work' do
25
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
- end
27
- end
28
-
29
- end