Skip to content

Commit b752ab0

Browse files
authored
Merge pull request #40 from hugues31/update_pairs
Update pairs
2 parents 519082d + 97a856b commit b752ab0

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "coinnect"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
license = "MIT"
55
authors = ["Hugues Gaillard <[email protected]>", "Alejandro Inestal"]
66
description = """

src/kraken/utils.rs

+7
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ use types::Pair::*;
1111
lazy_static! {
1212
static ref PAIRS_STRING: BidirMap<Pair, &'static str> = {
1313
let mut m = BidirMap::new();
14+
m.insert(BCH_EUR, "BCHEUR");
15+
m.insert(BCH_USD, "BCHUSD");
16+
m.insert(BCH_BTC, "BCHXBT");
1417
m.insert(DASH_EUR, "DASHEUR");
1518
m.insert(DASH_USD, "DASHUSD");
1619
m.insert(DASH_BTC, "DASHXBT");
20+
m.insert(EOS_ETH, "EOSETH");
21+
m.insert(EOS_EUR, "EOSEUR");
22+
m.insert(EOS_USD, "EOSUSD");
23+
m.insert(EOS_BTC, "EOSXBT");
1724
m.insert(GNO_ETH, "GNOETH");
1825
m.insert(GNO_EUR, "GNOEUR");
1926
m.insert(GNO_USD, "GNOUSD");

src/types.rs

+9
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ pub enum OrderType {
8080
pub enum Currency {
8181
AMP,
8282
ARDR,
83+
BCH,
8384
BCN,
8485
BCY,
8586
BELA,
@@ -95,6 +96,7 @@ pub enum Currency {
9596
DCR,
9697
DGB,
9798
DOGE,
99+
EOS,
98100
EMC2,
99101
ETC,
100102
ETH,
@@ -175,6 +177,9 @@ pub enum Currency {
175177
pub enum Pair {
176178
AMP_BTC,
177179
ARDR_BTC,
180+
BCH_BTC,
181+
BCH_EUR,
182+
BCH_USD,
178183
BCN_BTC,
179184
BCN_XMR,
180185
BCY_BTC,
@@ -207,6 +212,10 @@ pub enum Pair {
207212
DGB_BTC,
208213
DOGE_BTC,
209214
EMC2_BTC,
215+
EOS_BTC,
216+
EOS_ETH,
217+
EOS_EUR,
218+
EOS_USD,
210219
ETC_BTC,
211220
ETC_ETH,
212221
ETC_EUR,

0 commit comments

Comments
 (0)