Skip to content

Commit

Permalink
Correct Pair getting base/quote.
Browse files Browse the repository at this point in the history
  • Loading branch information
passabilities committed Jul 21, 2017
1 parent 6afa645 commit b6d6e56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Returns the depth of available buy and sell orders.
###### Arguments

* `pair` string - The pair to fetch the order book for.
* `depth` number (optional) - How big of an order book to return in each direction. DEFAULT: 20
* `depth` number (optional) - How big of an order book to return in each direction. DEFAULT: 50

###### Response

Expand Down
4 changes: 2 additions & 2 deletions lib/pair.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class Pair {
}

static quote(pair) {
return _.first(pair.split('_'))
return _.last(pair.split('_'))
}
static base(pair) {
return _.last(pair.split('_'))
return _.first(pair.split('_'))
}

}
Expand Down

0 comments on commit b6d6e56

Please sign in to comment.