btce 0.5.4 → 0.5.5
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.
- checksums.yaml +4 -4
- data/lib/btce/api.rb +30 -26
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78d1d4c1d4a20c86240e48c3d8571b4e07e0b19b
|
|
4
|
+
data.tar.gz: 91493fcaded3fb07c7e0008a20b3e3edb7917a68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e291936d192e2cea57e3e002584e8cc41bafb5aa54bde225e3975aa2707b8c4ddb2f087f355820f0a9c635d6d397acd0e99526fa1a21c3a82c3c424527cb406
|
|
7
|
+
data.tar.gz: 49ff9fa1c38b39f7b79dcaf4007148419414d7ae7f7e53d4efb9b3e37302f2dfe95c45b51de64b16d1eeee8df45c6480b63bcee77ca70a51225dbeb8b8034970
|
data/lib/btce/api.rb
CHANGED
|
@@ -37,12 +37,16 @@
|
|
|
37
37
|
module Btce
|
|
38
38
|
class API
|
|
39
39
|
BTCE_DOMAIN = "btc-e.com"
|
|
40
|
-
CURRENCY_PAIRS = %w(
|
|
41
|
-
btc_eur
|
|
40
|
+
CURRENCY_PAIRS = %w(btc_eur
|
|
42
41
|
btc_rur
|
|
43
|
-
|
|
42
|
+
btc_usd
|
|
43
|
+
dsh_btc
|
|
44
|
+
eth_btc
|
|
45
|
+
eth_ltc
|
|
46
|
+
eth_rur
|
|
47
|
+
eth_usd
|
|
44
48
|
eur_rur
|
|
45
|
-
|
|
49
|
+
eur_usd
|
|
46
50
|
ltc_btc
|
|
47
51
|
ltc_eur
|
|
48
52
|
ltc_rur
|
|
@@ -53,30 +57,30 @@ module Btce
|
|
|
53
57
|
nvc_usd
|
|
54
58
|
ppc_btc
|
|
55
59
|
ppc_usd
|
|
56
|
-
|
|
57
|
-
usd_rur
|
|
58
|
-
xpm_btc)
|
|
60
|
+
usd_rur)
|
|
59
61
|
CURRENCIES = CURRENCY_PAIRS.map {|pair| pair.split("_")}.flatten.uniq.sort
|
|
60
62
|
MAX_DIGITS = {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
63
|
+
'btc_eur' => 5,
|
|
64
|
+
'btc_rur' => 5,
|
|
65
|
+
'btc_usd' => 3,
|
|
66
|
+
'dsh_btc' => 5,
|
|
67
|
+
'eth_btc' => 5,
|
|
68
|
+
'eth_ltc' => 5,
|
|
69
|
+
'eth_rur' => 5,
|
|
70
|
+
'eth_usd' => 5,
|
|
71
|
+
'eur_rur' => 5,
|
|
72
|
+
'eur_usd' => 5,
|
|
73
|
+
'ltc_btc' => 5,
|
|
74
|
+
'ltc_eur' => 3,
|
|
75
|
+
'ltc_rur' => 5,
|
|
76
|
+
'ltc_usd' => 6,
|
|
77
|
+
'nmc_btc' => 5,
|
|
78
|
+
'nmc_usd' => 3,
|
|
79
|
+
'nvc_btc' => 5,
|
|
80
|
+
'nvc_usd' => 3,
|
|
81
|
+
'ppc_btc' => 5,
|
|
82
|
+
'ppc_usd' => 3,
|
|
83
|
+
'usd_rur' => 5
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
class << self
|
metadata
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: btce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Auston Bunsen
|
|
8
8
|
- Christoph Bünte
|
|
9
|
+
- Charley David
|
|
9
10
|
- Davide Di Cillo
|
|
10
11
|
- Edward Funger
|
|
11
12
|
- Christopher Mark Gore
|