node-lykke-api
v0.1.1
Published
Lykke API Node Wrapper
Downloads
2
Readme
Lykke API Node Wrapper
Installation
npm install --save node-lykke-api
Usage
// Import the desired module
const { LykkePublicAPI, LykkeWalettAPI } = require('node-lykke-api');
// Create an instance
const publicAPI = new LykkePublicAPI();
const walettAPI = new LykkeWalettAPI();
// Get stuff done
publicAPI
.isAlive()
.then(response => {
console.log(response.data);
console.log(response.status);
})
.catch(error => {
console.log(error);
});
walettAPI
.isAlive()
.then(response => {
console.log(response.data);
console.log(response.status);
})
.catch(error => {
console.log(error);
});
Methods
Lykke Public API
https://lykke-public-api.azurewebsites.net/swagger/ui/index.html
AssetPairs
assetPairsRates()
assetPairsRates(assetPairId)
assetPairsDictionary()
assetPairsRatesHistory(assetPairIds, period, dateTime)
Assets
assetsDictionary()
Company
companyOwnershipStructure()
IsAlive
isAlive()
Market
market()
market(assetPairId)
marketCapitalization(assetPairId)
OrderBook
orderBook()
orderBook(assetPairId)
Trades
trades(n)
Version
version()
Lykke Wallet API
https://api.lykkex.com/swagger/ui/index/index.html
Incomplete API, a V2 is in progress. https://www.reddit.com/r/lykke/comments/6u20kq/is_the_api_ready_or_still_in_progress/
AccountExist
accountExist(email, partnerId)
Auth
auth(email, password, clientInfo, partnerId)
IsAlive
isAlive()
Version
version()
Contributors
- Justin Levinson (@justinlevinson)