diff --git a/README.md b/README.md index 6af74b311..9431f6a03 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ Or install it yourself as: | CoinJar | Y | Y | Y | | Y | Y | coinjar | | | Coinlim | Y | N | N | | Y | N | coinlim | | | Coinmate | Y | Y | | | User-Defined| | coinmate | | +| Coinmetro | Y | | | | | | coin_metro | | | Coinmex | Y | Y | Y | | Y | | coinmex | | | Coinnest | Y | Y | Y | | User-Defined| Y | coinnest | | | Coinnox | Y | Y | Y | | Y | | coinnox | | diff --git a/lib/cryptoexchange/exchanges/coin_metro/services/market.rb b/lib/cryptoexchange/exchanges/coin_metro/services/market.rb index 90a338c1c..1e9bf2f25 100644 --- a/lib/cryptoexchange/exchanges/coin_metro/services/market.rb +++ b/lib/cryptoexchange/exchanges/coin_metro/services/market.rb @@ -51,7 +51,7 @@ def adapt(output, market_pair) ticker.high = NumericHelper.to_d(output['h']) ticker.low = NumericHelper.to_d(output['l']) ticker.volume = NumericHelper.to_d(output['v']) - ticker.timestamp = output['timestamp'].to_i / 1000 + ticker.timestamp = nil ticker.payload = output ticker end diff --git a/spec/exchanges/coin_metro/integration/market_spec.rb b/spec/exchanges/coin_metro/integration/market_spec.rb index a531e8d04..5352771a7 100644 --- a/spec/exchanges/coin_metro/integration/market_spec.rb +++ b/spec/exchanges/coin_metro/integration/market_spec.rb @@ -27,8 +27,7 @@ expect(ticker.high).to be_a Numeric expect(ticker.low).to be_a Numeric expect(ticker.volume).to be_a Numeric - expect(ticker.timestamp).to be_a Numeric - expect(2000..Date.today.year).to include(Time.at(ticker.timestamp).year) + expect(ticker.timestamp).to be nil expect(ticker.payload).to_not be nil end end