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
@@ -14,16 +14,16 @@ 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 23:01:12 GMT
26
+ - Mon, 08 Jan 2018 18:26:30 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
@@ -32,6 +32,8 @@ http_interactions:
32
32
  - keep-alive
33
33
  Etag:
34
34
  - '"efb224b14d5e6c03ab1a19a9983274e09d124b20"'
35
+ Access-Control-Allow-Origin:
36
+ - "*"
35
37
  body:
36
38
  encoding: UTF-8
37
39
  string: "{\n\t\"accounts\" : [\n\t\t{\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"accountName\"
@@ -41,5 +43,46 @@ http_interactions:
41
43
  : 5094848,\n\t\t\t\"accountName\" : \"WTI\",\n\t\t\t\"accountCurrency\" :
42
44
  \"CAD\",\n\t\t\t\"marginRate\" : 0.05\n\t\t}\n\t]\n}"
43
45
  http_version:
44
- recorded_at: Mon, 14 Mar 2016 23:01:13 GMT
45
- recorded_with: VCR 2.9.3
46
+ recorded_at: Mon, 08 Jan 2018 18:26:41 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://api-fxpractice.oanda.com/v1/prices?instruments=EUR_USD
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ X-Accept-Datetime-Format:
55
+ - RFC3339
56
+ Authorization:
57
+ - Bearer <OANDA_TESTING_API_TOKEN>
58
+ Connection:
59
+ - keep-alive
60
+ Keep-Alive:
61
+ - '30'
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Server:
68
+ - openresty/1.9.15.1
69
+ Date:
70
+ - Tue, 09 Jan 2018 16:02:18 GMT
71
+ Content-Type:
72
+ - application/json
73
+ Content-Length:
74
+ - '139'
75
+ Connection:
76
+ - keep-alive
77
+ Etag:
78
+ - '"caf2973d938cdd35ff48cf6b0a3d0b58890db296"'
79
+ Access-Control-Allow-Origin:
80
+ - "*"
81
+ body:
82
+ encoding: UTF-8
83
+ string: "{\n\t\"prices\" : [\n\t\t{\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"time\"
84
+ : \"2018-01-09T16:02:18.372811Z\",\n\t\t\t\"bid\" : 1.19304,\n\t\t\t\"ask\"
85
+ : 1.19317\n\t\t}\n\t]\n}"
86
+ http_version:
87
+ recorded_at: Tue, 09 Jan 2018 16:02:32 GMT
88
+ 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:27:00 GMT
26
+ - Mon, 08 Jan 2018 18:26:31 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
30
- - '139'
30
+ - '138'
31
31
  Connection:
32
32
  - keep-alive
33
33
  Etag:
34
- - '"71a1a9fb60980bbf53ef4bfc3a238d77e468739a"'
34
+ - '"7ae48eaaf99b13c86a4ff0374d1f777d5f08ae97"'
35
+ Access-Control-Allow-Origin:
36
+ - "*"
35
37
  body:
36
38
  encoding: UTF-8
37
39
  string: "{\n\t\"prices\" : [\n\t\t{\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"time\"
38
- : \"2016-03-14T21:26:36.569124Z\",\n\t\t\t\"bid\" : 1.11015,\n\t\t\t\"ask\"
39
- : 1.11036\n\t\t}\n\t]\n}"
40
+ : \"2018-01-08T18:26:29.565399Z\",\n\t\t\t\"bid\" : 1.1967,\n\t\t\t\"ask\"
41
+ : 1.19683\n\t\t}\n\t]\n}"
40
42
  http_version:
41
- recorded_at: Mon, 14 Mar 2016 21:27:00 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
@@ -14,16 +14,16 @@ 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:27:01 GMT
26
+ - Mon, 08 Jan 2018 18:26:31 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
@@ -31,12 +31,14 @@ http_interactions:
31
31
  Connection:
32
32
  - keep-alive
33
33
  Etag:
34
- - '"1642dcb8a7f28e4883350b2fff6f20564235f600"'
34
+ - '"43cd71e279e9a0cda2f03ff40944ad6e0427100e"'
35
+ Access-Control-Allow-Origin:
36
+ - "*"
35
37
  body:
36
38
  encoding: UTF-8
37
39
  string: "{\n\t\"prices\" : [\n\t\t{\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
