oanda_api 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +15 -0
  4. data/CHANGELOG.md +24 -9
  5. data/Gemfile +2 -3
  6. data/README.md +11 -9
  7. data/lib/oanda_api.rb +1 -0
  8. data/lib/oanda_api/client/client.rb +13 -7
  9. data/lib/oanda_api/configuration.rb +57 -24
  10. data/lib/oanda_api/resource/order.rb +5 -6
  11. data/lib/oanda_api/resource/transaction.rb +3 -4
  12. data/lib/oanda_api/resource_collection.rb +4 -2
  13. data/lib/oanda_api/streaming/request.rb +6 -1
  14. data/lib/oanda_api/throttling/throttling.rb +105 -0
  15. data/lib/oanda_api/version.rb +1 -1
  16. data/oanda_api.gemspec +4 -4
  17. data/spec/fixtures/vcr_cassettes/accounts_get.yml +7 -5
  18. data/spec/fixtures/vcr_cassettes/accounts_id_get.yml +18 -14
  19. data/spec/fixtures/vcr_cassettes/calendar_events_period_get.yml +20 -14
  20. data/spec/fixtures/vcr_cassettes/calendar_instrument_and_period_get.yml +24 -21
  21. data/spec/fixtures/vcr_cassettes/calendar_period_get.yml +20 -14
  22. data/spec/fixtures/vcr_cassettes/candles_options_get.yml +12 -10
  23. data/spec/fixtures/vcr_cassettes/client_helper_accounts.yml +48 -5
  24. data/spec/fixtures/vcr_cassettes/instrument_EUR_USD.yml +11 -9
  25. data/spec/fixtures/vcr_cassettes/instrument_USD_JPY.yml +10 -8
  26. data/spec/fixtures/vcr_cassettes/instruments_get.yml +25 -19
  27. data/spec/fixtures/vcr_cassettes/instruments_options_get.yml +8 -6
  28. data/spec/fixtures/vcr_cassettes/order_id_close.yml +159 -313
  29. data/spec/fixtures/vcr_cassettes/order_id_get.yml +103 -21
  30. data/spec/fixtures/vcr_cassettes/order_options_create.yml +9 -7
  31. data/spec/fixtures/vcr_cassettes/order_options_update.yml +62 -20
  32. data/spec/fixtures/vcr_cassettes/orders_get.yml +46 -137
  33. data/spec/fixtures/vcr_cassettes/orders_options_get.yml +29 -50
  34. data/spec/fixtures/vcr_cassettes/positions_get.yml +19 -15
  35. data/spec/fixtures/vcr_cassettes/positions_instrument_close.yml +35 -27
  36. data/spec/fixtures/vcr_cassettes/positions_instrument_get.yml +17 -13
  37. data/spec/fixtures/vcr_cassettes/prices_options_get.yml +12 -10
  38. data/spec/fixtures/vcr_cassettes/spread_history_get.yml +17 -13
  39. data/spec/fixtures/vcr_cassettes/spreads_get.yml +17 -13
  40. data/spec/fixtures/vcr_cassettes/trade_id_close.yml +115 -52
  41. data/spec/fixtures/vcr_cassettes/trade_id_get.yml +278 -16
  42. data/spec/fixtures/vcr_cassettes/trade_options_modify.yml +58 -16
  43. data/spec/fixtures/vcr_cassettes/trades_filter_get.yml +44 -19
  44. data/spec/fixtures/vcr_cassettes/trades_get.yml +55 -16
  45. data/spec/fixtures/vcr_cassettes/transaction_id_get.yml +271 -149
  46. data/spec/fixtures/vcr_cassettes/transactions_options_get.yml +258 -133
  47. data/spec/fixtures/vcr_cassettes/with_throttling_and_max_requests_per_second.yml +28 -22
  48. data/spec/fixtures/vcr_cassettes/with_throttling_new_connections.yml +443 -0
  49. data/spec/fixtures/vcr_cassettes/with_throttling_with_multiple_threads.yml +57 -45
  50. data/spec/fixtures/vcr_cassettes/without_throttling.yml +91 -71
  51. data/spec/oanda_api/configuration_spec.rb +31 -0
  52. data/spec/oanda_api/examples/request_throttling_spec.rb +39 -4
  53. data/spec/oanda_api/examples/spread_history_spec.rb +3 -3
  54. data/spec/oanda_api/resource_collection_spec.rb +9 -0
  55. data/spec/oanda_api/streaming/client_spec.rb +5 -5
  56. data/spec/oanda_api/streaming/request_spec.rb +23 -8
  57. data/spec/spec_helper.rb +0 -3
  58. data/spec/support/client_helper.rb +6 -2
  59. metadata +13 -12
  60. data/spec/fixtures/vcr_cassettes/client_helper_account.yml +0 -45
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
6
6
  body:
7
7
  encoding: UTF-8
8
- string: expiry=2016-03-14T22%3A30%3A16%2B00%3A00&instrument=EUR_USD&price=1.0101499999999999&side=buy&type=limit&units=10000
8
+ string: expiry=2018-01-08T19%3A26%3A42%2B00%3A00&instrument=EUR_USD&price=1.0967&side=buy&type=limit&units=10000
9
9
  headers:
10
10
  X-Accept-Datetime-Format:
11
11
  - RFC3339
@@ -14,36 +14,116 @@ http_interactions:
14
14
  Connection:
15
15
  - keep-alive
16
16
  Keep-Alive:
17
- - 30
17
+ - '30'
18
18
  response:
19
19
  status:
20
20
  code: 201
21
21
  message: CREATED
22
22
  headers:
23
23
  Server:
24
- - openresty/1.7.0.1
24
+ - openresty/1.9.15.1
25
25
  Date:
26
- - Mon, 14 Mar 2016 21:30:17 GMT
26
+ - Mon, 08 Jan 2018 18:26:31 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
30
- - '315'
30
+ - '314'
31
31
  Connection:
32
32
  - keep-alive
33
33
  Location:
34
- - https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10173828259
34
+ - http://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10903628493
35
+ Access-Control-Allow-Origin:
36
+ - "*"
35
37
  body:
36
38
  encoding: UTF-8
37
- string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2016-03-14T21:30:17.000000Z\",\n\t\"price\"
38
- : 1.01015,\n\t\"orderOpened\" : {\n\t\t\"id\" : 10173828259,\n\t\t\"units\"
39
+ string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\"price\"
40
+ : 1.0967,\n\t\"orderOpened\" : {\n\t\t\"id\" : 10903628493,\n\t\t\"units\"
39
41
  : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\"
40
- : 0,\n\t\t\"expiry\" : \"2016-03-14T22:30:16.000000Z\",\n\t\t\"upperBound\"
42
+ : 0,\n\t\t\"expiry\" : \"2018-01-08T19:26:42.000000Z\",\n\t\t\"upperBound\"
41
43
  : 0,\n\t\t\"lowerBound\" : 0,\n\t\t\"trailingStop\" : 0\n\t}\n}"
42
44
  http_version:
43
- recorded_at: Mon, 14 Mar 2016 21:30:17 GMT
45
+ recorded_at: Mon, 08 Jan 2018 18:26:42 GMT
44
46
  - request:
45
47
  method: get
46
- uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10173828259
48
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ X-Accept-Datetime-Format:
54
+ - RFC3339
55
+ Authorization:
56
+ - Bearer <OANDA_TESTING_API_TOKEN>
57
+ Connection:
58
+ - keep-alive
59
+ Keep-Alive:
60
+ - '30'
61
+ response:
62
+ status:
63
+ code: 200
64
+ message: OK
65
+ headers:
66
+ Server:
67
+ - openresty/1.9.15.1
68
+ Date:
69
+ - Mon, 08 Jan 2018 18:26:31 GMT
70
+ Content-Type:
71
+ - application/json
72
+ Content-Length:
73
+ - '2361'
74
+ Connection:
75
+ - keep-alive
76
+ Access-Control-Expose-Headers:
77
+ - X-Result-Count
78
+ Etag:
79
+ - '"ff0a5884d6797d07fec03ce9ca872dd2de699d38"'
80
+ X-Result-Count:
81
+ - '7'
82
+ Access-Control-Allow-Origin:
83
+ - "*"
84
+ body:
85
+ encoding: UTF-8
86
+ string: "{\n\t\"orders\" : [\n\t\t{\n\t\t\t\"id\" : 10903628493,\n\t\t\t\"instrument\"
87
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
88
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"price\"
89
+ : 1.0967,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
90
+ : \"2018-01-08T19:26:42.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
91
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628490,\n\t\t\t\"instrument\"
92
+ : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
93
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"price\"
94
+ : 112.964,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
95
+ : \"2018-01-08T19:26:42.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
96
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628489,\n\t\t\t\"instrument\"
97
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
98
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"price\"
99
+ : 1.0967,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
100
+ : \"2018-01-08T19:26:41.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
101
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622531,\n\t\t\t\"instrument\"
102
+ : \"EUR_USD\",\n\t\t\t\"units\" : 9000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
103
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:03:53.000000Z\",\n\t\t\t\"price\"
104
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
105
+ : \"2018-01-08T19:01:22.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
106
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622526,\n\t\t\t\"instrument\"
107
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
108
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"price\"
109
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
110
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
111
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622521,\n\t\t\t\"instrument\"
112
+ : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
113
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"price\"
114
+ : 112.981,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
115
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
116
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622514,\n\t\t\t\"instrument\"
117
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
118
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:10.000000Z\",\n\t\t\t\"price\"
119
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
120
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
121
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t}\n\t]\n}"
122
+ http_version:
123
+ recorded_at: Mon, 08 Jan 2018 18:26:42 GMT
124
+ - request:
125
+ method: get
126
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10903628493
47
127
  body:
48
128
  encoding: US-ASCII
49
129
  string: ''
@@ -55,30 +135,32 @@ http_interactions:
55
135
  Connection:
56
136
  - keep-alive
57
137
  Keep-Alive:
58
- - 30
138
+ - '30'
59
139
  response:
60
140
  status:
61
141
  code: 200
62
142
  message: OK
63
143
  headers:
64
144
  Server:
65
- - openresty/1.7.0.1
145
+ - openresty/1.9.15.1
66
146
  Date:
67
- - Mon, 14 Mar 2016 21:30:17 GMT
147
+ - Mon, 08 Jan 2018 18:34:28 GMT
68
148
  Content-Type:
69
149
  - application/json
70
150
  Content-Length:
71
- - '303'
151
+ - '302'
72
152
  Connection:
73
153
  - keep-alive
74
154
  Etag:
75
- - '"badd17e09acaed9a0aa8686ce12e975b81eacf8d"'
155
+ - '"e03a78de5981b275693739a4e771c3c4bd5d6b4a"'
156
+ Access-Control-Allow-Origin:
157
+ - "*"
76
158
  body:
77
159
  encoding: UTF-8
78
- string: "{\n\t\"id\" : 10173828259,\n\t\"instrument\" : \"EUR_USD\",\n\t\"units\"
79
- : 10000,\n\t\"side\" : \"buy\",\n\t\"type\" : \"limit\",\n\t\"time\" : \"2016-03-14T21:30:17.000000Z\",\n\t\"price\"
80
- : 1.01015,\n\t\"takeProfit\" : 0,\n\t\"stopLoss\" : 0,\n\t\"expiry\" : \"2016-03-14T22:30:16.000000Z\",\n\t\"upperBound\"
160
+ string: "{\n\t\"id\" : 10903628493,\n\t\"instrument\" : \"EUR_USD\",\n\t\"units\"
161
+ : 10000,\n\t\"side\" : \"buy\",\n\t\"type\" : \"limit\",\n\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\"price\"
162
+ : 1.0967,\n\t\"takeProfit\" : 0,\n\t\"stopLoss\" : 0,\n\t\"expiry\" : \"2018-01-08T19:26:42.000000Z\",\n\t\"upperBound\"
81
163
  : 0,\n\t\"lowerBound\" : 0,\n\t\"trailingStop\" : 0\n}"
82
164
  http_version:
83
- recorded_at: Mon, 14 Mar 2016 21:30:17 GMT
84
- recorded_with: VCR 2.9.3
165
+ recorded_at: Mon, 08 Jan 2018 18:34:39 GMT
166
+ recorded_with: VCR 4.0.0
@@ -14,29 +14,31 @@ http_interactions:
14
14
  Connection:
15
15
  - keep-alive
16
16
  Keep-Alive:
17
- - 30
17
+ - '30'
18
18
  response:
19
19
  status:
20
20
  code: 200
21
21
  message: OK
22
22
  headers:
23
23
  Server:
24
- - openresty/1.7.0.1
24
+ - openresty/1.9.15.1
25
25
  Date:
26
- - Mon, 14 Mar 2016 21:30:16 GMT
26
+ - Mon, 08 Jan 2018 18:26:31 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
30
30
  - '275'
31
31
  Connection:
32
32
  - keep-alive
33
+ Access-Control-Allow-Origin:
34
+ - "*"
33
35
  body:
34
36
  encoding: UTF-8
35
- string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2016-03-14T21:30:16.000000Z\",\n\t\"price\"
36
- : 1.11036,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10173828244,\n\t\t\"units\"
37
+ string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2018-01-08T18:26:30.000000Z\",\n\t\"price\"
38
+ : 1.19683,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10903628488,\n\t\t\"units\"
37
39
  : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\"
38
40
  : 0,\n\t\t\"trailingStop\" : 0\n\t},\n\t\"tradesClosed\" : [],\n\t\"tradeReduced\"
39
41
  : {}\n}"
40
42
  http_version:
41
- recorded_at: Mon, 14 Mar 2016 21:30:16 GMT
42
- recorded_with: VCR 2.9.3
43
+ recorded_at: Mon, 08 Jan 2018 18:26:41 GMT
44
+ recorded_with: VCR 4.0.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
6
6
  body:
7
7
  encoding: UTF-8
8
- string: expiry=2016-03-14T22%3A32%3A35%2B00%3A00&instrument=EUR_USD&price=1.0101499999999999&side=buy&type=limit&units=10000
8
+ string: expiry=2018-01-08T19%3A26%3A42%2B00%3A00&instrument=EUR_USD&price=1.0967&side=buy&type=limit&units=10000
9
9
  headers:
10
10
  X-Accept-Datetime-Format:
11
11
  - RFC3339
@@ -14,36 +14,76 @@ http_interactions:
14
14
  Connection:
15
15
  - keep-alive
16
16
  Keep-Alive:
17
- - 30
17
+ - '30'
18
18
  response:
19
19
  status:
20
20
  code: 201
21
21
  message: CREATED
22
22
  headers:
23
23
  Server:
24
- - openresty/1.7.0.1
24
+ - openresty/1.9.15.1
25
25
  Date:
26
- - Mon, 14 Mar 2016 21:32:36 GMT
26
+ - Mon, 08 Jan 2018 18:26:32 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
30
- - '315'
30
+ - '314'
31
31
  Connection:
32
32
  - keep-alive
33
33
  Location:
34
- - https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10173830777
34
+ - http://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10903628497
35
+ Access-Control-Allow-Origin:
36
+ - "*"
35
37
  body:
36
38
  encoding: UTF-8
37
- string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2016-03-14T21:32:36.000000Z\",\n\t\"price\"
38
- : 1.01015,\n\t\"orderOpened\" : {\n\t\t\"id\" : 10173830777,\n\t\t\"units\"
39
+ string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2018-01-08T18:26:32.000000Z\",\n\t\"price\"
40
+ : 1.0967,\n\t\"orderOpened\" : {\n\t\t\"id\" : 10903628497,\n\t\t\"units\"
39
41
  : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\"
40
- : 0,\n\t\t\"expiry\" : \"2016-03-14T22:32:35.000000Z\",\n\t\t\"upperBound\"
42
+ : 0,\n\t\t\"expiry\" : \"2018-01-08T19:26:42.000000Z\",\n\t\t\"upperBound\"
41
43
  : 0,\n\t\t\"lowerBound\" : 0,\n\t\t\"trailingStop\" : 0\n\t}\n}"
42
44
  http_version:
43
- recorded_at: Mon, 14 Mar 2016 21:32:36 GMT
45
+ recorded_at: Mon, 08 Jan 2018 18:26:42 GMT
44
46
  - request:
45
47
  method: patch
