Skip to content

Commit

Permalink
adding BCH_BTC book
Browse files Browse the repository at this point in the history
  • Loading branch information
vogelito committed Aug 6, 2017
1 parent a5105f1 commit 7c58b63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/bitso/BitsoBook.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.bitso;

public enum BitsoBook {
BTC_MXN, ETH_MXN, XRP_BTC, XRP_MXN, ETH_BTC;
BTC_MXN, ETH_MXN, XRP_BTC, XRP_MXN, ETH_BTC, BCH_BTC;

public String toString() {
return this.name().toLowerCase();
Expand All @@ -19,6 +19,8 @@ public BitsoCurrency getMajor() {
return BitsoCurrency.XRP;
case ETH_BTC:
return BitsoCurrency.ETH;
case BCH_BTC:
return BitsoCurrency.BCH;
default:
throw new IllegalStateException("No major specified for book: " + this.name());
}
Expand All @@ -36,6 +38,8 @@ public BitsoCurrency getMinor() {
return BitsoCurrency.MXN;
case ETH_BTC:
return BitsoCurrency.BTC;
case BCH_BTC:
return BitsoCurrency.BTC;
default:
throw new IllegalStateException("No minor specified for book: " + this.name());
}
Expand Down

0 comments on commit 7c58b63

Please sign in to comment.