38
- : \"2016-03-14T21:25:16.642637Z\",\n\t\t\t\"bid\" : 113.773,\n\t\t\t\"ask\"
39
- : 113.793\n\t\t}\n\t]\n}"
40
+ : \"2018-01-08T18:26:18.376967Z\",\n\t\t\t\"bid\" : 113.064,\n\t\t\t\"ask\"
41
+ : 113.076\n\t\t}\n\t]\n}"
40
42
  http_version:
41
- recorded_at: Mon, 14 Mar 2016 21:27:01 GMT
42
- recorded_with: VCR 2.9.3
43
+ recorded_at: Mon, 08 Jan 2018 18:26:42 GMT
44
+ recorded_with: VCR 4.0.0
@@ -14,26 +14,28 @@ 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 23:01:12 GMT
26
+ - Mon, 08 Jan 2018 18:26:33 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
30
- - '14383'
30
+ - '14611'
31
31
  Connection:
32
32
  - keep-alive
33
33
  Etag:
34
- - '"21cbe123ce099d570ae83273e2ce2743987ca052"'
34
+ - '"f1504381da368d2d283522ba5f785563884e11bb"'
35
35
  Expires:
36
- - Tue, 15 Mar 2016 23:01:12 GMT
36
+ - Tue, 09 Jan 2018 18:26:33 GMT
37
+ Access-Control-Allow-Origin:
38
+ - "*"
37
39
  body:
38
40
  encoding: UTF-8
39
41
  string: "{\n\t\"instruments\" : [\n\t\t{\n\t\t\t\"instrument\" : \"AU200_AUD\",\n\t\t\t\"displayName\"
@@ -57,17 +59,17 @@ http_interactions:
57
59
  : \"CAD_JPY\",\n\t\t\t\"displayName\" : \"CAD\\/JPY\",\n\t\t\t\"pip\" : \"0.01\",\n\t\t\t\"maxTradeUnits\"
58
60
  : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"CAD_SGD\",\n\t\t\t\"displayName\"
59
61
  : \"CAD\\/SGD\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"maxTradeUnits\" : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
60
- : \"CH20_CHF\",\n\t\t\t\"displayName\" : \"Swiss 20\",\n\t\t\t\"pip\" : \"1.0\",\n\t\t\t\"maxTradeUnits\"
61
- : 100\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"CHF_HKD\",\n\t\t\t\"displayName\"
62
- : \"CHF\\/HKD\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"maxTradeUnits\" : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
63
- : \"CHF_JPY\",\n\t\t\t\"displayName\" : \"CHF\\/JPY\",\n\t\t\t\"pip\" : \"0.01\",\n\t\t\t\"maxTradeUnits\"
64
- : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"CHF_ZAR\",\n\t\t\t\"displayName\"
65
- : \"CHF\\/ZAR\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"maxTradeUnits\" : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
62
+ : \"CHF_HKD\",\n\t\t\t\"displayName\" : \"CHF\\/HKD\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"maxTradeUnits\"
63
+ : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"CHF_JPY\",\n\t\t\t\"displayName\"
64
+ : \"CHF\\/JPY\",\n\t\t\t\"pip\" : \"0.01\",\n\t\t\t\"maxTradeUnits\" : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
65
+ : \"CHF_ZAR\",\n\t\t\t\"displayName\" : \"CHF\\/ZAR\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"maxTradeUnits\"
66
+ : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"CN50_USD\",\n\t\t\t\"displayName\"
67
+ : \"China A50\",\n\t\t\t\"pip\" : \"1.0\",\n\t\t\t\"maxTradeUnits\" : 100\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
66
68
  : \"CORN_USD\",\n\t\t\t\"displayName\" : \"Corn\",\n\t\t\t\"pip\" : \"0.01\",\n\t\t\t\"maxTradeUnits\"
67
69
  : 150000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"DE10YB_EUR\",\n\t\t\t\"displayName\"
68
70
  : \"Bund\",\n\t\t\t\"pip\" : \"0.01\",\n\t\t\t\"maxTradeUnits\" : 6000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
69
71
  : \"DE30_EUR\",\n\t\t\t\"displayName\" : \"Germany 30\",\n\t\t\t\"pip\" :
70
- \"1.0\",\n\t\t\t\"maxTradeUnits\" : 250\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
72
+ \"1.0\",\n\t\t\t\"maxTradeUnits\" : 25\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
71
73
  : \"EU50_EUR\",\n\t\t\t\"displayName\" : \"Europe 50\",\n\t\t\t\"pip\" : \"1.0\",\n\t\t\t\"maxTradeUnits\"
72
74
  : 300\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"EUR_AUD\",\n\t\t\t\"displayName\"
