Skip to content

Commit 565228c

Browse files
author
1Forge
committed
Updated readme and version #
1 parent f5d79f6 commit 565228c

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

README.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,12 @@ Returns an array of quotes, eg:
5353
[
5454
[
5555
"symbol" => "EURUSD",
56-
"bid" => 1.11725,
57-
"ask" => 1.11746,
56+
"price" => 1.11725,
5857
"timestamp" => 1496190844,
5958
],
6059
[
6160
"symbol" => "GBPJPY",
62-
"bid" => 142.037,
63-
"ask" => 142.09,
61+
"price" => 142.037,
6462
"timestamp" => 1496190844,
6563
],
6664
]
@@ -78,7 +76,7 @@ You can also implement the api directly in any other way you wish. Full document
7876
### Get all quotes
7977
#### Request
8078
```
81-
GET https://1forge.com/forex-quotes/quotes
79+
GET https://1forge.com/forex-data-api/1.0.1/quotes
8280
```
8381

8482
#### Response
@@ -87,14 +85,12 @@ GET https://1forge.com/forex-quotes/quotes
8785
{
8886
symbol: "AUDJPY",
8987
timestamp: 1496096332,
90-
bid: 82.726,
91-
ask: 82.757
88+
price: 82.726,
9289
},
9390
{
9491
symbol: "AUDUSD",
9592
timestamp: 1496096332,
96-
bid: 0.74396,
97-
ask: 0.74418
93+
price: 0.74396,
9894
},
9995
{
10096
etc: "........"
@@ -105,7 +101,7 @@ GET https://1forge.com/forex-quotes/quotes
105101
### Get specific quotes
106102
#### Request
107103
```
108-
GET https://1forge.com/forex-quotes/quotes?pairs=EURUSD,GBPJPY,AUDUSD
104+
GET https://1forge.com/forex-data-api/1.0.1/quotes?pairs=EURUSD,GBPJPY,AUDUSD
109105
```
110106

111107
#### Response
@@ -114,20 +110,17 @@ GET https://1forge.com/forex-quotes/quotes?pairs=EURUSD,GBPJPY,AUDUSD
114110
{
115111
symbol: "AUDUSD",
116112
timestamp: 1496096387,
117-
bid: 0.74392,
118-
ask: 0.74416
113+
price: 0.74392,
119114
},
120115
{
121116
symbol: "EURUSD",
122117
timestamp: 1496096387,
123-
bid: 1.11383,
124-
ask: 1.11404
118+
price: 1.11383,
125119
},
126120
{
127121
symbol: "GBPJPY",
128122
timestamp: 1496096387,
129-
bid: 142.657,
130-
ask: 142.715
123+
price: 142.657,
131124
}
132125
]
133126
```
@@ -136,7 +129,7 @@ GET https://1forge.com/forex-quotes/quotes?pairs=EURUSD,GBPJPY,AUDUSD
136129
### Get the symbol list
137130
#### Request
138131
```
139-
GET https://1forge.com/forex-quotes/symbols
132+
GET https://1forge.com/forex-data-api/1.0.1/symbols
140133
```
141134

142135
#### Response

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "oneforge/forexquotes",
33
"type": "library",
4-
"version":"1.0.3",
4+
"version": "1.0.4",
55
"description": "Library to fetch and parse realtime Forex quotes",
66
"keywords": [
77
"forex",

0 commit comments

Comments
 (0)