Skip to content

Commit

Permalink
Add coinmetro readme, and fix its timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
tmlee committed Apr 23, 2019
1 parent dbcf44f commit f7241eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |
Expand Down
2 changes: 1 addition & 1 deletion lib/cryptoexchange/exchanges/coin_metro/services/market.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions spec/exchanges/coin_metro/integration/market_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f7241eb

Please sign in to comment.