73
75
  : \"EUR\\/AUD\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"maxTradeUnits\" : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
@@ -114,8 +116,10 @@ http_interactions:
114
116
  : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"HK33_HKD\",\n\t\t\t\"displayName\"
115
117
  : \"Hong Kong 33\",\n\t\t\t\"pip\" : \"1.0\",\n\t\t\t\"maxTradeUnits\" : 400\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
116
118
  : \"HKD_JPY\",\n\t\t\t\"displayName\" : \"HKD\\/JPY\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"maxTradeUnits\"
117
- : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"JP225_USD\",\n\t\t\t\"displayName\"
118
- : \"Japan 225\",\n\t\t\t\"pip\" : \"1.0\",\n\t\t\t\"maxTradeUnits\" : 100\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
119
+ : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"IN50_USD\",\n\t\t\t\"displayName\"
120
+ : \"India 50\",\n\t\t\t\"pip\" : \"1.0\",\n\t\t\t\"maxTradeUnits\" : 100\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
121
+ : \"JP225_USD\",\n\t\t\t\"displayName\" : \"Japan 225\",\n\t\t\t\"pip\" :
122
+ \"1.0\",\n\t\t\t\"maxTradeUnits\" : 100\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
119
123
  : \"NAS100_USD\",\n\t\t\t\"displayName\" : \"US Nas 100\",\n\t\t\t\"pip\"
120
124
  : \"1.0\",\n\t\t\t\"maxTradeUnits\" : 400\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
121
125
  : \"NATGAS_USD\",\n\t\t\t\"displayName\" : \"Natural Gas\",\n\t\t\t\"pip\"
@@ -144,13 +148,15 @@ http_interactions:
144
148
  : \"SUGAR_USD\",\n\t\t\t\"displayName\" : \"Sugar\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"maxTradeUnits\"
145
149
  : 4000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"TRY_JPY\",\n\t\t\t\"displayName\"
146
150
  : \"TRY\\/JPY\",\n\t\t\t\"pip\" : \"0.01\",\n\t\t\t\"maxTradeUnits\" : 10000000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
151
+ : \"TWIX_USD\",\n\t\t\t\"displayName\" : \"Taiwan Index\",\n\t\t\t\"pip\"
152
+ : \"1.0\",\n\t\t\t\"maxTradeUnits\" : 100\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
147
153
  : \"UK100_GBP\",\n\t\t\t\"displayName\" : \"UK 100\",\n\t\t\t\"pip\" : \"1.0\",\n\t\t\t\"maxTradeUnits\"
148
- : 100\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"UK10YB_GBP\",\n\t\t\t\"displayName\"
154
+ : 20\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"UK10YB_GBP\",\n\t\t\t\"displayName\"
149
155
  : \"UK 10Y Gilt\",\n\t\t\t\"pip\" : \"0.01\",\n\t\t\t\"maxTradeUnits\" : 6000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
150
156
  : \"US2000_USD\",\n\t\t\t\"displayName\" : \"US Russ 2000\",\n\t\t\t\"pip\"
151
157
  : \"0.01\",\n\t\t\t\"maxTradeUnits\" : 1000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
152
158
  : \"US30_USD\",\n\t\t\t\"displayName\" : \"US Wall St 30\",\n\t\t\t\"pip\"
153
- : \"1.0\",\n\t\t\t\"maxTradeUnits\" : 100\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
159
+ : \"1.0\",\n\t\t\t\"maxTradeUnits\" : 25\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
154
160
  : \"USB02Y_USD\",\n\t\t\t\"displayName\" : \"US 2Y T-Note\",\n\t\t\t\"pip\"
155
161
  : \"0.01\",\n\t\t\t\"maxTradeUnits\" : 6000\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
156
162
  : \"USB05Y_USD\",\n\t\t\t\"displayName\" : \"US 5Y T-Note\",\n\t\t\t\"pip\"
