Skip to content

Commit

Permalink
alerts-server: Add support for BINANCE exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed Jan 27, 2018
1 parent 96716b6 commit 50ac30c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ sealed abstract class Exchange(val string: String)
object Exchange {

case object BITTREX extends Exchange("BITTREX")
case object BINANCE extends Exchange("BINANCE")
case object BITSO extends Exchange("BITSO")
case object KUCOIN extends Exchange("KUCOIN")
case class UNKNOWN(override val string: String) extends Exchange(string)

private val fromStringPF: PartialFunction[String, Exchange] = {
case BITTREX.string => BITTREX
case BINANCE.string => BINANCE
case BITSO.string => BITSO
case KUCOIN.string => KUCOIN
}
Expand Down

0 comments on commit 50ac30c

Please sign in to comment.