Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix currency pair case #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ The feed wraps websocket client using `stream.Readable`:
```js
const { feedFor } = require('coinbase-pro-feed')

feedFor(['btc-eur'], { objectMode: false }) // when false
feedFor(['BTC-EUR'], { objectMode: false }) // when false
.pipe(process.stdout) // data event invokes raw buffer

feedFor(['btc-eur'], { objectMode: true }) // when true
feedFor(['BTC-EUR'], { objectMode: true }) // when true
.on('data', console.log) // data event invokes parsed object
```

Expand All @@ -41,7 +41,7 @@ The websocket client allows you to connect and listen to exchange messages.
```js
const { feedFor } = require('coinbase-pro-feed')

socketFor(['btc-eur'], { channels })
socketFor(['BTC-EUR'], { channels })
.on('open', () => {
console.log('open') // socket connected
})
Expand All @@ -65,7 +65,7 @@ npm install --global coinbase-pro-feed

#### Usage
```shell
coinbase-pro-feed btc-eur eth-eur ltc-eur
coinbase-pro-feed BTC-EUR ETH-EUR LTC-EUR

# stdout compatible with http://jsonlines.org
```
Expand Down