Sha256: 7b85796829666bc61ef00780150dc70afa5a7aa9c802288ef7dba6b905b4d17e
Contents?: true
Size: 1.96 KB
Versions: 5
Compression:
Stored size: 1.96 KB
Contents
--- http_interactions: - request: method: post uri: http://api-sandbox.oanda.com/v1/accounts/5342358/orders body: encoding: UTF-8 string: instrument=EUR_USD&side=buy&type=market&units=10000&username=dwaymotim headers: X-Accept-Datetime-Format: - RFC3339 Connection: - keep-alive Keep-Alive: - 30 response: status: code: 200 message: OK headers: Server: - openresty/1.7.0.1 Date: - Tue, 20 Jan 2015 17:22:27 GMT Content-Type: - application/json Content-Length: - '273' Connection: - keep-alive body: encoding: UTF-8 string: "{\n\t\"instrument\" : \"EUR_USD\",\n\t\"time\" : \"2015-01-20T17:22:27.000000Z\",\n\t\"price\" : 1.24101,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 175503907,\n\t\t\"units\" : 10000,\n\t\t\"side\" : \"buy\",\n\t\t\"takeProfit\" : 0,\n\t\t\"stopLoss\" : 0,\n\t\t\"trailingStop\" : 0\n\t},\n\t\"tradesClosed\" : [],\n\t\"tradeReduced\" : {}\n}" http_version: recorded_at: Tue, 20 Jan 2015 17:22:29 GMT - request: method: post uri: http://api-sandbox.oanda.com/v1//accounts/5342358/orders body: encoding: UTF-8 string: username=dwaymotim headers: X-Accept-Datetime-Format: - RFC3339 Connection: - keep-alive Keep-Alive: - 30 response: status: code: 400 message: BAD_REQUEST headers: Server: - openresty/1.7.0.1 Date: - Tue, 20 Jan 2015 21:03:06 GMT Content-Type: - application/json Content-Length: - '145' Connection: - keep-alive body: encoding: UTF-8 string: "{\n\t\"code\" : 2,\n\t\"message\" : \"Missing required argument: type\",\n\t\"moreInfo\" : \"http:\\/\\/developer.oanda.com\\/docs\\/v1\\/troubleshooting\\/#errors\"\n}" http_version: recorded_at: Tue, 20 Jan 2015 21:03:06 GMT recorded_with: VCR 2.9.3
Version data entries
5 entries across 5 versions & 1 rubygems