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,37 +14,39 @@ 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:09:59 GMT
26
+ - Mon, 08 Jan 2018 22:23:08 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\" : \"USD_JPY\",\n\t\"time\" : \"2016-03-14T23:09:59.000000Z\",\n\t\"price\"
36
- : 113.806,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10173953742,\n\t\t\"units\"
37
+ string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2018-01-08T22:23:08.000000Z\",\n\t\"price\"
38
+ : 113.132,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10903848922,\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 23:10:00 GMT
43
+ recorded_at: Mon, 08 Jan 2018 22:23:19 GMT
42
44
  - request:
43
45
  method: patch
44
- uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/trades/10173953742
46
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/trades/10903848922
45
47
  body:
46
48
  encoding: UTF-8
47
- string: takeProfit=115.806
49
+ string: takeProfit=115.132
48
50
  headers:
49
51
  X-Accept-Datetime-Format:
50
52
  - RFC3339
@@ -53,28 +55,68 @@ http_interactions:
53
55
  Connection:
54
56
  - keep-alive
55
57
  Keep-Alive:
56
- - 30
58
+ - '30'
57
59
  response:
58
60
  status:
59
61
  code: 200
60
62
  message: OK
61
63
  headers:
62
64
  Server:
63
- - openresty/1.7.0.1
65
+ - openresty/1.9.15.1
64
66
  Date:
65
- - Mon, 14 Mar 2016 23:09:59 GMT
67
+ - Mon, 08 Jan 2018 22:23:08 GMT
66
68
  Content-Type:
67
69
  - application/json
68
70
  Content-Length:
69
71
  - '232'
70
72
  Connection:
71
73
  - keep-alive
74
+ Access-Control-Allow-Origin:
75
+ - "*"
72
76
  body:
73
77
  encoding: UTF-8
74
- string: "{\n\t\"id\" : 10173953742,\n\t\"units\" : 10000,\n\t\"side\" : \"buy\",\n\t\"instrument\"
75
- : \"USD_JPY\",\n\t\"time\" : \"2016-03-14T23:09:59.000000Z\",\n\t\"price\"
76
- : 113.806,\n\t\"takeProfit\" : 115.806,\n\t\"stopLoss\" : 0,\n\t\"trailingStop\"
78
+ string: "{\n\t\"id\" : 10903848922,\n\t\"units\" : 10000,\n\t\"side\" : \"buy\",\n\t\"instrument\"
79
+ : \"USD_JPY\",\n\t\"time\" : \"2018-01-08T22:23:08.000000Z\",\n\t\"price\"
80
+ : 113.132,\n\t\"takeProfit\" : 115.132,\n\t\"stopLoss\" : 0,\n\t\"trailingStop\"
77
81
  : 0,\n\t\"trailingAmount\" : 0\n}"
78
82
  http_version:
79
- recorded_at: Mon, 14 Mar 2016 23:10:00 GMT
80
- recorded_with: VCR 2.9.3
83
+ recorded_at: Mon, 08 Jan 2018 22:23:19 GMT
84
+ - request:
85
+ method: patch
86
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/trades
87
+ body:
88
+ encoding: UTF-8
89
+ string: takeProfit=115.132
90
+ headers:
91
+ X-Accept-Datetime-Format:
92
+ - RFC3339
93
+ Authorization:
94
+ - Bearer <OANDA_TESTING_API_TOKEN>
95
+ Connection:
96
+ - keep-alive
97
+ Keep-Alive:
98
+ - '30'
99
+ response:
100
+ status:
101
+ code: 405
102
+ message: METHOD_NOT_ALLOWED
103
+ headers:
104
+ Server:
105
+ - openresty/1.9.15.1
106
+ Date:
107
+ - Mon, 08 Jan 2018 22:23:42 GMT
108
+ Content-Type:
109
+ - application/json
110
+ Content-Length:
111
+ - '132'
112
+ Connection:
113
+ - keep-alive
114
+ Access-Control-Allow-Origin:
115
+ - "*"
116
+ body:
117
+ encoding: UTF-8
118
+ string: "{\n\t\"code\" : 7,\n\t\"message\" : \"Method not allowed\",\n\t\"moreInfo\"
119
+ : \"http:\\/\\/developer.oanda.com\\/docs\\/v1\\/troubleshooting\\/#errors\"\n}"
120
+ http_version:
121
+ recorded_at: Mon, 08 Jan 2018 22:23:53 GMT
122
+ recorded_with: VCR 4.0.0
@@ -14,31 +14,33 @@ 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:09:40 GMT
26
+ - Mon, 08 Jan 2018 22:23:07 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\" : \"USD_JPY\",\n\t\"time\" : \"2016-03-14T23:09:40.000000Z\",\n\t\"price\"
36
- : 113.806,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10173953431,\n\t\t\"units\"
37
+ string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2018-01-08T22:23:07.000000Z\",\n\t\"price\"
38
+ : 113.132,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10903848920,\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 23:09:41 GMT
43
+ recorded_at: Mon, 08 Jan 2018 22:23:18 GMT
42
44
  - request:
43
45
  method: get
44
46
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/trades?instrument=USD_JPY
@@ -53,38 +55,61 @@ http_interactions:
53
55
  Connection:
54
56
  - keep-alive
55
57
  Keep-Alive:
56
- - 30
58
+ - '30'
57
59
  response:
58
60
  status:
59
61
  code: 200
60
62
  message: OK
61
63
  headers:
62
64
  Server:
63
- - openresty/1.7.0.1
65
+ - openresty/1.9.15.1
64
66
  Date:
65
- - Mon, 14 Mar 2016 23:09:40 GMT
67
+ - Mon, 08 Jan 2018 22:23:07 GMT
66
68
  Content-Type:
67
69
  - application/json
68
70
  Content-Length:
69
- - '523'
71
+ - '2041'
70
72
  Connection:
71
73
  - keep-alive
72
74
  Access-Control-Expose-Headers:
73
75
  - X-Result-Count
74
76
  Etag:
75
- - '"0462b8987f342c3a0b23a9ec3c87fc150320f401"'
77
+ - '"e86b9d324dda2aaafa0cb4f3d0bb046dc8e7489d"'
76
78
  X-Result-Count:
77
- - '2'
79
+ - '8'
80
+ Access-Control-Allow-Origin:
81
+ - "*"
78
82
  body:
79
83
  encoding: UTF-8
80
- string: "{\n\t\"trades\" : [\n\t\t{\n\t\t\t\"id\" : 10173953431,\n\t\t\t\"units\"
84
+ string: "{\n\t\"trades\" : [\n\t\t{\n\t\t\t\"id\" : 10903848920,\n\t\t\t\"units\"
81
85
  : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
82
- : \"2016-03-14T23:09:40.000000Z\",\n\t\t\t\"price\" : 113.806,\n\t\t\t\"takeProfit\"
86
+ : \"2018-01-08T22:23:07.000000Z\",\n\t\t\t\"price\" : 113.132,\n\t\t\t\"takeProfit\"
83
87
  : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
84
- : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173953425,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
85
- : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2016-03-14T23:09:40.000000Z\",\n\t\t\t\"price\"
86
- : 113.806,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
88
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903848918,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
89
+ : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2018-01-08T22:23:07.000000Z\",\n\t\t\t\"price\"
90
+ : 113.132,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
91
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628544,\n\t\t\t\"units\"
92
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
93
+ : \"2018-01-08T18:26:47.000000Z\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"takeProfit\"
94
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
95
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628542,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
96
+ : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"price\"
97
+ : 113.076,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
98
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628540,\n\t\t\t\"units\"
99
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
100
+ : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"takeProfit\"
101
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
102
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628539,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
103
+ : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"price\"
104
+ : 113.076,\n\t\t\t\"takeProfit\" : 115.076,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
105
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628538,\n\t\t\t\"units\"
106
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
107
+ : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"takeProfit\"
108
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
109
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628535,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
110
+ : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"price\"
111
+ : 113.076,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
87
112
  : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t}\n\t]\n}"
88
113
  http_version:
89
- recorded_at: Mon, 14 Mar 2016 23:09:41 GMT
90
- recorded_with: VCR 2.9.3
114
+ recorded_at: Mon, 08 Jan 2018 22:23:18 GMT
115
+ recorded_with: VCR 4.0.0
@@ -14,31 +14,33 @@ 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:09:40 GMT
26
+ - Mon, 08 Jan 2018 22:23:07 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\" : \"USD_JPY\",\n\t\"time\" : \"2016-03-14T23:09:40.000000Z\",\n\t\"price\"
36
- : 113.806,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10173953425,\n\t\t\"units\"
37
+ string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2018-01-08T22:23:07.000000Z\",\n\t\"price\"
38
+ : 113.132,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10903848918,\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 23:09:41 GMT
43
+ recorded_at: Mon, 08 Jan 2018 22:23:18 GMT
42
44
  - request:
43
45
  method: get
44
46
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/trades
@@ -53,33 +55,70 @@ http_interactions:
53
55
  Connection:
54
56
  - keep-alive
55
57
  Keep-Alive:
56
- - 30
58
+ - '30'
57
59
  response:
58
60
  status:
59
61
  code: 200
60
62
  message: OK
61
63
  headers:
62
64
  Server:
63
- - openresty/1.7.0.1
65
+ - openresty/1.9.15.1
64
66
  Date:
65
- - Mon, 14 Mar 2016 23:09:40 GMT
67
+ - Mon, 08 Jan 2018 22:23:07 GMT
66
68
  Content-Type:
67
69
  - application/json
68
70
  Content-Length:
69
- - '6314'
71
+ - '8839'
70
72
  Connection:
71
73
  - keep-alive
72
74
  Access-Control-Expose-Headers:
73
75
  - X-Result-Count
74
76
  Etag:
75
- - '"3e1222392e27021967c3a04ee0fb14113135e0fa"'
77
+ - '"2fc0ffb5ddd29aa24f86c6f6f5e42aa3df05ac1b"'
76
78
  X-Result-Count:
77
- - '25'
79
+ - '35'
80
+ Access-Control-Allow-Origin:
81
+ - "*"
78
82
  body:
79
83
  encoding: UTF-8
80
- string: "{\n\t\"trades\" : [\n\t\t{\n\t\t\t\"id\" : 10173953425,\n\t\t\t\"units\"
84
+ string: "{\n\t\"trades\" : [\n\t\t{\n\t\t\t\"id\" : 10903848918,\n\t\t\t\"units\"
81
85
  : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
82
- : \"2016-03-14T23:09:40.000000Z\",\n\t\t\t\"price\" : 113.806,\n\t\t\t\"takeProfit\"
86
+ : \"2018-01-08T22:23:07.000000Z\",\n\t\t\t\"price\" : 113.132,\n\t\t\t\"takeProfit\"
87
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
88
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628544,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
89
+ : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2018-01-08T18:26:47.000000Z\",\n\t\t\t\"price\"
90
+ : 113.076,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
91
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628542,\n\t\t\t\"units\"
92
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
93
+ : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"takeProfit\"
94
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
95
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628540,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
96
+ : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"price\"
97
+ : 113.076,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
98
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628539,\n\t\t\t\"units\"
99
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
100
+ : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"takeProfit\"
101
+ : 115.076,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
102
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628538,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
103
+ : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"price\"
104
+ : 113.076,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
105
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628535,\n\t\t\t\"units\"
106
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
107
+ : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"takeProfit\"
108
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
109
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628488,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
110
+ : \"buy\",\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"time\" : \"2018-01-08T18:26:30.000000Z\",\n\t\t\t\"price\"
111
+ : 1.19683,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
112
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622510,\n\t\t\t\"units\"
113
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"time\"
114
+ : \"2018-01-08T18:01:10.000000Z\",\n\t\t\t\"price\" : 1.19754,\n\t\t\t\"takeProfit\"
115
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
116
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903544469,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
117
+ : \"buy\",\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"time\" : \"2018-01-08T15:08:50.000000Z\",\n\t\t\t\"price\"
118
+ : 1.1963,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
119
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903535167,\n\t\t\t\"units\"
120
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"time\"
121
+ : \"2018-01-08T14:56:35.000000Z\",\n\t\t\t\"price\" : 1.19708,\n\t\t\t\"takeProfit\"
83
122
  : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
84
123
  : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173828244,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
85
124
  : \"buy\",\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"time\" : \"2016-03-14T21:30:16.000000Z\",\n\t\t\t\"price\"
@@ -167,5 +206,5 @@ http_interactions:
167
206
  : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
168
207
  : 0\n\t\t}\n\t]\n}"
169
208
  http_version:
170
- recorded_at: Mon, 14 Mar 2016 23:09:41 GMT
171
- recorded_with: VCR 2.9.3
209
+ recorded_at: Mon, 08 Jan 2018 22:23:18 GMT
210
+ recorded_with: VCR 4.0.0
@@ -14,31 +14,33 @@ 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:11:41 GMT
26
+ - Mon, 08 Jan 2018 18:26:47 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\" : \"USD_JPY\",\n\t\"time\" : \"2016-03-14T23:11:41.000000Z\",\n\t\"price\"
36
- : 113.814,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10173955919,\n\t\t\"units\"
37
+ string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2018-01-08T18:26:47.000000Z\",\n\t\"price\"
38
+ : 113.076,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10903628544,\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 23:11:42 GMT
43
+ recorded_at: Mon, 08 Jan 2018 18:26:57 GMT
42
44
  - request:
43
45
  method: get
44
46
  uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/transactions?instrument=USD_JPY
@@ -53,160 +55,278 @@ http_interactions:
53
55
  Connection:
54
56
  - keep-alive
55
57
  Keep-Alive:
56
- - 30
58
+ - '30'
57
59
  response:
58
60
  status:
59
61
  code: 200
60
62
  message: OK
61
63
  headers:
62
64
  Server:
63
- - openresty/1.7.0.1
65
+ - openresty/1.9.15.1
64
66
  Date:
65
- - Mon, 14 Mar 2016 23:11:41 GMT
67
+ - Mon, 08 Jan 2018 18:26:47 GMT
66
68
  Content-Type:
67
69
  - application/json
68
70
  Content-Length:
69
- - '8472'
71
+ - '16548'
70
72
  Connection:
71
73
  - keep-alive
72
74
  Access-Control-Expose-Headers:
73
75
  - X-Result-Count
74
76
  Etag:
75
- - '"8194f3e82c922070bf7d5fee6d01fa7b0e62193c"'
77
+ - '"2d0d65e39c06d905dab89927d39cd2da998aeed6"'
76
78
  X-Result-Count:
77
- - '28'
79
+ - '50'
80
+ Access-Control-Allow-Origin:
81
+ - "*"
78
82
  body:
79
83
  encoding: UTF-8
