Skip to content

Commit

Permalink
Merge branch 'coincheckup-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed May 30, 2018
2 parents 53394c9 + d9c281a commit ced51d3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions js/lykke.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ module.exports = class lykke extends Exchange {
'urls': {
'logo': 'https://user-images.githubusercontent.com/1294454/34487620-3139a7b0-efe6-11e7-90f5-e520cef74451.jpg',
'api': {
'mobile': 'https://api.lykkex.com/api',
'mobile': 'https://public-api.lykke.com/api',
'public': 'https://hft-api.lykke.com/api',
'private': 'https://hft-api.lykke.com/api',
'test': {
'mobile': 'https://api.lykkex.com/api',
'mobile': 'https://public-api.lykke.com/api',
'public': 'https://hft-service-dev.lykkex.net/api',
'private': 'https://hft-service-dev.lykkex.net/api',
},
Expand All @@ -49,7 +49,7 @@ module.exports = class lykke extends Exchange {
'api': {
'mobile': {
'get': [
'AllAssetPairRates/{market}',
'Market/{market}',
],
},
'public': {
Expand Down Expand Up @@ -183,26 +183,25 @@ module.exports = class lykke extends Exchange {
let symbol = undefined;
if (market)
symbol = market['symbol'];
ticker = ticker['Result'];
return {
'symbol': symbol,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'high': undefined,
'low': undefined,
'bid': parseFloat (ticker['Rate']['Bid']),
'bid': parseFloat (ticker['bid']),
'bidVolume': undefined,
'ask': parseFloat (ticker['Rate']['Ask']),
'ask': parseFloat (ticker['ask']),
'askVolume': undefined,
'vwap': undefined,
'open': undefined,
'close': undefined,
'last': undefined,
'last': parseFloat (ticker['lastPrice']),
'previousClose': undefined,
'change': undefined,
'percentage': undefined,
'average': undefined,
'baseVolume': undefined,
'baseVolume': parseFloat (ticker['volume24H']),
'quoteVolume': undefined,
'info': ticker,
};
Expand All @@ -211,7 +210,7 @@ module.exports = class lykke extends Exchange {
async fetchTicker (symbol, params = {}) {
await this.loadMarkets ();
let market = this.market (symbol);
let ticker = await this.mobileGetAllAssetPairRatesMarket (this.extend ({
let ticker = await this.mobileGetMarketMarket (this.extend ({
'market': market['id'],
}, params));
return this.parseTicker (ticker, market);
Expand Down

0 comments on commit ced51d3

Please sign in to comment.