@@ -231,5 +237,5 @@ http_interactions:
231
237
  : 500\n\t\t},\n\t\t{\n\t\t\t\"instrument\" : \"ZAR_JPY\",\n\t\t\t\"displayName\"
232
238
  : \"ZAR\\/JPY\",\n\t\t\t\"pip\" : \"0.01\",\n\t\t\t\"maxTradeUnits\" : 10000000\n\t\t}\n\t]\n}"
233
239
  http_version:
234
- recorded_at: Mon, 14 Mar 2016 23:01:13 GMT
235
- recorded_with: VCR 2.9.3
240
+ recorded_at: Mon, 08 Jan 2018 18:26:44 GMT
241
+ recorded_with: VCR 4.0.0
@@ -14,16 +14,16 @@ 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 23:01:12 GMT
26
+ - Mon, 08 Jan 2018 18:26:34 GMT
27
27
  Content-Type:
28
28
  - application/json
29
29
  Content-Length:
@@ -33,12 +33,14 @@ http_interactions:
33
33
  Etag:
34
34
  - '"3a3c61c7d6d86ef8c92f59e4020f39d07e2e5b2f"'
35
35
  Expires:
36
- - Tue, 15 Mar 2016 23:01:12 GMT
36
+ - Tue, 09 Jan 2018 18:26:34 GMT
37
+ Access-Control-Allow-Origin:
38
+ - "*"
37
39
  body:
38
40
  encoding: UTF-8
39
41
  string: "{\n\t\"instruments\" : [\n\t\t{\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"pip\"
40
42
  : \"0.0001\",\n\t\t\t\"precision\" : \"0.00001\"\n\t\t},\n\t\t{\n\t\t\t\"instrument\"
41
43
  : \"EUR_CAD\",\n\t\t\t\"pip\" : \"0.0001\",\n\t\t\t\"precision\" : \"0.00001\"\n\t\t}\n\t]\n}"
42
44
  http_version:
43
- recorded_at: Mon, 14 Mar 2016 23:01:13 GMT
44
- recorded_with: VCR 2.9.3
45
+ recorded_at: Mon, 08 Jan 2018 18:26:44 GMT
46
+ 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%3A36%2B00%3A00&instrument=EUR_USD&price=1.0101499999999999&side=buy&type=limit&units=10000
8
+ string: expiry=2018-01-08T19%3A26%3A43%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: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/10173830784
34
+ - http://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10903628501
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\" : 10173830784,\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\" : 10903628501,\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:36.000000Z\",\n\t\t\"upperBound\"
42
+ : 0,\n\t\t\"expiry\" : \"2018-01-08T19:26:43.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:43 GMT
44
46
  - request:
45
47
  method: get
46
48
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
@@ -55,181 +57,83 @@ 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:32:36 GMT
69
+ - Mon, 08 Jan 2018 18:26:32 GMT
68
70
  Content-Type:
69
71
  - application/json
70
72
  Content-Length:
71
- - '9733'
73
+ - '3029'
72
74
  Connection:
73
75
  - keep-alive
74
76
  Access-Control-Expose-Headers:
75
77
  - X-Result-Count
76
78
  Etag:
77
- - '"6aeef75979f680b4f3217132b753944193d5fdf0"'
79
+ - '"554bb45ed321bc39d3edf391c3cbf89e61683263"'
78
80
  X-Result-Count:
79
- - '29'
81
+ - '9'
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\" : 10173830784,\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:32:36.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:32:36.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\" : 10173830777,\n\t\t\t\"instrument\"
88
- : \"EUR_USD\",\n\t\t\t\"units\" : 9000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
89
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:32:36.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:32:35.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\" : 10173828266,\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:30:17.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:30:17.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\" : 10173828259,\n\t\t\t\"instrument\"
98
- : \"EUR_USD\",\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:30:17.000000Z\",\n\t\t\t\"price\"
100
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
101
- : \"2016-03-14T22:30:16.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\" : 10173828251,\n\t\t\t\"instrument\"
103
- : \"USD_JPY\",\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:30:16.000000Z\",\n\t\t\t\"price\"
105
- : 113.673,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
106
- : \"2016-03-14T22:30:16.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\" : 10173828247,\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:30:16.000000Z\",\n\t\t\t\"price\"
110
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
111
- : \"2016-03-14T22:30:16.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\" : 10173825152,\n\t\t\t\"instrument\"
113
- : \"EUR_USD\",\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:27:02.000000Z\",\n\t\t\t\"price\"
115
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
116
- : \"2016-03-14T22:27:02.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\" : 10173825143,\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:27:01.000000Z\",\n\t\t\t\"price\"
120
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
121
- : \"2016-03-14T22:27:01.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\" : 10173825142,\n\t\t\t\"instrument\"
123
- : \"USD_JPY\",\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:27:01.000000Z\",\n\t\t\t\"price\"
125
- : 113.673,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
126
- : \"2016-03-14T22:27:01.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\" : 10173825132,\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:27:00.000000Z\",\n\t\t\t\"price\"
130
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
131
- : \"2016-03-14T22:27:00.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\" : 10173824151,\n\t\t\t\"instrument\"
133
- : \"EUR_USD\",\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:26:10.000000Z\",\n\t\t\t\"price\"
135
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
136
- : \"2016-03-14T22:26:10.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\" : 10173824146,\n\t\t\t\"instrument\"
86
+ string: "{\n\t\"orders\" : [\n\t\t{\n\t\t\t\"id\" : 10903628501,\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:32.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:43.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\" : 10903628497,\n\t\t\t\"instrument\"
92
+ : \"EUR_USD\",\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:32.000000Z\",\n\t\t\t\"price\"
94
+ : 1.0967,\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\" : 10903628493,\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:42.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\" : 10903628490,\n\t\t\t\"instrument\"
138
102
  : \"USD_JPY\",\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:26:10.000000Z\",\n\t\t\t\"price\"
140
- : 113.673,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
141
- : \"2016-03-14T22:26:09.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\" : 10173824137,\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-14T21:26:09.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-14T22:26:09.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\" : 10173822607,\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-14T21:24:49.000000Z\",\n\t\t\t\"price\"
150
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
151
- : \"2016-03-14T22:24:49.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\" : 10173822594,\n\t\t\t\"instrument\"
153
- : \"EUR_USD\",\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-14T21:24:48.000000Z\",\n\t\t\t\"price\"
155
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
156
- : \"2016-03-14T22:24:48.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\" : 10173822590,\n\t\t\t\"instrument\"
158
- : \"USD_JPY\",\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-14T21:24:48.000000Z\",\n\t\t\t\"price\"
160
- : 113.665,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
161
- : \"2016-03-14T22:24:48.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\" : 10173822575,\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-14T21:24:48.000000Z\",\n\t\t\t\"price\"
165
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
166
- : \"2016-03-14T22:24:47.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\" : 10173768379,\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:57:59.000000Z\",\n\t\t\t\"price\"
170
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
171
- : \"2016-03-14T21:57:59.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\" : 10173768352,\n\t\t\t\"instrument\"
173
- : \"EUR_USD\",\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:57:58.000000Z\",\n\t\t\t\"price\"
175
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
176
- : \"2016-03-14T21:57:58.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\" : 10173768333,\n\t\t\t\"instrument\"
178
- : \"USD_JPY\",\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:57:58.000000Z\",\n\t\t\t\"price\"
180
- : 113.695,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
181
- : \"2016-03-14T21:57:58.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\" : 10173768312,\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:57:58.000000Z\",\n\t\t\t\"price\"
185
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
186
- : \"2016-03-14T21:57:57.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\" : 10173764716,\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:56:57.000000Z\",\n\t\t\t\"price\"
190
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
191
- : \"2016-03-14T21:56:57.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\" : 10173764701,\n\t\t\t\"instrument\"
193
- : \"EUR_USD\",\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:56:57.000000Z\",\n\t\t\t\"price\"
195
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
196
- : \"2016-03-14T21:56:57.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\" : 10173764680,\n\t\t\t\"instrument\"
198
- : \"USD_JPY\",\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:56:57.000000Z\",\n\t\t\t\"price\"
200
- : 113.695,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
201
- : \"2016-03-14T21:56:56.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
202
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764657,\n\t\t\t\"instrument\"
203
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
204
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:56.000000Z\",\n\t\t\t\"price\"
205
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
206
- : \"2016-03-14T21:56:56.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
207
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700820,\n\t\t\t\"instrument\"
208
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
209
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:39:00.000000Z\",\n\t\t\t\"price\"
210
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
211
- : \"2016-03-14T21:39:00.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
212
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700804,\n\t\t\t\"instrument\"
213
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
214
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
215
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
216
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
217
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700793,\n\t\t\t\"instrument\"
103
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"price\"
104
+ : 112.964,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
105
+ : \"2018-01-08T19:26:42.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\" : 10903628489,\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:26:31.000000Z\",\n\t\t\t\"price\"
109
+ : 1.0967,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
110
+ : \"2018-01-08T19:26:41.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\" : 10903622531,\n\t\t\t\"instrument\"
112
+ : \"EUR_USD\",\n\t\t\t\"units\" : 9000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
113
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:03:53.000000Z\",\n\t\t\t\"price\"
114
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
115
+ : \"2018-01-08T19:01:22.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\" : 10903622526,\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:11.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\t{\n\t\t\t\"id\" : 10903622521,\n\t\t\t\"instrument\"
218
122
  : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
219
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
220
- : 113.686,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
221
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
222
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700768,\n\t\t\t\"instrument\"
223
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
224
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
225
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
226
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
123
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"price\"
124
+ : 112.981,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
125
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
126
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622514,\n\t\t\t\"instrument\"
127
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
128
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:10.000000Z\",\n\t\t\t\"price\"
129
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
130
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
227
131
  : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t}\n\t]\n}"