80
- string: "{\n\t\"transactions\" : [\n\t\t{\n\t\t\t\"id\" : 10173955919,\n\t\t\t\"accountId\"
81
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:11:41.000000Z\",\n\t\t\t\"type\"
82
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
83
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.814,\n\t\t\t\"pl\"
84
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100449.5599,\n\t\t\t\"tradeOpened\"
85
- : {\n\t\t\t\t\"id\" : 10173955919,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
86
- : 10173955906,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:11:40.000000Z\",\n\t\t\t\"type\"
87
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
88
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.814,\n\t\t\t\"pl\"
89
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100449.5599,\n\t\t\t\"tradeOpened\"
90
- : {\n\t\t\t\t\"id\" : 10173955906,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
91
- : 10173954099,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:10:16.000000Z\",\n\t\t\t\"type\"
92
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
93
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.789,\n\t\t\t\"pl\"
94
- : -1.494,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100449.5599,\n\t\t\t\"tradeId\"
95
- : 10173953425\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173954090,\n\t\t\t\"accountId\"
96
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:10:15.000000Z\",\n\t\t\t\"type\"
97
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
98
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.806,\n\t\t\t\"pl\"
99
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100451.0539,\n\t\t\t\"tradeOpened\"
100
- : {\n\t\t\t\t\"id\" : 10173954090,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
101
- : 10173953748,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:09:59.000000Z\",\n\t\t\t\"type\"
84
+ string: "{\n\t\"transactions\" : [\n\t\t{\n\t\t\t\"id\" : 10903628544,\n\t\t\t\"accountId\"
85
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:47.000000Z\",\n\t\t\t\"type\"
86
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
87
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
88
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95840.6276,\n\t\t\t\"tradeOpened\"
89
+ : {\n\t\t\t\t\"id\" : 10903628544,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
90
+ : 10903628542,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"type\"
91
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
92
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
93
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95840.6276,\n\t\t\t\"tradeOpened\"
94
+ : {\n\t\t\t\t\"id\" : 10903628542,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
95
+ : 10903628541,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"type\"
96
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
97
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
98
+ : -1.0613,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95840.6276,\n\t\t\t\"tradeId\"
99
+ : 10903628529\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628540,\n\t\t\t\"accountId\"
100
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"type\"
101
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
102
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
103
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\"
104
+ : {\n\t\t\t\t\"id\" : 10903628540,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
105
+ : 10903628539,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"type\"
106
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
107
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
108
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\"
109
+ : {\n\t\t\t\t\"id\" : 10903628539,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
110
+ : 10903628538,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"type\"
111
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
112
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
113
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\"
114
+ : {\n\t\t\t\t\"id\" : 10903628538,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
115
+ : 10903628535,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"type\"
116
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
117
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
118
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\"
119
+ : {\n\t\t\t\t\"id\" : 10903628535,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
120
+ : 10903628529,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:44.000000Z\",\n\t\t\t\"type\"
121
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
122
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
123
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\"
124
+ : {\n\t\t\t\t\"id\" : 10903628529,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
125
+ : 10903628514,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
126
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
127
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
128
+ : -1.0613,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeId\"
129
+ : 10903628505\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628513,\n\t\t\t\"accountId\"
130
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
131
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
132
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
133
+ : -1.0613,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95842.7502,\n\t\t\t\"tradeId\"
134
+ : 10903628503\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628512,\n\t\t\t\"accountId\"
135
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
136
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
137
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
138
+ : -1.0613,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95843.8115,\n\t\t\t\"tradeId\"
139
+ : 10903628502\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628511,\n\t\t\t\"accountId\"
140
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
141
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
142
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
143
+ : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95844.8728,\n\t\t\t\"tradeId\"
144
+ : 10903622626\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628510,\n\t\t\t\"accountId\"
145
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
146
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
147
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
148
+ : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95847.6993,\n\t\t\t\"tradeId\"
149
+ : 10903622625\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628509,\n\t\t\t\"accountId\"
150
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
151
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
152
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
153
+ : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95850.5258,\n\t\t\t\"tradeId\"
154
+ : 10903622620\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628508,\n\t\t\t\"accountId\"
155
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
156
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
157
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
158
+ : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95853.3523,\n\t\t\t\"tradeId\"
159
+ : 10903622618\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628507,\n\t\t\t\"accountId\"
160
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
161
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
162
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
163
+ : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95856.1788,\n\t\t\t\"tradeId\"
164
+ : 10903622611\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628506,\n\t\t\t\"accountId\"
165
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
166
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
167
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\"
168
+ : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95859.0053,\n\t\t\t\"tradeId\"
169
+ : 10903622607\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628505,\n\t\t\t\"accountId\"
170
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
171
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
172
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
173
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\"
174
+ : {\n\t\t\t\t\"id\" : 10903628505,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
175
+ : 10903628503,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\"
176
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
177
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
178
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\"
179
+ : {\n\t\t\t\t\"id\" : 10903628503,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
180
+ : 10903628502,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:32.000000Z\",\n\t\t\t\"type\"
181
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
182
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\"
183
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\"
184
+ : {\n\t\t\t\t\"id\" : 10903628502,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
185
+ : 10903628490,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"type\"
186
+ : \"LIMIT_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
187
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.964,\n\t\t\t\"expiry\"
188
+ : \"2018-01-08T19:26:42.000000Z\",\n\t\t\t\"reason\" : \"CLIENT_REQUEST\"\n\t\t},\n\t\t{\n\t\t\t\"id\"
189
+ : 10903623195,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:04:02.000000Z\",\n\t\t\t\"type\"
190
+ : \"TRADE_UPDATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
191
+ : 10000,\n\t\t\t\"takeProfitPrice\" : 115.096,\n\t\t\t\"tradeId\" : 10903622618\n\t\t},\n\t\t{\n\t\t\t\"id\"
192
+ : 10903622626,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:24.000000Z\",\n\t\t\t\"type\"
193
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
194
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\"
195
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\"
196
+ : {\n\t\t\t\t\"id\" : 10903622626,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
197
+ : 10903622625,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:24.000000Z\",\n\t\t\t\"type\"
198
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
199
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\"
200
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\"
201
+ : {\n\t\t\t\t\"id\" : 10903622625,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
202
+ : 10903622624,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:24.000000Z\",\n\t\t\t\"type\"
203
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
204
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.083,\n\t\t\t\"pl\"
205
+ : -1.1496,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeId\"
206
+ : 10903622606\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622620,\n\t\t\t\"accountId\"
207
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:24.000000Z\",\n\t\t\t\"type\"
208
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
209
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\"
210
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\"
211
+ : {\n\t\t\t\t\"id\" : 10903622620,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
212
+ : 10903622618,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:23.000000Z\",\n\t\t\t\"type\"
213
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
214
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\"
215
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\"
216
+ : {\n\t\t\t\t\"id\" : 10903622618,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
217
+ : 10903622611,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:23.000000Z\",\n\t\t\t\"type\"
218
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
219
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\"
220
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\"
221
+ : {\n\t\t\t\t\"id\" : 10903622611,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
222
+ : 10903622607,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:23.000000Z\",\n\t\t\t\"type\"
223
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
224
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\"
225
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\"
226
+ : {\n\t\t\t\t\"id\" : 10903622607,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
227
+ : 10903622606,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:22.000000Z\",\n\t\t\t\"type\"
228
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
229
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\"
230
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\"
231
+ : {\n\t\t\t\t\"id\" : 10903622606,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
232
+ : 10903622550,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
233
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
234
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
235
+ : -1.0612,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeId\"
236
+ : 10903622540\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622549,\n\t\t\t\"accountId\"
237
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
238
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
239
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
240
+ : -1.0612,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95864.0426,\n\t\t\t\"tradeId\"
241
+ : 10903622539\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622548,\n\t\t\t\"accountId\"
242
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
243
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
244
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
245
+ : -1.0612,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95865.1038,\n\t\t\t\"tradeId\"
246
+ : 10903622538\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622547,\n\t\t\t\"accountId\"
247
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
248
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
249
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
250
+ : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95866.165,\n\t\t\t\"tradeId\"
251
+ : 10903544650\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622546,\n\t\t\t\"accountId\"
252
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
253
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
254
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
255
+ : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95857.0313,\n\t\t\t\"tradeId\"
256
+ : 10903544633\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622545,\n\t\t\t\"accountId\"
257
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
258
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
259
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
260
+ : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95847.8976,\n\t\t\t\"tradeId\"
261
+ : 10903544622\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622544,\n\t\t\t\"accountId\"
262
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
263
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
264
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
265
+ : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95838.7639,\n\t\t\t\"tradeId\"
266
+ : 10903544620\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622543,\n\t\t\t\"accountId\"
267
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
268
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
269
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
270
+ : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95829.6302,\n\t\t\t\"tradeId\"
271
+ : 10903544619\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622542,\n\t\t\t\"accountId\"
272
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
273
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
274
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\"
275
+ : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95820.4965,\n\t\t\t\"tradeId\"
276
+ : 10903544617\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622540,\n\t\t\t\"accountId\"
277
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
278
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
279
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.093,\n\t\t\t\"pl\"
280
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\"
281
+ : {\n\t\t\t\t\"id\" : 10903622540,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
282
+ : 10903622539,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
283
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
284
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.093,\n\t\t\t\"pl\"
285
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\"
286
+ : {\n\t\t\t\t\"id\" : 10903622539,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
287
+ : 10903622538,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\"
288
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
289
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.093,\n\t\t\t\"pl\"
290
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\"
291
+ : {\n\t\t\t\t\"id\" : 10903622538,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
292
+ : 10903622521,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"type\"
293
+ : \"LIMIT_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
294
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.981,\n\t\t\t\"expiry\"
295
+ : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"reason\" : \"CLIENT_REQUEST\"\n\t\t},\n\t\t{\n\t\t\t\"id\"
296
+ : 10903578701,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T16:09:09.000000Z\",\n\t\t\t\"type\"
297
+ : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10903544485,\n\t\t\t\"reason\" :
298
+ \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903568544,\n\t\t\t\"accountId\"
299
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:56:52.000000Z\",\n\t\t\t\"type\"
300
+ : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10903535170,\n\t\t\t\"reason\" :
301
+ \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903544650,\n\t\t\t\"accountId\"
302
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\"
303
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
304
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.978,\n\t\t\t\"pl\"
305
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\"
306
+ : {\n\t\t\t\t\"id\" : 10903544650,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
307
+ : 10903544633,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\"
308
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
309
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.978,\n\t\t\t\"pl\"
310
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\"
311
+ : {\n\t\t\t\t\"id\" : 10903544633,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
312
+ : 10903544629,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\"
313
+ : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
314
+ 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 112.963,\n\t\t\t\"pl\"
315
+ : -1.3279,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeId\"
316
+ : 10903544615\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903544622,\n\t\t\t\"accountId\"
317
+ : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\"
318
+ : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
319
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.978,\n\t\t\t\"pl\"
320
+ : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95812.6907,\n\t\t\t\"tradeOpened\"
321
+ : {\n\t\t\t\t\"id\" : 10903544622,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
322
+ : 10903544621,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\"
102
323
  : \"TRADE_UPDATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
103
- : 10000,\n\t\t\t\"takeProfitPrice\" : 115.806,\n\t\t\t\"tradeId\" : 10173953742\n\t\t},\n\t\t{\n\t\t\t\"id\"
104
- : 10173953742,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:09:59.000000Z\",\n\t\t\t\"type\"
105
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
106
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.806,\n\t\t\t\"pl\"
107
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100451.0539,\n\t\t\t\"tradeOpened\"
108
- : {\n\t\t\t\t\"id\" : 10173953742,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
109
- : 10173953735,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:09:58.000000Z\",\n\t\t\t\"type\"
110
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
111
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.806,\n\t\t\t\"pl\"
112
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100451.0539,\n\t\t\t\"tradeOpened\"
113
- : {\n\t\t\t\t\"id\" : 10173953735,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
114
- : 10173953431,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:09:40.000000Z\",\n\t\t\t\"type\"
115
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
116
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.806,\n\t\t\t\"pl\"
117
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100451.0539,\n\t\t\t\"tradeOpened\"
118
- : {\n\t\t\t\t\"id\" : 10173953431,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
119
- : 10173953425,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:09:40.000000Z\",\n\t\t\t\"type\"
120
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
121
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.806,\n\t\t\t\"pl\"
122
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100451.0539,\n\t\t\t\"tradeOpened\"
123
- : {\n\t\t\t\t\"id\" : 10173953425,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
124
- : 10173950343,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
125
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
126
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
127
- : -1.5819,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100451.0539,\n\t\t\t\"tradeId\"
128
- : 10173950329\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950342,\n\t\t\t\"accountId\"
129
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
130
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
131
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
132
- : -1.5819,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100452.6358,\n\t\t\t\"tradeId\"
133
- : 10173950020\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950341,\n\t\t\t\"accountId\"
134
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
135
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
136
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
137
- : -1.5819,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100454.2177,\n\t\t\t\"tradeId\"
138
- : 10173950011\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950340,\n\t\t\t\"accountId\"
139
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
140
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
141
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
142
- : 16.519,\n\t\t\t\"interest\" : -0.0089,\n\t\t\t\"accountBalance\" : 100455.7996,\n\t\t\t\"tradeId\"
143
- : 10173145109\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950339,\n\t\t\t\"accountId\"
144
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
145
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
146
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
147
- : 17.1341,\n\t\t\t\"interest\" : -0.0089,\n\t\t\t\"accountBalance\" : 100439.2895,\n\t\t\t\"tradeId\"
148
- : 10173144902\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950338,\n\t\t\t\"accountId\"
149
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
150
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
151
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
152
- : 17.1341,\n\t\t\t\"interest\" : -0.0089,\n\t\t\t\"accountBalance\" : 100422.1643,\n\t\t\t\"tradeId\"
153
- : 10173144640\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950337,\n\t\t\t\"accountId\"
154
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
155
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
156
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
157
- : 16.9584,\n\t\t\t\"interest\" : -0.0089,\n\t\t\t\"accountBalance\" : 100405.0391,\n\t\t\t\"tradeId\"
158
- : 10173144402\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950336,\n\t\t\t\"accountId\"
159
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
160
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
161
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
162
- : 17.4856,\n\t\t\t\"interest\" : -0.0089,\n\t\t\t\"accountBalance\" : 100388.0896,\n\t\t\t\"tradeId\"
163
- : 10173144214\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950335,\n\t\t\t\"accountId\"
164
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:13.000000Z\",\n\t\t\t\"type\"
165
- : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" :
166
- 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.79,\n\t\t\t\"pl\"
167
- : 17.4856,\n\t\t\t\"interest\" : -0.0089,\n\t\t\t\"accountBalance\" : 100370.6129,\n\t\t\t\"tradeId\"
168
- : 10173144073\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173950329,\n\t\t\t\"accountId\"
169
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:07:12.000000Z\",\n\t\t\t\"type\"
170
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
171
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.808,\n\t\t\t\"pl\"
172
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100353.1362,\n\t\t\t\"tradeOpened\"
173
- : {\n\t\t\t\t\"id\" : 10173950329,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
174
- : 10173950020,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:06:51.000000Z\",\n\t\t\t\"type\"
175
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
176
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.808,\n\t\t\t\"pl\"
177
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100353.1362,\n\t\t\t\"tradeOpened\"
178
- : {\n\t\t\t\t\"id\" : 10173950020,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
179
- : 10173950011,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T23:06:51.000000Z\",\n\t\t\t\"type\"
180
- : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\"
181
- : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.808,\n\t\t\t\"pl\"
182
- : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 100353.1362,\n\t\t\t\"tradeOpened\"
183
- : {\n\t\t\t\t\"id\" : 10173950011,\n\t\t\t\t\"units\" : 10000\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"id\"
184
- : 10173904417,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2016-03-14T22:30:18.000000Z\",\n\t\t\t\"type\"
185
- : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10173828251,\n\t\t\t\"reason\" :
186
- \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173900676,\n\t\t\t\"accountId\"
187
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T22:27:03.000000Z\",\n\t\t\t\"type\"
188
- : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10173825142,\n\t\t\t\"reason\" :
189
- \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173899344,\n\t\t\t\"accountId\"
190
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T22:26:09.000000Z\",\n\t\t\t\"type\"
191
- : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10173824146,\n\t\t\t\"reason\" :
192
- \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173897320,\n\t\t\t\"accountId\"
193
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T22:24:48.000000Z\",\n\t\t\t\"type\"
194
- : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10173822590,\n\t\t\t\"reason\" :
195
- \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173859338,\n\t\t\t\"accountId\"
196
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T21:58:13.000000Z\",\n\t\t\t\"type\"
197
- : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10173768333,\n\t\t\t\"reason\" :
198
- \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173858096,\n\t\t\t\"accountId\"
199
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T21:57:04.000000Z\",\n\t\t\t\"type\"
200
- : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10173764680,\n\t\t\t\"reason\" :
201
- \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10173836997,\n\t\t\t\"accountId\"
202
- : 1871900,\n\t\t\t\"time\" : \"2016-03-14T21:39:01.000000Z\",\n\t\t\t\"type\"
203
- : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10173700793,\n\t\t\t\"reason\" :
204
- \"TIME_IN_FORCE_EXPIRED\"\n\t\t}\n\t]\n}"
324
+ : 10000,\n\t\t\t\"takeProfitPrice\" : 114.978,\n\t\t\t\"tradeId\" : 10903544620\n\t\t}\n\t]\n}"
205
325
  http_version:
206
- recorded_at: Mon, 14 Mar 2016 23:11:42 GMT
326
+ recorded_at: Mon, 08 Jan 2018 18:26:58 GMT
207
327
  - request:
208
328
  method: get
209
- uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/transactions/10173955919
329
+ uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/transactions/10903628544
210
330
  body:
211
331
  encoding: US-ASCII
212
332
  string: ''
@@ -218,31 +338,33 @@ http_interactions:
218
338
  Connection:
219
339
  - keep-alive
220
340
  Keep-Alive:
221
- - 30
341
+ - '30'
222
342
  response:
223
343
  status:
224
344
  code: 200
225
345
  message: OK
226
346
  headers:
227
347
  Server:
228
- - openresty/1.7.0.1
348
+ - openresty/1.9.15.1
229
349
  Date:
230
- - Mon, 14 Mar 2016 23:11:41 GMT
350
+ - Mon, 08 Jan 2018 18:26:47 GMT
231
351
  Content-Type:
232
352
  - application/json
233
353
  Content-Length:
234
- - '327'
354
+ - '326'
235
355
  Connection:
236
356
  - keep-alive
237
357
  Etag:
238
- - '"ec7fbac2608e7358415e20e1b3ad5a10eb7e606a"'
358
+ - '"f8723c81c6249fa8bfd64d8414b5a89e72cfb68d"'
359
+ Access-Control-Allow-Origin:
360
+ - "*"
239
361
  body:
240
362
  encoding: UTF-8
241
- string: "{\n\t\"id\" : 10173955919,\n\t\"accountId\" : 1871900,\n\t\"time\"
242
- : \"2016-03-14T23:11:41.000000Z\",\n\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\"instrument\"
363
+ string: "{\n\t\"id\" : 10903628544,\n\t\"accountId\" : 1871900,\n\t\"time\"
364
+ : \"2018-01-08T18:26:47.000000Z\",\n\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\"instrument\"
243
365
  : \"USD_JPY\",\n\t\"units\" : 10000,\n\t\"side\" : \"buy\",\n\t\"price\" :
244
- 113.814,\n\t\"pl\" : 0,\n\t\"interest\" : 0,\n\t\"accountBalance\" : 100449.5599,\n\t\"tradeOpened\"
245
- : {\n\t\t\"id\" : 10173955919,\n\t\t\"units\" : 10000\n\t}\n}"
366
+ 113.076,\n\t\"pl\" : 0,\n\t\"interest\" : 0,\n\t\"accountBalance\" : 95840.6276,\n\t\"tradeOpened\"
367
+ : {\n\t\t\"id\" : 10903628544,\n\t\t\"units\" : 10000\n\t}\n}"
246
368
  http_version:
247
- recorded_at: Mon, 14 Mar 2016 23:11:42 GMT
248
- recorded_with: VCR 2.9.3
369
+ recorded_at: Mon, 08 Jan 2018 18:26:58 GMT
370
+ recorded_with: VCR 4.0.0