oanda_api 0.8.1 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/.gitignore +38 -0
  2. data/.rspec_non_jruby +2 -0
  3. data/.yardopts +6 -0
  4. data/Gemfile +13 -0
  5. data/Guardfile +7 -0
  6. data/LICENSE +22 -0
  7. data/README.md +218 -0
  8. data/Rakefile +23 -0
  9. data/lib/oanda_api.rb +25 -0
  10. data/lib/oanda_api/client/client.rb +175 -0
  11. data/lib/oanda_api/client/namespace_proxy.rb +112 -0
  12. data/lib/oanda_api/client/resource_descriptor.rb +52 -0
  13. data/lib/oanda_api/client/token_client.rb +69 -0
  14. data/lib/oanda_api/client/username_client.rb +53 -0
  15. data/lib/oanda_api/configuration.rb +167 -0
  16. data/lib/oanda_api/errors.rb +4 -0
  17. data/lib/oanda_api/resource/account.rb +37 -0
  18. data/lib/oanda_api/resource/candle.rb +29 -0
  19. data/lib/oanda_api/resource/instrument.rb +21 -0
  20. data/lib/oanda_api/resource/order.rb +74 -0
  21. data/lib/oanda_api/resource/position.rb +18 -0
  22. data/lib/oanda_api/resource/price.rb +16 -0
  23. data/lib/oanda_api/resource/trade.rb +23 -0
  24. data/lib/oanda_api/resource/transaction.rb +67 -0
  25. data/lib/oanda_api/resource_base.rb +35 -0
  26. data/lib/oanda_api/resource_collection.rb +77 -0
  27. data/lib/oanda_api/utils/utils.rb +101 -0
  28. data/lib/oanda_api/version.rb +3 -0
  29. data/oanda_api.gemspec +32 -0
  30. data/spec/fixtures/vcr_cassettes/account_id_order_id_close.yml +264 -0
  31. data/spec/fixtures/vcr_cassettes/account_id_order_id_get.yml +114 -0
  32. data/spec/fixtures/vcr_cassettes/account_id_order_options_create.yml +74 -0
  33. data/spec/fixtures/vcr_cassettes/account_id_order_options_update.yml +112 -0
  34. data/spec/fixtures/vcr_cassettes/account_id_orders_get.yml +118 -0
  35. data/spec/fixtures/vcr_cassettes/account_id_orders_options_get.yml +123 -0
  36. data/spec/fixtures/vcr_cassettes/account_id_positions_get.yml +112 -0
  37. data/spec/fixtures/vcr_cassettes/account_id_positions_instrument_close.yml +214 -0
  38. data/spec/fixtures/vcr_cassettes/account_id_positions_instrument_get.yml +110 -0
  39. data/spec/fixtures/vcr_cassettes/account_id_trade_id_close.yml +252 -0
  40. data/spec/fixtures/vcr_cassettes/account_id_trade_id_get.yml +112 -0
  41. data/spec/fixtures/vcr_cassettes/account_id_trade_options_modify.yml +110 -0
  42. data/spec/fixtures/vcr_cassettes/account_id_trades_filter_get.yml +118 -0
  43. data/spec/fixtures/vcr_cassettes/account_id_trades_get.yml +118 -0
  44. data/spec/fixtures/vcr_cassettes/account_id_transaction_id_get.yml +283 -0
  45. data/spec/fixtures/vcr_cassettes/account_id_transactions_options_get.yml +205 -0
  46. data/spec/fixtures/vcr_cassettes/accounts_create.yml +75 -0
  47. data/spec/fixtures/vcr_cassettes/accounts_get.yml +111 -0
  48. data/spec/fixtures/vcr_cassettes/accounts_id_get.yml +187 -0
  49. data/spec/fixtures/vcr_cassettes/candles_options_get.yml +79 -0
  50. data/spec/fixtures/vcr_cassettes/instruments_get.yml +501 -0
  51. data/spec/fixtures/vcr_cassettes/instruments_options_get.yml +81 -0
  52. data/spec/fixtures/vcr_cassettes/prices_options_get.yml +81 -0
  53. data/spec/fixtures/vcr_cassettes/sandbox_client.yml +116 -0
  54. data/spec/fixtures/vcr_cassettes/sandbox_client_account.yml +111 -0
  55. data/spec/fixtures/vcr_cassettes/sandbox_instrument_EUR_USD.yml +77 -0
  56. data/spec/oanda_api/client/client_spec.rb +107 -0
  57. data/spec/oanda_api/client/namespace_proxy_spec.rb +16 -0
  58. data/spec/oanda_api/client/resource_descriptor_spec.rb +39 -0
  59. data/spec/oanda_api/client/token_client_spec.rb +60 -0
  60. data/spec/oanda_api/client/username_client_spec.rb +31 -0
  61. data/spec/oanda_api/configuration_spec.rb +138 -0
  62. data/spec/oanda_api/examples/accounts_spec.rb +28 -0
  63. data/spec/oanda_api/examples/orders_spec.rb +68 -0
  64. data/spec/oanda_api/examples/positions_spec.rb +38 -0
  65. data/spec/oanda_api/examples/rates_spec.rb +46 -0
  66. data/spec/oanda_api/examples/trades_spec.rb +58 -0
  67. data/spec/oanda_api/examples/transactions_spec.rb +24 -0
  68. data/spec/oanda_api/resource_collection_spec.rb +109 -0
  69. data/spec/oanda_api/utils/utils_spec.rb +109 -0
  70. data/spec/spec_helper.rb +10 -0
  71. data/spec/support/client_helper.rb +60 -0
  72. data/spec/support/vcr.rb +7 -0
  73. metadata +124 -9