228
132
  http_version:
229
- recorded_at: Mon, 14 Mar 2016 21:32:36 GMT
133
+ recorded_at: Mon, 08 Jan 2018 18:26:43 GMT
230
134
  - request:
231
135
  method: delete
232
- uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10173830784
136
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
233
137
  body:
234
138
  encoding: US-ASCII
235
139
  string: ''
@@ -241,29 +145,69 @@ http_interactions:
241
145
  Connection:
242
146
  - keep-alive
243
147
  Keep-Alive:
244
- - 30
148
+ - '30'
149
+ response:
150
+ status:
151
+ code: 405
152
+ message: METHOD_NOT_ALLOWED
153
+ headers:
154
+ Server:
155
+ - openresty/1.9.15.1
156
+ Date:
157
+ - Mon, 08 Jan 2018 18:26:32 GMT
158
+ Content-Type:
159
+ - application/json
160
+ Content-Length:
161
+ - '132'
162
+ Connection:
163
+ - keep-alive
164
+ Access-Control-Allow-Origin:
165
+ - "*"
166
+ body:
167
+ encoding: UTF-8
168
+ string: "{\n\t\"code\" : 7,\n\t\"message\" : \"Method not allowed\",\n\t\"moreInfo\"
169
+ : \"http:\\/\\/developer.oanda.com\\/docs\\/v1\\/troubleshooting\\/#errors\"\n}"
170
+ http_version:
171
+ recorded_at: Mon, 08 Jan 2018 18:26:43 GMT
172
+ - request:
173
+ method: delete
174
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders/10903628501
175
+ body:
176
+ encoding: US-ASCII
177
+ string: ''
178
+ headers:
179
+ X-Accept-Datetime-Format:
180
+ - RFC3339
181
+ Authorization:
182
+ - Bearer <OANDA_TESTING_API_TOKEN>
183
+ Connection:
184
+ - keep-alive
185
+ Keep-Alive:
186
+ - '30'
245
187
  response:
246
188
  status:
247
189
  code: 200
248
190
  message: OK
249
191
  headers:
250
192
  Server:
251
- - openresty/1.7.0.1
193
+ - openresty/1.9.15.1
252
194
  Date:
253
- - Mon, 14 Mar 2016 21:32:36 GMT
195
+ - Mon, 08 Jan 2018 18:34:28 GMT
254
196
  Content-Type:
255
197
  - application/json
256
198
  Content-Length:
257
- - '168'
199
+ - '167'
258
200
  Connection:
259
201
  - keep-alive
202
+ Access-Control-Allow-Origin:
203
+ - "*"
260
204
  body:
261
205
  encoding: UTF-8
262
- string: "{\n\t\"id\" : 10173830784,\n\t\"instrument\" : \"EUR_USD\",\n\t\"units\"
263
- : 10000,\n\t\"side\" : \"buy\",\n\t\"price\" : 1.01015,\n\t\"time\" : \"2016-03-14T21:32:36.000000Z\",\n\t\"type\"
206
+ string: "{\n\t\"id\" : 10903628501,\n\t\"instrument\" : \"EUR_USD\",\n\t\"units\"
207
+ : 10000,\n\t\"side\" : \"buy\",\n\t\"price\" : 1.0967,\n\t\"time\" : \"2018-01-08T18:34:28.000000Z\",\n\t\"type\"
264
208
  : \"BuyLimit\"\n}"
265
209
  http_version:
266
- recorded_at: Mon, 14 Mar 2016 21:32:36 GMT
210
+ recorded_at: Mon, 08 Jan 2018 18:34:39 GMT
267
211
  - request:
268
212
  method: get
269
213
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders
@@ -278,171 +222,73 @@ http_interactions:
278
222
  Connection:
279
223
  - keep-alive
280
224
  Keep-Alive:
281
- - 30
225
+ - '30'
282
226
  response:
283
227
  status:
284
228
  code: 200
285
229
  message: OK
286
230
  headers:
287
231
  Server:
288
- - openresty/1.7.0.1
232
+ - openresty/1.9.15.1
289
233
  Date:
290
- - Mon, 14 Mar 2016 21:32:37 GMT
234
+ - Mon, 08 Jan 2018 18:34:28 GMT
291
235
  Content-Type:
292
236
  - application/json
293
237
  Content-Length:
294
- - '9398'
238
+ - '2694'
295
239
  Connection:
296
240
  - keep-alive
297
241
  Access-Control-Expose-Headers:
298
242
  - X-Result-Count
299
243
  Etag:
300
- - '"51d5af424cf8d2c9109a08585166f40c5968aca1"'
244
+ - '"7073e52b6e171192b66c434b41d0e4cf1069339c"'
301
245
  X-Result-Count:
302
- - '28'
246
+ - '8'
247
+ Access-Control-Allow-Origin:
248
+ - "*"
303
249
  body:
304
250
  encoding: UTF-8
305
- string: "{\n\t\"orders\" : [\n\t\t{\n\t\t\t\"id\" : 10173830777,\n\t\t\t\"instrument\"
251
+ string: "{\n\t\"orders\" : [\n\t\t{\n\t\t\t\"id\" : 10903628497,\n\t\t\t\"instrument\"
306
252
  : \"EUR_USD\",\n\t\t\t\"units\" : 9000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
307
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:32:36.000000Z\",\n\t\t\t\"price\"
308
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
309
- : \"2016-03-14T22:32:35.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
310
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173828266,\n\t\t\t\"instrument\"
311
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
312
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:30:17.000000Z\",\n\t\t\t\"price\"
313
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
314
- : \"2016-03-14T22:30:17.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
315
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173828259,\n\t\t\t\"instrument\"
316
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
317
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:30:17.000000Z\",\n\t\t\t\"price\"
318
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
319
- : \"2016-03-14T22:30:16.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
320
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173828251,\n\t\t\t\"instrument\"
321
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
322
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:30:16.000000Z\",\n\t\t\t\"price\"
323
- : 113.673,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
324
- : \"2016-03-14T22:30:16.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
325
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173828247,\n\t\t\t\"instrument\"
326
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
327
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:30:16.000000Z\",\n\t\t\t\"price\"
328
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
329
- : \"2016-03-14T22:30:16.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
330
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173825152,\n\t\t\t\"instrument\"
331
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
332
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:27:02.000000Z\",\n\t\t\t\"price\"
333
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
334
- : \"2016-03-14T22:27:02.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
335
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173825143,\n\t\t\t\"instrument\"
336
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
337
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:27:01.000000Z\",\n\t\t\t\"price\"
338
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
339
- : \"2016-03-14T22:27:01.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
340
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173825142,\n\t\t\t\"instrument\"
253
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:34:28.000000Z\",\n\t\t\t\"price\"
254
+ : 1.0967,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
255
+ : \"2018-01-08T19:26:42.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
256
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628493,\n\t\t\t\"instrument\"
257
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
258
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"price\"
259
+ : 1.0967,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
260
+ : \"2018-01-08T19:26:42.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
261
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628490,\n\t\t\t\"instrument\"
341
262
  : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