46
- uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10173830777
48
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
49
+ body:
50
+ encoding: UTF-8
51
+ string: units=9000
52
+ headers:
53
+ X-Accept-Datetime-Format:
54
+ - RFC3339
55
+ Authorization:
56
+ - Bearer <OANDA_TESTING_API_TOKEN>
57
+ Connection:
58
+ - keep-alive
59
+ Keep-Alive:
60
+ - '30'
61
+ response:
62
+ status:
63
+ code: 405
64
+ message: METHOD_NOT_ALLOWED
65
+ headers:
66
+ Server:
67
+ - openresty/1.9.15.1
68
+ Date:
69
+ - Mon, 08 Jan 2018 18:26:32 GMT
70
+ Content-Type:
71
+ - application/json
72
+ Content-Length:
73
+ - '132'
74
+ Connection:
75
+ - keep-alive
76
+ Access-Control-Allow-Origin:
77
+ - "*"
78
+ body:
79
+ encoding: UTF-8
80
+ string: "{\n\t\"code\" : 7,\n\t\"message\" : \"Method not allowed\",\n\t\"moreInfo\"
81
+ : \"http:\\/\\/developer.oanda.com\\/docs\\/v1\\/troubleshooting\\/#errors\"\n}"
82
+ http_version:
83
+ recorded_at: Mon, 08 Jan 2018 18:26:43 GMT
84
+ - request:
85
+ method: patch
86
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10903628497
47
87
  body:
48
88
  encoding: UTF-8
49
89
  string: units=9000
@@ -55,28 +95,30 @@ http_interactions:
55
95
  Connection:
56
96
  - keep-alive
57
97
  Keep-Alive:
58
- - 30
98
+ - '30'
59
99
  response:
60
100
  status:
61
101
  code: 200
62
102
  message: OK
63
103
  headers:
64
104
  Server:
65
- - openresty/1.7.0.1
105
+ - openresty/1.9.15.1
66
106
  Date:
67
- - Mon, 14 Mar 2016 21:32:36 GMT
107
+ - Mon, 08 Jan 2018 18:34:28 GMT
68
108
  Content-Type:
69
109
  - application/json
70
110
  Content-Length:
71
- - '302'
111
+ - '301'
72
112
  Connection:
73
113
  - keep-alive
114
+ Access-Control-Allow-Origin:
115
+ - "*"
74
116
  body:
75
117
  encoding: UTF-8
76
- string: "{\n\t\"id\" : 10173830777,\n\t\"instrument\" : \"EUR_USD\",\n\t\"units\"
77
- : 9000,\n\t\"side\" : \"buy\",\n\t\"type\" : \"limit\",\n\t\"time\" : \"2016-03-14T21:32:36.000000Z\",\n\t\"price\"
78
- : 1.01015,\n\t\"takeProfit\" : 0,\n\t\"stopLoss\" : 0,\n\t\"expiry\" : \"2016-03-14T22:32:35.000000Z\",\n\t\"upperBound\"
118
+ string: "{\n\t\"id\" : 10903628497,\n\t\"instrument\" : \"EUR_USD\",\n\t\"units\"
119
+ : 9000,\n\t\"side\" : \"buy\",\n\t\"type\" : \"limit\",\n\t\"time\" : \"2018-01-08T18:34:28.000000Z\",\n\t\"price\"
120
+ : 1.0967,\n\t\"takeProfit\" : 0,\n\t\"stopLoss\" : 0,\n\t\"expiry\" : \"2018-01-08T19:26:42.000000Z\",\n\t\"upperBound\"
79
121
  : 0,\n\t\"lowerBound\" : 0,\n\t\"trailingStop\" : 0\n}"
80
122
  http_version:
81
- recorded_at: Mon, 14 Mar 2016 21:32:36 GMT
82
- recorded_with: VCR 2.9.3
123
+ recorded_at: Mon, 08 Jan 2018 18:34:39 GMT
124
+ recorded_with: VCR 4.0.0
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
6
6
  body:
7
7
  encoding: UTF-8
8
- string: expiry=2016-03-14T22%3A30%3A16%2B00%3A00&instrument=EUR_USD&price=1.0101499999999999&side=buy&type=limit&units=10000
8
+ string: expiry=2018-01-08T19%3A26%3A41%2B00%3A00&instrument=EUR_USD&price=1.0967&side=buy&type=limit&units=10000
9
9
  headers:
10
10
  X-Accept-Datetime-Format:
11
11
  - RFC3339
@@ -14,33 +14,35 @@ http_interactions:
14
14
  Connection:
15
15
  - keep-alive
16
16
  Keep-Alive:
17
- - 30
17
+ - '30'
18
18
  response:
19
19
  status:
20
20
  code: 201
21
21
  message: CREATED
22
22
  headers:
23
23
  Server:
24
- - openresty/1.7.0.1
24
+ - openresty/1.9.15.1
25
25
  Date:
26
- - Mon, 14 Mar 2016 21:30:16 GMT
26
+ - Mon, 08 Jan 2018 18:26:31 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
30
- - '315'
30
+ - '314'
31
31
  Connection:
32
32
  - keep-alive
33
33
  Location:
34
- - https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10173828247
34
+ - http://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10903628489
35
+ Access-Control-Allow-Origin:
36
+ - "*"
35
37
  body:
36
38
  encoding: UTF-8
37
- string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2016-03-14T21:30:16.000000Z\",\n\t\"price\"
38
- : 1.01015,\n\t\"orderOpened\" : {\n\t\t\"id\" : 10173828247,\n\t\t\"units\"
39
+ string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\"price\"
40
+ : 1.0967,\n\t\"orderOpened\" : {\n\t\t\"id\" : 10903628489,\n\t\t\"units\"
39
41
  : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\"
40
- : 0,\n\t\t\"expiry\" : \"2016-03-14T22:30:16.000000Z\",\n\t\t\"upperBound\"
42
+ : 0,\n\t\t\"expiry\" : \"2018-01-08T19:26:41.000000Z\",\n\t\t\"upperBound\"
41
43
  : 0,\n\t\t\"lowerBound\" : 0,\n\t\t\"trailingStop\" : 0\n\t}\n}"
42
44
  http_version:
43
- recorded_at: Mon, 14 Mar 2016 21:30:16 GMT
45
+ recorded_at: Mon, 08 Jan 2018 18:26:42 GMT
44
46
  - request:
45
47
  method: get
46
48
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
@@ -55,151 +57,58 @@ http_interactions:
55
57
  Connection:
56
58
  - keep-alive
57
59
  Keep-Alive:
58
- - 30
60
+ - '30'
59
61
  response:
60
62
  status:
61
63
  code: 200
62
64
  message: OK
63
65
  headers:
64
66
  Server:
65
- - openresty/1.7.0.1
67
+ - openresty/1.9.15.1
66
68
  Date:
67
- - Mon, 14 Mar 2016 21:30:16 GMT
69
+ - Mon, 08 Jan 2018 18:26:31 GMT
68
70
  Content-Type:
69
71
  - application/json
70
72
  Content-Length:
71
- - '8059'
73
+ - '1692'
72
74
  Connection:
73
75
  - keep-alive
74
76
  Access-Control-Expose-Headers:
75
77
  - X-Result-Count
76
78
  Etag:
77
- - '"6896d0a20931c385ed3a0eda9dfc959dbb44efe7"'
79
+ - '"f096471d9a967a01e6c6b1f147e96f70c647e3ee"'
78
80
  X-Result-Count:
79
- - '24'
81
+ - '5'
82
+ Access-Control-Allow-Origin:
83
+ - "*"
80
84
  body:
81
85
  encoding: UTF-8
82
- string: "{\n\t\"orders\" : [\n\t\t{\n\t\t\t\"id\" : 10173828247,\n\t\t\t\"instrument\"
83
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
84
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:30:16.000000Z\",\n\t\t\t\"price\"
85
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
86
- : \"2016-03-14T22:30:16.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
87
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173825152,\n\t\t\t\"instrument\"
88
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
89
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:27:02.000000Z\",\n\t\t\t\"price\"
90
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
91
- : \"2016-03-14T22:27:02.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
92
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173825143,\n\t\t\t\"instrument\"
93
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
94
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:27:01.000000Z\",\n\t\t\t\"price\"
95
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
96
- : \"2016-03-14T22:27:01.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
97
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173825142,\n\t\t\t\"instrument\"
98
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
99
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:27:01.000000Z\",\n\t\t\t\"price\"
100
- : 113.673,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
101
- : \"2016-03-14T22:27:01.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
102
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173825132,\n\t\t\t\"instrument\"
103
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
104
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:27:00.000000Z\",\n\t\t\t\"price\"
105
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
106
- : \"2016-03-14T22:27:00.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
107
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173824151,\n\t\t\t\"instrument\"
108
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
109
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:26:10.000000Z\",\n\t\t\t\"price\"
110
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
111
- : \"2016-03-14T22:26:10.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
112
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173824146,\n\t\t\t\"instrument\"
86
+ string: "{\n\t\"orders\" : [\n\t\t{\n\t\t\t\"id\" : 10903628489,\n\t\t\t\"instrument\"
87
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
88
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"price\"
89
+ : 1.0967,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
90
+ : \"2018-01-08T19:26:41.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
91
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622531,\n\t\t\t\"instrument\"
92
+ : \"EUR_USD\",\n\t\t\t\"units\" : 9000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
93
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:03:53.000000Z\",\n\t\t\t\"price\"
94
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
95
+ : \"2018-01-08T19:01:22.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
96
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622526,\n\t\t\t\"instrument\"
97
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
98
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"price\"
99
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
100
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
101
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622521,\n\t\t\t\"instrument\"
113
102
  : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
