--- http_interactions: - request: method: post uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/orders body: encoding: UTF-8 string: instrument=USD_JPY&side=buy&type=market&units=10000 headers: X-Accept-Datetime-Format: - RFC3339 Authorization: - Bearer Connection: - keep-alive Keep-Alive: - '30' response: status: code: 200 message: OK headers: Server: - openresty/1.9.15.1 Date: - Mon, 08 Jan 2018 18:26:47 GMT Content-Type: - application/json Content-Length: - '275' Connection: - keep-alive Access-Control-Allow-Origin: - "*" body: encoding: UTF-8 string: "{\n\t\"instrument\" : \"USD_JPY\",\n\t\"time\" : \"2018-01-08T18:26:47.000000Z\",\n\t\"price\" : 113.076,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10903628544,\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: Mon, 08 Jan 2018 18:26:57 GMT - request: method: get uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/transactions?instrument=USD_JPY body: encoding: US-ASCII string: '' headers: X-Accept-Datetime-Format: - RFC3339 Authorization: - Bearer Connection: - keep-alive Keep-Alive: - '30' response: status: code: 200 message: OK headers: Server: - openresty/1.9.15.1 Date: - Mon, 08 Jan 2018 18:26:47 GMT Content-Type: - application/json Content-Length: - '16548' Connection: - keep-alive Access-Control-Expose-Headers: - X-Result-Count Etag: - '"2d0d65e39c06d905dab89927d39cd2da998aeed6"' X-Result-Count: - '50' Access-Control-Allow-Origin: - "*" body: encoding: UTF-8 string: "{\n\t\"transactions\" : [\n\t\t{\n\t\t\t\"id\" : 10903628544,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:47.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95840.6276,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628542,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95840.6276,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628541,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -1.0613,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95840.6276,\n\t\t\t\"tradeId\" : 10903628529\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628540,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:46.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628539,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628538,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628535,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:45.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628529,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:44.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628514,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -1.0613,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95841.6889,\n\t\t\t\"tradeId\" : 10903628505\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628513,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -1.0613,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95842.7502,\n\t\t\t\"tradeId\" : 10903628503\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628512,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -1.0613,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95843.8115,\n\t\t\t\"tradeId\" : 10903628502\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628511,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95844.8728,\n\t\t\t\"tradeId\" : 10903622626\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628510,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95847.6993,\n\t\t\t\"tradeId\" : 10903622625\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628509,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95850.5258,\n\t\t\t\"tradeId\" : 10903622620\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628508,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95853.3523,\n\t\t\t\"tradeId\" : 10903622618\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628507,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95856.1788,\n\t\t\t\"tradeId\" : 10903622611\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628506,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.064,\n\t\t\t\"pl\" : -2.8303,\n\t\t\t\"interest\" : 0.0038,\n\t\t\t\"accountBalance\" : 95859.0053,\n\t\t\t\"tradeId\" : 10903622607\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903628505,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628503,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:33.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628502,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:32.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.076,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\" : {\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\" : 10903628490,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:26:31.000000Z\",\n\t\t\t\"type\" : \"LIMIT_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.964,\n\t\t\t\"expiry\" : \"2018-01-08T19:26:42.000000Z\",\n\t\t\t\"reason\" : \"CLIENT_REQUEST\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903623195,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:04:02.000000Z\",\n\t\t\t\"type\" : \"TRADE_UPDATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 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\" : 10903622626,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:24.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622625,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:24.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622624,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:24.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.083,\n\t\t\t\"pl\" : -1.1496,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95861.8318,\n\t\t\t\"tradeId\" : 10903622606\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622620,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:24.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622618,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:23.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622611,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:23.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622607,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:23.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622606,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:22.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.096,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622550,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : -1.0612,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95862.9814,\n\t\t\t\"tradeId\" : 10903622540\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622549,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : -1.0612,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95864.0426,\n\t\t\t\"tradeId\" : 10903622539\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622548,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : -1.0612,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95865.1038,\n\t\t\t\"tradeId\" : 10903622538\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622547,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95866.165,\n\t\t\t\"tradeId\" : 10903544650\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622546,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95857.0313,\n\t\t\t\"tradeId\" : 10903544633\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622545,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95847.8976,\n\t\t\t\"tradeId\" : 10903544622\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622544,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95838.7639,\n\t\t\t\"tradeId\" : 10903544620\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622543,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95829.6302,\n\t\t\t\"tradeId\" : 10903544619\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622542,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 113.081,\n\t\t\t\"pl\" : 9.1075,\n\t\t\t\"interest\" : 0.0262,\n\t\t\t\"accountBalance\" : 95820.4965,\n\t\t\t\"tradeId\" : 10903544617\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903622540,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.093,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622539,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.093,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622538,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:12.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 113.093,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\" : {\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\" : 10903622521,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T18:01:11.000000Z\",\n\t\t\t\"type\" : \"LIMIT_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.981,\n\t\t\t\"expiry\" : \"2018-01-08T19:01:21.000000Z\",\n\t\t\t\"reason\" : \"CLIENT_REQUEST\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903578701,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T16:09:09.000000Z\",\n\t\t\t\"type\" : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10903544485,\n\t\t\t\"reason\" : \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903568544,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:56:52.000000Z\",\n\t\t\t\"type\" : \"ORDER_CANCEL\",\n\t\t\t\"orderId\" : 10903535170,\n\t\t\t\"reason\" : \"TIME_IN_FORCE_EXPIRED\"\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903544650,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.978,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\" : {\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\" : 10903544633,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.978,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeOpened\" : {\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\" : 10903544629,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\" : \"TRADE_CLOSE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"sell\",\n\t\t\t\"price\" : 112.963,\n\t\t\t\"pl\" : -1.3279,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95811.3628,\n\t\t\t\"tradeId\" : 10903544615\n\t\t},\n\t\t{\n\t\t\t\"id\" : 10903544622,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"side\" : \"buy\",\n\t\t\t\"price\" : 112.978,\n\t\t\t\"pl\" : 0,\n\t\t\t\"interest\" : 0,\n\t\t\t\"accountBalance\" : 95812.6907,\n\t\t\t\"tradeOpened\" : {\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\" : 10903544621,\n\t\t\t\"accountId\" : 1871900,\n\t\t\t\"time\" : \"2018-01-08T15:09:05.000000Z\",\n\t\t\t\"type\" : \"TRADE_UPDATE\",\n\t\t\t\"instrument\" : \"USD_JPY\",\n\t\t\t\"units\" : 10000,\n\t\t\t\"takeProfitPrice\" : 114.978,\n\t\t\t\"tradeId\" : 10903544620\n\t\t}\n\t]\n}" http_version: recorded_at: Mon, 08 Jan 2018 18:26:58 GMT - request: method: get uri: https://api-fxpractice.oanda.com/v1/accounts/1871900/transactions/10903628544 body: encoding: US-ASCII string: '' headers: X-Accept-Datetime-Format: - RFC3339 Authorization: - Bearer Connection: - keep-alive Keep-Alive: - '30' response: status: code: 200 message: OK headers: Server: - openresty/1.9.15.1 Date: - Mon, 08 Jan 2018 18:26:47 GMT Content-Type: - application/json Content-Length: - '326' Connection: - keep-alive Etag: - '"f8723c81c6249fa8bfd64d8414b5a89e72cfb68d"' Access-Control-Allow-Origin: - "*" body: encoding: UTF-8 string: "{\n\t\"id\" : 10903628544,\n\t\"accountId\" : 1871900,\n\t\"time\" : \"2018-01-08T18:26:47.000000Z\",\n\t\"type\" : \"MARKET_ORDER_CREATE\",\n\t\"instrument\" : \"USD_JPY\",\n\t\"units\" : 10000,\n\t\"side\" : \"buy\",\n\t\"price\" : 113.076,\n\t\"pl\" : 0,\n\t\"interest\" : 0,\n\t\"accountBalance\" : 95840.6276,\n\t\"tradeOpened\" : {\n\t\t\"id\" : 10903628544,\n\t\t\"units\" : 10000\n\t}\n}" http_version: recorded_at: Mon, 08 Jan 2018 18:26:58 GMT recorded_with: VCR 4.0.0