oanda_api_v20 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b5d5cf2702df29602ad452b2e5ae37d15564c2f
4
- data.tar.gz: 179e4fe0af79d0575dec2aa556ef7007e27f62cd
3
+ metadata.gz: eb4df9b0234d22ffa2e3949f0f2753a268d7ddcc
4
+ data.tar.gz: 84480ffb98305fd91f832f453472c80f6a94d508
5
5
  SHA512:
6
- metadata.gz: 67e4b3d036323f149a1e8a9ca3f6b9f5b84ed40cde33fc266f71e5a7a50d6e6d085a19aebf2651c9495ece6aeac3fff3b67c9100c0f876b2073d8fc2dc107147
7
- data.tar.gz: 1d1b8a51a510f72d2219641d3f167635438352216f6261cdaedab1c4438a2b4155841d3ce5a401c95bf1ce2870a72bc16f463732ac516f1522a8b855b7ca2c3c
6
+ metadata.gz: b1850b8f4cda83248d8aec0f68bd44a0974c7784f9865ac776bc61c5e32495f51ca686d95fd71bc7ded214c17b2db69a982d1b38b1c8d6278e25a4ad93ebf358
7
+ data.tar.gz: aad4901a5dd0c6260a80c6b4e498db00e9ce98b2cc18e6043f493c363504b54a3dc80eb8037021e28ac73428cdd66a4be2a54cf5fbac6659d14af4a37854dd48
data/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Change Log
2
+
3
+ ## 0.0.3
4
+ #### 2016-08-14
5
+ * Persistent HTTP connections using the persistent_httparty Gem.
6
+
7
+ ## 0.0.2
8
+ #### 2016-08-12
9
+ * README Documentation added.
10
+
11
+ ## 0.0.1
12
+ #### 2016-08-09
13
+ * Functions to map to the Oanda API endpoints.
14
+ * Setting up gemspec file.
15
+ * Added gitignore.
16
+ * Added LICENSE.
17
+ * Added README.md.
18
+
19
+ ## 0.0.0
20
+ #### 2016-06-16
21
+ * Initial commit.
data/README.md CHANGED
@@ -155,7 +155,7 @@ options = {
155
155
  'timeInForce' => 'GTC',
156
156
  'price' => '0.5'
157
157
  },
158
- 'stopLoss': {
158
+ 'stopLoss' => {
159
159
  'timeInForce' => 'GTC',
160
160
  'price' => '2.5'
161
161
  }
@@ -21,6 +21,18 @@ module OandaApiV20
21
21
  @headers['Authorization'] = "Bearer #{access_token}"
22
22
  @headers['X-Accept-Datetime-Format'] = 'RFC3339'
23
23
  @headers['Content-Type'] = 'application/json'
24
+
25
+ @debug = options[:debug] || false
26
+
27
+ persistent_connection_adapter_options = {
28
+ name: 'oanda_api_v20',
29
+ keep_alive: 30,
30
+ idle_timeout: 10,
31
+ warn_timeout: 2,
32
+ pool_size: 2
33
+ }
34
+ persistent_connection_adapter_options.merge!(logger: RubyVM::Logger.new(STDOUT)) if @debug
35
+ Client.persistent_connection_adapter(persistent_connection_adapter_options)
24
36
  end
25
37
 
26
38
  def method_missing(name, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module OandaApiV20
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oanda_api_v20
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kobus Joubert
@@ -45,6 +45,7 @@ extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
47
  - ".gitignore"
48
+ - CHANGELOG.md
48
49
  - LICENSE
49
50
  - README.md
50
51
  - lib/oanda_api_v20.rb