114
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:26:10.000000Z\",\n\t\t\t\"price\"
115
- : 113.673,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
116
- : \"2016-03-14T22:26:09.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
117
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173824137,\n\t\t\t\"instrument\"
118
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
119
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:26:09.000000Z\",\n\t\t\t\"price\"
120
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
121
- : \"2016-03-14T22:26:09.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
122
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173822607,\n\t\t\t\"instrument\"
123
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
124
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:24:49.000000Z\",\n\t\t\t\"price\"
125
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
126
- : \"2016-03-14T22:24:49.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
127
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173822594,\n\t\t\t\"instrument\"
128
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
129
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:24:48.000000Z\",\n\t\t\t\"price\"
130
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
131
- : \"2016-03-14T22:24:48.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
132
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173822590,\n\t\t\t\"instrument\"
133
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
134
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:24:48.000000Z\",\n\t\t\t\"price\"
135
- : 113.665,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
136
- : \"2016-03-14T22:24:48.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
137
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173822575,\n\t\t\t\"instrument\"
138
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
139
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:24:48.000000Z\",\n\t\t\t\"price\"
140
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
141
- : \"2016-03-14T22:24:47.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
142
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173768379,\n\t\t\t\"instrument\"
143
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
144
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:57:59.000000Z\",\n\t\t\t\"price\"
145
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
146
- : \"2016-03-14T21:57:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
147
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173768352,\n\t\t\t\"instrument\"
148
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
149
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:57:58.000000Z\",\n\t\t\t\"price\"
150
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
151
- : \"2016-03-14T21:57:58.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
152
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173768333,\n\t\t\t\"instrument\"
153
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
154
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:57:58.000000Z\",\n\t\t\t\"price\"
155
- : 113.695,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
156
- : \"2016-03-14T21:57:58.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
157
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173768312,\n\t\t\t\"instrument\"
158
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
159
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:57:58.000000Z\",\n\t\t\t\"price\"
160
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
161
- : \"2016-03-14T21:57:57.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
162
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764716,\n\t\t\t\"instrument\"
163
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
164
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:57.000000Z\",\n\t\t\t\"price\"
165
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
166
- : \"2016-03-14T21:56:57.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
167
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764701,\n\t\t\t\"instrument\"
168
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
169
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:57.000000Z\",\n\t\t\t\"price\"
170
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
171
- : \"2016-03-14T21:56:57.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
172
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764680,\n\t\t\t\"instrument\"
173
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
174
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:57.000000Z\",\n\t\t\t\"price\"
175
- : 113.695,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
176
- : \"2016-03-14T21:56:56.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
177
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764657,\n\t\t\t\"instrument\"
178
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
179
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:56.000000Z\",\n\t\t\t\"price\"
180
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
181
- : \"2016-03-14T21:56:56.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
182
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700820,\n\t\t\t\"instrument\"
183
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
184
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:39:00.000000Z\",\n\t\t\t\"price\"
185
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
186
- : \"2016-03-14T21:39:00.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
187
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700804,\n\t\t\t\"instrument\"
188
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
189
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
190
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
191
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
192
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700793,\n\t\t\t\"instrument\"
193
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
194
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
195
- : 113.686,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
196
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
197
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700768,\n\t\t\t\"instrument\"
198
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
199
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
200
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
201
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
103
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"price\"
104
+ : 112.981,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
105
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
106
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622514,\n\t\t\t\"instrument\"
107
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
108
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:10.000000Z\",\n\t\t\t\"price\"
109
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
110
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
202
111
  : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t}\n\t]\n}"
203
112
  http_version:
204
- recorded_at: Mon, 14 Mar 2016 21:30:16 GMT
205
- recorded_with: VCR 2.9.3
113
+ recorded_at: Mon, 08 Jan 2018 18:26:42 GMT
114
+ recorded_with: VCR 4.0.0