Skip to content

Commit

Permalink
Merge pull request #40 from hugues31/update_pairs
Browse files Browse the repository at this point in the history
Update pairs
  • Loading branch information
hugues31 authored Aug 6, 2017
2 parents 519082d + 97a856b commit b752ab0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "coinnect"
version = "0.5.0"
version = "0.5.1"
license = "MIT"
authors = ["Hugues Gaillard <hugues.gaillard@me.com>", "Alejandro Inestal"]
description = """
Expand Down
7 changes: 7 additions & 0 deletions src/kraken/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ use types::Pair::*;
lazy_static! {
static ref PAIRS_STRING: BidirMap<Pair, &'static str> = {
let mut m = BidirMap::new();
m.insert(BCH_EUR, "BCHEUR");
m.insert(BCH_USD, "BCHUSD");
m.insert(BCH_BTC, "BCHXBT");
m.insert(DASH_EUR, "DASHEUR");
m.insert(DASH_USD, "DASHUSD");
m.insert(DASH_BTC, "DASHXBT");
m.insert(EOS_ETH, "EOSETH");
m.insert(EOS_EUR, "EOSEUR");
m.insert(EOS_USD, "EOSUSD");
m.insert(EOS_BTC, "EOSXBT");
m.insert(GNO_ETH, "GNOETH");
m.insert(GNO_EUR, "GNOEUR");
m.insert(GNO_USD, "GNOUSD");
Expand Down
9 changes: 9 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ pub enum OrderType {
pub enum Currency {
AMP,
ARDR,
BCH,
BCN,
BCY,
BELA,
Expand All @@ -95,6 +96,7 @@ pub enum Currency {
DCR,
DGB,
DOGE,
EOS,
EMC2,
ETC,
ETH,
Expand Down Expand Up @@ -175,6 +177,9 @@ pub enum Currency {
pub enum Pair {
AMP_BTC,
ARDR_BTC,
BCH_BTC,
BCH_EUR,
BCH_USD,
BCN_BTC,
BCN_XMR,
BCY_BTC,
Expand Down Expand Up @@ -207,6 +212,10 @@ pub enum Pair {
DGB_BTC,
DOGE_BTC,
EMC2_BTC,
EOS_BTC,
EOS_ETH,
EOS_EUR,
EOS_USD,
ETC_BTC,
ETC_ETH,
ETC_EUR,
Expand Down

0 comments on commit b752ab0

Please sign in to comment.