File tree Expand file tree Collapse file tree 1 file changed +30
-26
lines changed Expand file tree Collapse file tree 1 file changed +30
-26
lines changed Original file line number Diff line number Diff line change 37
37
module Btce
38
38
class API
39
39
BTCE_DOMAIN = "btc-e.com"
40
- CURRENCY_PAIRS = %w( btc_usd
41
- btc_eur
40
+ CURRENCY_PAIRS = %w( btc_eur
42
41
btc_rur
43
- eur_usd
42
+ btc_usd
43
+ dsh_btc
44
+ eth_btc
45
+ eth_ltc
46
+ eth_rur
47
+ eth_usd
44
48
eur_rur
45
- ftc_btc
49
+ eur_usd
46
50
ltc_btc
47
51
ltc_eur
48
52
ltc_rur
@@ -53,30 +57,30 @@ class API
53
57
nvc_usd
54
58
ppc_btc
55
59
ppc_usd
56
- trc_btc
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
- "btc_usd" => 3 ,
62
- "btc_eur" => 3 ,
63
- "btc_rur" => 4 ,
64
- "eur_usd" => 4 ,
65
- "eur_rur" => 4 ,
66
- "ftc_btc" => 4 ,
67
- "ltc_btc" => 5 ,
68
- "ltc_eur" => 6 ,
69
- "ltc_rur" => 4 ,
70
- "ltc_usd" => 6 ,
71
- "nmc_btc" => 4 ,
72
- "nmc_usd" => 6 ,
73
- "nvc_btc" => 4 ,
74
- "nvc_usd" => 4 ,
75
- "ppc_btc" => 4 ,
76
- "ppc_usd" => 4 ,
77
- "trc_btc" => 6 ,
78
- "usd_rur" => 4 ,
79
- "xpm_btc" => 6
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
You can’t perform that action at this time.
0 commit comments