ish_models 0.0.33.152 → 0.0.33.153
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/warbler/ameritrade.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b5b1b87e7d98e765f23667d8bcf0fa8668871b6438d8f754c7f188ffbd37136
|
4
|
+
data.tar.gz: 77ad787fd7e42f057c177c542c5cfb39b6a55d068b25a335404930739e0c2e07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c28e4acab55505ec235a2e767268653f6c5447b99b5fbc3718445a495ce190d6c8733d20b3e1ae761ad3199f0ce3d868f79b1f0381565c72194adcea4dc29c7
|
7
|
+
data.tar.gz: fcfad8595373f51181c50a003bbb07ee88ae030afa4f374770b04c379f91a225a14ec84ed0ab433d1def5842f0eea0d33fce784b71777d2fa6018b7ecce4c862
|
data/lib/warbler/ameritrade.rb
CHANGED
@@ -82,9 +82,11 @@ class ::Warbler::Ameritrade::Api
|
|
82
82
|
query = { apikey: ::TD_AME[:apiKey], strikeCount: 1 }.merge opts
|
83
83
|
path = "/v1/marketdata/chains"
|
84
84
|
out = self.get path, { query: query }
|
85
|
+
## out = HTTParty.get "https://api.tdameritrade.com#{path}", { query: query }
|
85
86
|
out = out.parsed_response.deep_symbolize_keys
|
86
87
|
tmp_sym = "#{opts[:contractType].to_s.downcase}ExpDateMap".to_sym
|
87
88
|
out[tmp_sym].first[1].first[1][0]
|
88
89
|
end
|
89
90
|
|
90
91
|
end
|
92
|
+
|