342
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:27:01.000000Z\",\n\t\t\t\"price\"
343
- : 113.673,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
344
- : \"2016-03-14T22:27:01.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
345
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173825132,\n\t\t\t\"instrument\"
346
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
347
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:27:00.000000Z\",\n\t\t\t\"price\"
348
- : 1.01015,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
349
- : \"2016-03-14T22:27:00.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
350
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173824151,\n\t\t\t\"instrument\"
351
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
352
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:26:10.000000Z\",\n\t\t\t\"price\"
353
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
354
- : \"2016-03-14T22:26:10.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
355
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173824146,\n\t\t\t\"instrument\"
356
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
357
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:26:10.000000Z\",\n\t\t\t\"price\"
358
- : 113.673,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
359
- : \"2016-03-14T22:26:09.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
360
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173824137,\n\t\t\t\"instrument\"
361
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
362
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:26:09.000000Z\",\n\t\t\t\"price\"
363
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
364
- : \"2016-03-14T22:26:09.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
365
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173822607,\n\t\t\t\"instrument\"
366
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
367
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:24:49.000000Z\",\n\t\t\t\"price\"
368
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
369
- : \"2016-03-14T22:24:49.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
370
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173822594,\n\t\t\t\"instrument\"
371
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
372
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:24:48.000000Z\",\n\t\t\t\"price\"
373
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
374
- : \"2016-03-14T22:24:48.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
375
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173822590,\n\t\t\t\"instrument\"
376
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
377
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:24:48.000000Z\",\n\t\t\t\"price\"
378
- : 113.665,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
379
- : \"2016-03-14T22:24:48.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
380
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173822575,\n\t\t\t\"instrument\"
381
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
382
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T21:24:48.000000Z\",\n\t\t\t\"price\"
383
- : 1.01018,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
384
- : \"2016-03-14T22:24:47.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
385
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173768379,\n\t\t\t\"instrument\"
386
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
387
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:57:59.000000Z\",\n\t\t\t\"price\"
388
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
389
- : \"2016-03-14T21:57:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
390
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173768352,\n\t\t\t\"instrument\"
391
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
392
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:57:58.000000Z\",\n\t\t\t\"price\"
393
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
394
- : \"2016-03-14T21:57:58.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
395
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173768333,\n\t\t\t\"instrument\"
396
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
397
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:57:58.000000Z\",\n\t\t\t\"price\"
398
- : 113.695,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
399
- : \"2016-03-14T21:57:58.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
400
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173768312,\n\t\t\t\"instrument\"
401
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
402
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:57:58.000000Z\",\n\t\t\t\"price\"
403
- : 1.01012,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
404
- : \"2016-03-14T21:57:57.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
405
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764716,\n\t\t\t\"instrument\"
406
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
407
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:57.000000Z\",\n\t\t\t\"price\"
408
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
409
- : \"2016-03-14T21:56:57.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
410
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764701,\n\t\t\t\"instrument\"
411
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
412
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:57.000000Z\",\n\t\t\t\"price\"
413
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
414
- : \"2016-03-14T21:56:57.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
415
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764680,\n\t\t\t\"instrument\"
416
- : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
417
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:57.000000Z\",\n\t\t\t\"price\"
418
- : 113.695,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
419
- : \"2016-03-14T21:56:56.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
420
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173764657,\n\t\t\t\"instrument\"
421
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
422
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:56:56.000000Z\",\n\t\t\t\"price\"
423
- : 1.01014,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
424
- : \"2016-03-14T21:56:56.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
425
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700820,\n\t\t\t\"instrument\"
426
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
427
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:39:00.000000Z\",\n\t\t\t\"price\"
428
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
429
- : \"2016-03-14T21:39:00.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
430
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700804,\n\t\t\t\"instrument\"
431
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
432
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
433
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
434
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
435
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700793,\n\t\t\t\"instrument\"
263
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"price\"
264
+ : 112.964,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
265
+ : \"2018-01-08T19:26:42.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
266
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628489,\n\t\t\t\"instrument\"
267
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
268
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"price\"
269
+ : 1.0967,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
270
+ : \"2018-01-08T19:26:41.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
271
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622531,\n\t\t\t\"instrument\"
272
+ : \"EUR_USD\",\n\t\t\t\"units\" : 9000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
273
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:03:53.000000Z\",\n\t\t\t\"price\"
274
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
275
+ : \"2018-01-08T19:01:22.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
276
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622526,\n\t\t\t\"instrument\"
277
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
278
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"price\"
279
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
280
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
281
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622521,\n\t\t\t\"instrument\"
436
282
  : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
437
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
438
- : 113.686,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
439
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
440
- : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173700768,\n\t\t\t\"instrument\"
441
- : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
442
- : \"limit\",\n\t\t\t\"time\" : \"2016-03-14T20:38:59.000000Z\",\n\t\t\t\"price\"
443
- : 1.01036,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
444
- : \"2016-03-14T21:38:59.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
283
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"price\"
284
+ : 112.981,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
285
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
286
+ : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622514,\n\t\t\t\"instrument\"
287
+ : \"EUR_USD\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"type\"
288
+ : \"limit\",\n\t\t\t\"time\" : \"2018-01-08T18:01:10.000000Z\",\n\t\t\t\"price\"
289
+ : 1.09742,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"expiry\"
290
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"upperBound\" : 0,\n\t\t\t\"lowerBound\"
445
291
  : 0,\n\t\t\t\"trailingStop\" : 0\n\t\t}\n\t]\n}"
446
292
  http_version:
447
- recorded_at: Mon, 14 Mar 2016 21:32:37 GMT
448
- recorded_with: VCR 2.9.3
293
+ recorded_at: Mon, 08 Jan 2018 18:34:39 GMT
294
+ recorded_with: VCR 4.0.0