snaptrade 1.3.0 → 1.5.0

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: 004f012076f6d84684a0e25e6bc5de19b1069b126e9c998a307d79a59a643a35
4
- data.tar.gz: c9d7e743f8dbb1eaa6c43474d2b1aae5be6d7f086fdbc7dfa72321f89629296b
3
+ metadata.gz: cfbb41c300acc1d64e3c9fea3cc1310822074a131d642ae216325f4eee44d074
4
+ data.tar.gz: 5308f919f05089da3f5312ad996ebecf4e15e0702a3c08e38d4f9b5914c34ecc
5
5
  SHA512:
6
- metadata.gz: f567b741839a4ebd327044b8b87ec4691d931a3604f1204c0f23353a2121716980bf24f5173adb0dadfac7c538fa1edd54c3fb51cc37f0894764dd2452d44a43
7
- data.tar.gz: bc73cb1215fc6ee6b9e9b2485cac7ca8f902ce8e941966c66b050b2b0af447933ee3d86c8395b5774060cdf5d3c5d4250798b7c446632ee6174781b39c93b494
6
+ metadata.gz: 75a9403db777dbb546c91da68706a7b78abaa07fcadea441ff434c3480097cb4f42710a07843c771ad1b7058a2f57f4f49edcec1d8d59fb8cfbed55d97c989d2
7
+ data.tar.gz: f69564daf8529b3b8f6e7884aede1d42d8dd58ea963fa8a03aae991779ce8721e564222940edaf1462a0b6af8e564b1ac11ab99ad280b890bf242f8325df63c3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (1.3.0)
4
+ snaptrade (1.5.0)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -15,7 +15,7 @@ GEM
15
15
  irb (>= 1.5.0)
16
16
  reline (>= 0.3.1)
17
17
  diff-lcs (1.5.0)
18
- faraday (2.7.5)
18
+ faraday (2.7.6)
19
19
  faraday-net_http (>= 2.0, < 3.1)
20
20
  ruby2_keywords (>= 0.0.4)
21
21
  faraday-multipart (1.0.4)
data/README.md CHANGED
@@ -9,7 +9,7 @@ For more information, please visit [https://snaptrade.com/](https://snaptrade.co
9
9
  Add to Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'snaptrade', '~> 1.3.0'
12
+ gem 'snaptrade', '~> 1.5.0'
13
13
  ```
14
14
 
15
15
  ## Getting Started
data/docs/ManualTrade.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **account** | [**Account**](Account.md) | | [optional] |
8
+ | **account** | **String** | | [optional] |
9
9
  | **order_type** | [**OrderType**](OrderType.md) | | [optional] |
10
10
  | **time_in_force** | [**TimeInForce**](TimeInForce.md) | | [optional] |
11
11
  | **symbol** | [**ManualTradeSymbol**](ManualTradeSymbol.md) | | [optional] |
@@ -20,7 +20,7 @@ require 'snaptrade'
20
20
 
21
21
  instance = SnapTrade::ManualTrade.new(
22
22
  id: 2bcd7cc3-e922-4976-bce1-9858296801c3,
23
- account: null,
23
+ account: 2bcd7cc3-e922-4976-bce1-9855556801c3,
24
24
  order_type: null,
25
25
  time_in_force: null,
26
26
  symbol: null,
@@ -117,6 +117,9 @@ module SnapTrade
117
117
  # List of attributes with nullable: true
118
118
  def self.openapi_nullable
119
119
  Set.new([
120
+ :'execution_price',
121
+ :'limit_price',
122
+ :'stop_price',
120
123
  ])
121
124
  end
122
125
 
@@ -55,7 +55,7 @@ module SnapTrade
55
55
  def self.openapi_types
56
56
  {
57
57
  :'id' => :'String',
58
- :'account' => :'Account',
58
+ :'account' => :'String',
59
59
  :'order_type' => :'OrderType',
60
60
  :'time_in_force' => :'TimeInForce',
61
61
  :'symbol' => :'ManualTradeSymbol',
@@ -68,6 +68,7 @@ module SnapTrade
68
68
  # List of attributes with nullable: true
69
69
  def self.openapi_nullable
70
70
  Set.new([
71
+ :'price'
71
72
  ])
72
73
  end
73
74
 
@@ -69,6 +69,7 @@ module SnapTrade
69
69
  # List of attributes with nullable: true
70
70
  def self.openapi_nullable
71
71
  Set.new([
72
+ :'price',
72
73
  :'stop',
73
74
  ])
74
75
  end
@@ -61,6 +61,7 @@ module SnapTrade
61
61
  # List of attributes with nullable: true
62
62
  def self.openapi_nullable
63
63
  Set.new([
64
+ :'price',
64
65
  :'average_purchase_price'
65
66
  ])
66
67
  end
@@ -46,6 +46,7 @@ module SnapTrade
46
46
  # List of attributes with nullable: true
47
47
  def self.openapi_nullable
48
48
  Set.new([
49
+ :'price'
49
50
  ])
50
51
  end
51
52
 
@@ -89,10 +90,6 @@ module SnapTrade
89
90
  invalid_properties.push('invalid value for "time_in_force", time_in_force cannot be nil.')
90
91
  end
91
92
 
92
- if @price.nil?
93
- invalid_properties.push('invalid value for "price", price cannot be nil.')
94
- end
95
-
96
93
  invalid_properties
97
94
  end
98
95
 
@@ -101,7 +98,6 @@ module SnapTrade
101
98
  def valid?
102
99
  return false if @order_type.nil?
103
100
  return false if @time_in_force.nil?
104
- return false if @price.nil?
105
101
  true
106
102
  end
107
103
 
@@ -64,6 +64,7 @@ module SnapTrade
64
64
  # List of attributes with nullable: true
65
65
  def self.openapi_nullable
66
66
  Set.new([
67
+ :'price',
67
68
  :'average_purchase_price'
68
69
  ])
69
70
  end
@@ -82,6 +82,8 @@ module SnapTrade
82
82
  # List of attributes with nullable: true
83
83
  def self.openapi_nullable
84
84
  Set.new([
85
+ :'limit_price',
86
+ :'execution_price',
85
87
  ])
86
88
  end
87
89
 
@@ -60,6 +60,9 @@ module SnapTrade
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
+ :'open_price',
64
+ :'bid_price',
65
+ :'ask_price',
63
66
  ])
64
67
  end
65
68
 
@@ -9,5 +9,5 @@ Contact: api@snaptrade.com
9
9
  =end
10
10
 
11
11
  module SnapTrade
12
- VERSION = '1.3.0'
12
+ VERSION = '1.5.0'
13
13
  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: 1.3.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday