You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,16 +37,16 @@ Or in your composer.json
37
37
```php
38
38
<?php
39
39
40
-
use OneForge\ForexQuotes\QuoteRequest;
40
+
use OneForge\ForexQuotes\ForexRequest;
41
41
42
42
//Returns an array of symbols, eg: ['EURUSD', 'GBPJPY']
43
-
QuoteRequest::getSymbols();
43
+
ForexRequest::getSymbols();
44
44
```
45
45
### Get quotes for specified symbols:
46
46
```php
47
47
<?php
48
48
49
-
use OneForge\ForexQuotes\QuoteRequest;
49
+
use OneForge\ForexQuotes\ForexRequest;
50
50
51
51
/*
52
52
Returns an array of quotes, eg:
@@ -63,12 +63,29 @@ Returns an array of quotes, eg:
63
63
],
64
64
]
65
65
*/
66
-
QuoteRequest::getQuotes([
66
+
ForexRequest::getQuotes([
67
67
'AUDUSD',
68
68
'GBPJPY'
69
69
]);
70
70
```
71
71
72
+
73
+
### Check if the market is open:
74
+
```php
75
+
<?php
76
+
77
+
use OneForge\ForexQuotes\ForexRequest;
78
+
79
+
/*
80
+
Returns an boolean
81
+
*/
82
+
if (ForexRequest::marketIsOpen())
83
+
{
84
+
echo "Market is open";
85
+
}
86
+
```
87
+
88
+
72
89
## Other implementations
73
90
You can also implement the api directly in any other way you wish. Full documentation is maintained here: <ahref="https://1forge.com/forex-data-api">https://1forge.com/forex-data-api</a>
0 commit comments