Skip to content

Commit

Permalink
Merge pull request #16 from 1Forge/RestClientUpdate
Browse files Browse the repository at this point in the history
Rest client update
  • Loading branch information
bricktownseo authored Jun 7, 2020
2 parents ab5dd30 + 35f7efc commit 5581674
Show file tree
Hide file tree
Showing 7 changed files with 1,138 additions and 1,499 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Forex API LLC
Copyright (c) 2020 Forex API LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,26 @@ client.onDisconnect(() => {
client.onConnect(() => {

// Subscribe to a single currency pair
client.subscribeTo('EURUSD');
client.subscribeTo('EUR/USD');

// Subscribe to an array of currency pairs
client.subscribeTo([
'GBPJPY',
'AUDCAD',
'EURCHF',
'GBP/JPY',
'AUD/CAD',
'EUR/CHF',
]);

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

// Unsubscribe from a single currency pair
client.unsubscribeFrom('EURUSD');
client.unsubscribeFrom('EUR/USD');

// Unsubscribe from an array of currency pairs
client.unsubscribeFrom([
'GBPJPY',
'AUDCAD',
'EURCHF'
'GBP/JPY',
'AUD/CAD',
'EUR/CHF'
]);

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

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

Expand Down
Loading

0 comments on commit 5581674

Please sign in to comment.