robinhood-api 0.4.1 → 0.4.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/robinhood.rb +10 -0
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24e63241baaddfe4dc91a7bb51e9062706b75020
4
- data.tar.gz: 9be55ff6296269a6f49305d9e85644b7d1e3a392
3
+ metadata.gz: 17b8b572827036fd434a69c4974eabfa9fce41c5
4
+ data.tar.gz: 25053e2e842eae513dcf8671dfd392e66f3eaf21
5
5
  SHA512:
6
- metadata.gz: a5d2ee1e482df9eb6fad2b1b504ce2eb00440d86565b8066421998ce5fc425ef33c8eb817fd040a2b10bc2eb5f9dcdf841ee0cb8fe362d2b890ff9115e1aff66
7
- data.tar.gz: '019a63e1758790c5d4c4d5c85fed706f49a780055794679e3b4d5ade38879b03685121db92081b0c4ec6a9742620b340719a543f8329308db9912e4f7a259946'
6
+ metadata.gz: ead735b101f200e8ce7fcacb64c22df7edd22c291d5e190a53ccb34c0df9e7009d78f41d95ec81d54a4ce9985952518d7afdd1ef7a17cb41661f0801b27c80eb
7
+ data.tar.gz: 606a1fbc1632e90b7d024da265095df2d344853d412c0a308c416f9752de800563dc1f148f99d1aadb857bf90dd051837e33a64b551e3e563060cf2c022a795a
data/lib/robinhood.rb CHANGED
@@ -94,6 +94,8 @@ module RobinhoodModule
94
94
  }.to_json,
95
95
  headers: headers
96
96
  )
97
+
98
+ JSON.parse(raw_response.body)
97
99
  end
98
100
 
99
101
  def limit_buy(account_number, symbol, instrument_id, price, quantity)
@@ -112,6 +114,8 @@ module RobinhoodModule
112
114
  }.to_json,
113
115
  headers: headers
114
116
  )
117
+
118
+ JSON.parse(raw_response.body)
115
119
  end
116
120
 
117
121
  def sell(account_number, symbol, instrument_id, price, quantity)
@@ -130,6 +134,8 @@ module RobinhoodModule
130
134
  }.to_json,
131
135
  headers: headers
132
136
  )
137
+
138
+ JSON.parse(raw_response.body)
133
139
  end
134
140
 
135
141
  def limit_sell(account_number, symbol, instrument_id, price, quantity)
@@ -148,6 +154,8 @@ module RobinhoodModule
148
154
  }.to_json,
149
155
  headers: headers
150
156
  )
157
+
158
+ JSON.parse(raw_response.body)
151
159
  end
152
160
 
153
161
  def stop_loss_sell(account_number, symbol, instrument_id, price, quantity)
@@ -166,6 +174,8 @@ module RobinhoodModule
166
174
  }.to_json,
167
175
  headers: headers
168
176
  )
177
+
178
+ JSON.parse(raw_response.body)
169
179
  end
170
180
 
171
181
  def cancel_order(order_id)
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robinhood-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Alcala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-02 00:00:00.000000000 Z
11
+ date: 2017-06-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: 'Get the most of Robinhood: get accounts, positions, portfolio, buy and
14
- sell securities, etc.'
13
+ description: 'Get the most of Robinhood: accounts, positions, portfolio, buy and sell
14
+ securities, etc.'
15
15
  email: thomas.alcala@gmail.com
16
16
  executables: []
17
17
  extensions: []