From 59b0cc6ecbb1f8aa1fee81c9996767b927d902c4 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Mon, 21 Jun 2021 10:58:51 +0100 Subject: [PATCH] update forex examples --- forex/examples.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 forex/examples.json diff --git a/forex/examples.json b/forex/examples.json new file mode 100644 index 0000000..499cebf --- /dev/null +++ b/forex/examples.json @@ -0,0 +1,43 @@ + +{ + "price": [{ + "title": "Get an FX price", + "description": "Returns the last traded price of a currency pair", + "request": { + "symbol": "GBPUSD" + }, + "response": { + "symbol": "GBPUSD", + "price": 1.38 + } + }], + "quote": [{ + "title": "Get a FX quote", + "description": "Returns the last quote for a currency pair as bid and ask prices", + "request": { + "symbol": "GBPUSD" + }, + "response": { + "symbol": "GBPUSD", + "ask_price": 1.38422, + "bid_price": 1.38416, + "timestamp": "2021-06-21T08:58:31Z" + } + }], + "history": [{ + "title": "Get previous close", + "description": "Returns the data for the previous close", + "request": { + "symbol": "GBPUSD" + }, + "response": { + "symbol": "GBPUSD", + "open": 1.37902, + "close": 1.3814, + "high": 1.3824, + "low": 1.37902, + "volume": 3930, + "date": "2021-06-20" + } + }] +}