btce 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/btce.rb +13 -9
- metadata +3 -1
data/lib/btce.rb
CHANGED
|
@@ -46,35 +46,39 @@ module Btce
|
|
|
46
46
|
CURRENCY_PAIRS = %w(btc_usd
|
|
47
47
|
btc_eur
|
|
48
48
|
btc_rur
|
|
49
|
+
eur_usd
|
|
50
|
+
ftc_btc
|
|
49
51
|
ltc_btc
|
|
50
|
-
ltc_usd
|
|
51
52
|
ltc_eur
|
|
52
53
|
ltc_rur
|
|
54
|
+
ltc_usd
|
|
53
55
|
nmc_btc
|
|
54
56
|
nmc_usd
|
|
55
|
-
usd_rur
|
|
56
|
-
eur_usd
|
|
57
57
|
nvc_btc
|
|
58
58
|
nvc_usd
|
|
59
59
|
ppc_btc
|
|
60
|
-
ftc_btc
|
|
61
60
|
trc_btc
|
|
62
|
-
|
|
61
|
+
usd_rur
|
|
63
62
|
xpm_btc)
|
|
64
63
|
CURRENCIES = CURRENCY_PAIRS.map {|pair| pair.split("_")}.flatten.uniq.sort
|
|
65
64
|
MAX_DIGITS = {
|
|
66
65
|
"btc_usd" => 3,
|
|
67
66
|
"btc_eur" => 3,
|
|
68
67
|
"btc_rur" => 4,
|
|
68
|
+
"eur_usd" => 4,
|
|
69
|
+
"ftc_btc" => 4,
|
|
69
70
|
"ltc_btc" => 5,
|
|
70
|
-
"
|
|
71
|
+
"ltc_eur" => 6,
|
|
71
72
|
"ltc_rur" => 4,
|
|
73
|
+
"ltc_usd" => 6,
|
|
72
74
|
"nmc_btc" => 4,
|
|
73
|
-
"
|
|
74
|
-
"eur_usd" => 4,
|
|
75
|
+
"nmc_usd" => 6,
|
|
75
76
|
"nvc_btc" => 4,
|
|
77
|
+
"nvc_usd" => 4,
|
|
76
78
|
"ppc_btc" => 4,
|
|
77
|
-
"
|
|
79
|
+
"trc_btc" => 6,
|
|
80
|
+
"usd_rur" => 4,
|
|
81
|
+
"xpm_btc" => 6
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
class << self
|
metadata
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: btce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
|
+
- Christoph Bünte
|
|
8
9
|
- Edward Funger
|
|
9
10
|
- Christopher Mark Gore
|
|
10
11
|
- Sami Laine
|
|
@@ -63,3 +64,4 @@ signing_key:
|
|
|
63
64
|
specification_version: 3
|
|
64
65
|
summary: A simple library to interface with the API for btc-e.com in Ruby.
|
|
65
66
|
test_files: []
|
|
67
|
+
has_rdoc:
|