Skip to content

Commit 5581674

Browse files
authored
Merge pull request #16 from 1Forge/RestClientUpdate
Rest client update
2 parents ab5dd30 + 35f7efc commit 5581674

File tree

7 files changed

+1138
-1499
lines changed

7 files changed

+1138
-1499
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Forex API LLC
3+
Copyright (c) 2020 Forex API LLC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,26 @@ client.onDisconnect(() => {
5858
client.onConnect(() => {
5959

6060
// Subscribe to a single currency pair
61-
client.subscribeTo('EURUSD');
61+
client.subscribeTo('EUR/USD');
6262

6363
// Subscribe to an array of currency pairs
6464
client.subscribeTo([
65-
'GBPJPY',
66-
'AUDCAD',
67-
'EURCHF',
65+
'GBP/JPY',
66+
'AUD/CAD',
67+
'EUR/CHF',
6868
]);
6969

7070
// Subscribe to all currency pairs
7171
client.subscribeToAll();
7272

7373
// Unsubscribe from a single currency pair
74-
client.unsubscribeFrom('EURUSD');
74+
client.unsubscribeFrom('EUR/USD');
7575

7676
// Unsubscribe from an array of currency pairs
7777
client.unsubscribeFrom([
78-
'GBPJPY',
79-
'AUDCAD',
80-
'EURCHF'
78+
'GBP/JPY',
79+
'AUD/CAD',
80+
'EUR/CHF'
8181
]);
8282

8383
// Unsubscribe from all currency pairs
@@ -102,7 +102,7 @@ client.getSymbols().then(response => {
102102
});
103103

104104
// Get quotes for specified symbols:
105-
client.getQuotes(['EURUSD', 'GBPJPY', 'AUDUSD']).then(response => {
105+
client.getQuotes(['EUR/USD', 'GBP/JPY', 'AUD/USD']).then(response => {
106106
console.log(response);
107107
});
108108

0 commit comments

Comments
 (0)