Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adwulfran authored Jul 17, 2020
1 parent 9149919 commit 08636c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ npm install ws
```

# Usage example

Use stock symbol to receive datas. In this example we use EURUSD (forex), AAPL (apple - nasdaq), MSFT (microsoft - nasdaq) and MC.PA (lvmh - cac40)
```javascript
const WebSocket = require('ws');
const ws = new WebSocket("ws:https://realtimefinance.io, {
headers: {
"api_key": "demo",
"API-X-KEY": "demo",
"symbol" : "EURUSD,AAPL,MSFT,MC.PA"
}
});
Expand Down

0 comments on commit 08636c6

Please sign in to comment.