@@ -0,0 +1,112 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-sandbox.oanda.com/v1/accounts/5342358/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: instrument=USD_JPY&side=buy&type=market&units=10000&username=dwaymotim
9
+ headers:
10
+ X-Accept-Datetime-Format:
11
+ - RFC3339
12
+ Connection:
13
+ - keep-alive
14
+ Keep-Alive:
15
+ - 30
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - openresty/1.7.0.1
23
+ Date:
24
+ - Tue, 20 Jan 2015 17:22:32 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '273'
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2015-01-20T17:22:32.000000Z\",\n\t\"price\"
34
+ : 114.893,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 175503923,\n\t\t\"units\"
35
+ : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\"
36
+ : 0,\n\t\t\"trailingStop\" : 0\n\t},\n\t\"tradesClosed\" : [],\n\t\"tradeReduced\"
37
+ : {}\n}"
38
+ http_version:
39
+ recorded_at: Tue, 20 Jan 2015 17:22:35 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://api-sandbox.oanda.com/v1/accounts/5342358/trades/175503923?username=dwaymotim
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ X-Accept-Datetime-Format:
48
+ - RFC3339
49
+ Connection:
50
+ - keep-alive
51
+ Keep-Alive:
52
+ - 30
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Server:
59
+ - openresty/1.7.0.1
60
+ Date:
61
+ - Tue, 20 Jan 2015 17:22:32 GMT
62
+ Content-Type:
63
+ - application/json
64
+ Content-Length:
65
+ - '224'
66
+ Connection:
67
+ - keep-alive
68
+ Etag:
69
+ - '"0a117132be932d993446ae8c8925e3cf74629c18"'
70
+ body:
71
+ encoding: UTF-8
72
+ string: "{\n\t\"id\" : 175503923,\n\t\"units\" : 10000,\n\t\"side\" : \"buy\",\n\t\"instrument\"
73
+ : \"USD_JPY\",\n\t\"time\" : \"2015-01-20T17:22:32.000000Z\",\n\t\"price\"
74
+ : 114.893,\n\t\"takeProfit\" : 0,\n\t\"stopLoss\" : 0,\n\t\"trailingStop\"
75
+ : 0,\n\t\"trailingAmount\" : 0\n}"
76
+ http_version:
77
+ recorded_at: Tue, 20 Jan 2015 17:22:35 GMT
78
+ - request:
79
+ method: post
80
+ uri: http://api-sandbox.oanda.com/v1//accounts/5342358/orders
81
+ body:
82
+ encoding: UTF-8
83
+ string: username=dwaymotim
84
+ headers:
85
+ X-Accept-Datetime-Format:
86
+ - RFC3339
87
+ Connection:
88
+ - keep-alive
89
+ Keep-Alive:
90
+ - 30
91
+ response:
92
+ status:
93
+ code: 400
94
+ message: BAD_REQUEST
95
+ headers:
96
+ Server:
97
+ - openresty/1.7.0.1
98
+ Date:
99
+ - Tue, 20 Jan 2015 21:03:09 GMT
100
+ Content-Type:
101
+ - application/json
102
+ Content-Length:
103
+ - '145'
104
+ Connection:
105
+ - keep-alive
106
+ body:
107
+ encoding: UTF-8
108
+ string: "{\n\t\"code\" : 2,\n\t\"message\" : \"Missing required argument: type\",\n\t\"moreInfo\"
109
+ : \"http:\\/\\/developer.oanda.com\\/docs\\/v1\\/troubleshooting\\/#errors\"\n}"
110
+ http_version:
111
+ recorded_at: Tue, 20 Jan 2015 21:03:09 GMT
112
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,110 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-sandbox.oanda.com/v1/accounts/5342358/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: instrument=USD_JPY&side=buy&type=market&units=10000&username=dwaymotim
9
+ headers:
10
+ X-Accept-Datetime-Format:
11
+ - RFC3339
12
+ Connection:
13
+ - keep-alive
14
+ Keep-Alive:
15
+ - 30
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - openresty/1.7.0.1
23
+ Date:
24
+ - Tue, 20 Jan 2015 17:22:33 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '273'
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2015-01-20T17:22:33.000000Z\",\n\t\"price\"
34
+ : 114.893,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 175503924,\n\t\t\"units\"
35
+ : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\"
36
+ : 0,\n\t\t\"trailingStop\" : 0\n\t},\n\t\"tradesClosed\" : [],\n\t\"tradeReduced\"
37
+ : {}\n}"
38
+ http_version:
39
+ recorded_at: Tue, 20 Jan 2015 17:22:35 GMT
40
+ - request:
41
+ method: patch
42
+ uri: http://api-sandbox.oanda.com/v1/accounts/5342358/trades/175503924
43
+ body:
44
+ encoding: UTF-8
45
+ string: takeProfit=116.893&username=dwaymotim
46
+ headers:
47
+ X-Accept-Datetime-Format:
48
+ - RFC3339
49
+ Connection:
50
+ - keep-alive
51
+ Keep-Alive:
52
+ - 30
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Server:
59
+ - openresty/1.7.0.1
60
+ Date:
61
+ - Tue, 20 Jan 2015 17:22:33 GMT
62
+ Content-Type:
63
+ - application/json
64
+ Content-Length:
65
+ - '230'
66
+ Connection:
67
+ - keep-alive
68
+ body:
69
+ encoding: UTF-8
70
+ string: "{\n\t\"id\" : 175503924,\n\t\"units\" : 10000,\n\t\"side\" : \"buy\",\n\t\"instrument\"
71
+ : \"USD_JPY\",\n\t\"time\" : \"2015-01-20T17:22:33.000000Z\",\n\t\"price\"
72
+ : 114.893,\n\t\"takeProfit\" : 116.893,\n\t\"stopLoss\" : 0,\n\t\"trailingStop\"
73
+ : 0,\n\t\"trailingAmount\" : 0\n}"
74
+ http_version:
75
+ recorded_at: Tue, 20 Jan 2015 17:22:35 GMT
76
+ - request:
77
+ method: post
78
+ uri: http://api-sandbox.oanda.com/v1//accounts/5342358/orders
79
+ body:
80
+ encoding: UTF-8
81
+ string: username=dwaymotim
82
+ headers:
83
+ X-Accept-Datetime-Format:
84
+ - RFC3339
85
+ Connection:
86
+ - keep-alive
87
+ Keep-Alive:
88
+ - 30
89
+ response:
90
+ status:
91
+ code: 400
92
+ message: BAD_REQUEST
93
+ headers:
94
+ Server:
95
+ - openresty/1.7.0.1
96
+ Date:
97
+ - Tue, 20 Jan 2015 21:03:09 GMT
98
+ Content-Type:
99
+ - application/json
100
+ Content-Length:
101
+ - '145'
102
+ Connection:
103
+ - keep-alive
104
+ body:
105
+ encoding: UTF-8
106
+ string: "{\n\t\"code\" : 2,\n\t\"message\" : \"Missing required argument: type\",\n\t\"moreInfo\"
107
+ : \"http:\\/\\/developer.oanda.com\\/docs\\/v1\\/troubleshooting\\/#errors\"\n}"
108
+ http_version:
109
+ recorded_at: Tue, 20 Jan 2015 21:03:09 GMT
110
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,118 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-sandbox.oanda.com/v1/accounts/5342358/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: instrument=USD_JPY&side=buy&type=market&units=10000&username=dwaymotim
9
+ headers:
10
+ X-Accept-Datetime-Format:
11
+ - RFC3339
12
+ Connection:
13
+ - keep-alive
14
+ Keep-Alive:
15
+ - 30
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - openresty/1.7.0.1
23
+ Date:
24
+ - Tue, 20 Jan 2015 17:22:32 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '273'
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2015-01-20T17:22:32.000000Z\",\n\t\"price\"
34
+ : 114.893,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 175503922,\n\t\t\"units\"
35
+ : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\"
36
+ : 0,\n\t\t\"trailingStop\" : 0\n\t},\n\t\"tradesClosed\" : [],\n\t\"tradeReduced\"
37
+ : {}\n}"
38
+ http_version:
39
+ recorded_at: Tue, 20 Jan 2015 17:22:34 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://api-sandbox.oanda.com/v1/accounts/5342358/trades?instrument=USD_JPY&username=dwaymotim
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ X-Accept-Datetime-Format:
48
+ - RFC3339
49
+ Connection:
50
+ - keep-alive
51
+ Keep-Alive:
52
+ - 30
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Server:
59
+ - openresty/1.7.0.1
60
+ Date:
61
+ - Tue, 20 Jan 2015 17:22:32 GMT
62
+ Content-Type:
63
+ - application/json
64
+ Content-Length:
65
+ - '519'
66
+ Connection:
67
+ - keep-alive
68
+ Etag:
69
+ - '"4e7e8ec480ca75a51e707717142a82549c559332"'
70
+ X-Result-Count:
71
+ - '2'
72
+ body:
73
+ encoding: UTF-8
74
+ string: "{\n\t\"trades\" : [\n\t\t{\n\t\t\t\"id\" : 175503922,\n\t\t\t\"units\"
75
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
76
+ : \"2015-01-20T17:22:32.000000Z\",\n\t\t\t\"price\" : 114.893,\n\t\t\t\"takeProfit\"
77
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
78
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 175503921,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
79
+ : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\" : \"2015-01-20T17:22:32.000000Z\",\n\t\t\t\"price\"
80
+ : 114.893,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
81
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t}\n\t]\n}"
82
+ http_version:
83
+ recorded_at: Tue, 20 Jan 2015 17:22:35 GMT
84
+ - request:
85
+ method: post
86
+ uri: http://api-sandbox.oanda.com/v1//accounts/5342358/orders
87
+ body:
88
+ encoding: UTF-8
89
+ string: username=dwaymotim
90
+ headers:
91
+ X-Accept-Datetime-Format:
92
+ - RFC3339
93
+ Connection:
94
+ - keep-alive
95
+ Keep-Alive:
96
+ - 30
97
+ response:
98
+ status:
99
+ code: 400
100
+ message: BAD_REQUEST
101
+ headers:
102
+ Server:
103
+ - openresty/1.7.0.1
104
+ Date:
105
+ - Tue, 20 Jan 2015 21:03:09 GMT
106
+ Content-Type:
107
+ - application/json
108
+ Content-Length:
109
+ - '145'
110
+ Connection:
111
+ - keep-alive
112
+ body:
113
+ encoding: UTF-8
114
+ string: "{\n\t\"code\" : 2,\n\t\"message\" : \"Missing required argument: type\",\n\t\"moreInfo\"
115
+ : \"http:\\/\\/developer.oanda.com\\/docs\\/v1\\/troubleshooting\\/#errors\"\n}"
116
+ http_version:
117
+ recorded_at: Tue, 20 Jan 2015 21:03:09 GMT
118
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,118 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api-sandbox.oanda.com/v1/accounts/5342358/orders
6
+ body:
7
+ encoding: UTF-8
8
+ string: instrument=USD_JPY&side=buy&type=market&units=10000&username=dwaymotim
9
+ headers:
10
+ X-Accept-Datetime-Format:
11
+ - RFC3339
12
+ Connection:
13
+ - keep-alive
14
+ Keep-Alive:
15
+ - 30
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - openresty/1.7.0.1
23
+ Date:
24
+ - Tue, 20 Jan 2015 17:22:32 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Content-Length:
28
+ - '273'
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2015-01-20T17:22:32.000000Z\",\n\t\"price\"
34
+ : 114.893,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 175503921,\n\t\t\"units\"
35
+ : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\"
36
+ : 0,\n\t\t\"trailingStop\" : 0\n\t},\n\t\"tradesClosed\" : [],\n\t\"tradeReduced\"
37
+ : {}\n}"
38
+ http_version:
39
+ recorded_at: Tue, 20 Jan 2015 17:22:34 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://api-sandbox.oanda.com/v1/accounts/5342358/trades?username=dwaymotim
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ X-Accept-Datetime-Format:
48
+ - RFC3339
49
+ Connection:
50
+ - keep-alive
51
+ Keep-Alive:
52
+ - 30
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Server:
59
+ - openresty/1.7.0.1
60
+ Date:
61
+ - Tue, 20 Jan 2015 17:22:32 GMT
62
+ Content-Type:
63
+ - application/json
64
+ Content-Length:
65
+ - '519'
66
+ Connection:
67
+ - keep-alive
68
+ Etag:
69
+ - '"49523596e664e63f458dccaaf5cc07798c504e80"'
70
+ X-Result-Count:
71
+ - '2'
72
+ body:
73
+ encoding: UTF-8
74
+ string: "{\n\t\"trades\" : [\n\t\t{\n\t\t\t\"id\" : 175503921,\n\t\t\t\"units\"
75
+ : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"time\"
76
+ : \"2015-01-20T17:22:32.000000Z\",\n\t\t\t\"price\" : 114.893,\n\t\t\t\"takeProfit\"
77
+ : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\" : 0,\n\t\t\t\"trailingAmount\"
78
+ : 0\n\t\t},\n\t\t{\n\t\t\t\"id\" : 175503907,\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\"
79
+ : \"buy\",\n\t\t\t\"instrument\" : \"EUR_USD\",\n\t\t\t\"time\" : \"2015-01-20T17:22:27.000000Z\",\n\t\t\t\"price\"
80
+ : 1.24101,\n\t\t\t\"takeProfit\" : 0,\n\t\t\t\"stopLoss\" : 0,\n\t\t\t\"trailingStop\"
81
+ : 0,\n\t\t\t\"trailingAmount\" : 0\n\t\t}\n\t]\n}"
82
+ http_version:
83
+ recorded_at: Tue, 20 Jan 2015 17:22:34 GMT
84
+ - request:
85
+ method: post
86
+ uri: http://api-sandbox.oanda.com/v1//accounts/5342358/orders
87
+ body:
88
+ encoding: UTF-8
89
+ string: username=dwaymotim
90
+ headers:
91
+ X-Accept-Datetime-Format:
92
+ - RFC3339
93
+ Connection:
94
+ - keep-alive
95
+ Keep-Alive:
96
+ - 30
97
+ response:
98
+ status:
99
+ code: 400
100
+ message: BAD_REQUEST
101
+ headers:
102
+ Server:
103
+ - openresty/1.7.0.1
104
+ Date:
105
+ - Tue, 20 Jan 2015 21:03:09 GMT
106
+ Content-Type:
107
+ - application/json
108
+ Content-Length:
109
+ - '145'
110
+ Connection:
111
+ - keep-alive
112
+ body:
113
+ encoding: UTF-8
114
+ string: "{\n\t\"code\" : 2,\n\t\"message\" : \"Missing required argument: type\",\n\t\"moreInfo\"
115
+ : \"http:\\/\\/developer.oanda.com\\/docs\\/v1\\/troubleshooting\\/#errors\"\n}"
116
+ http_version:
117
+ recorded_at: Tue, 20 Jan 2015 21:03:09 GMT
118
+ recorded_with: VCR 2.9.3