btce 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/btce/api.rb +30 -26
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f6bceffb3f7e58988a6a42b42a8cc10d7b39c07
4
- data.tar.gz: cf477419c3e2677b8675717b4497848fbc86da68
3
+ metadata.gz: 78d1d4c1d4a20c86240e48c3d8571b4e07e0b19b
4
+ data.tar.gz: 91493fcaded3fb07c7e0008a20b3e3edb7917a68
5
5
  SHA512:
6
- metadata.gz: 1564b6e6d44ffdd3ffe2cdd0315afe31b64cb06a772ec8e958b587da839e0b8a8456d3449819f2eb108ab116d9404376180d32e6fdf29f0016d89e06b7161e25
7
- data.tar.gz: 639f0c14dd9936f9f72b8ddf4bc49ae0263bf93ea0138dcaeb1860fc82f7f98ce9726228e23d2b13866de954c0a18f051f759491f83cf91dd1ccf67b989d85a8
6
+ metadata.gz: 6e291936d192e2cea57e3e002584e8cc41bafb5aa54bde225e3975aa2707b8c4ddb2f087f355820f0a9c635d6d397acd0e99526fa1a21c3a82c3c424527cb406
7
+ data.tar.gz: 49ff9fa1c38b39f7b79dcaf4007148419414d7ae7f7e53d4efb9b3e37302f2dfe95c45b51de64b16d1eeee8df45c6480b63bcee77ca70a51225dbeb8b8034970
@@ -37,12 +37,16 @@
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 @@ module Btce
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
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
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