1.0.11 • Published 3 years ago
krypto-api-sdk v1.0.11
krypto.mn
Table of Contents
Install
$ npm install krypto-api-sdk
# OR
$ yarn add krypto-api-sdkUsage
const Krypto = require('krypto-spi-sdk')
const BASE_URL = '********'
const client = new Krypto(BASE_URL)
let query = { start: 0, limit: 100 }
client.getCryptoMarketPairsLatest(query).then(console.log).catch(console.error)API
Table of Contents
- getCryptoQuotesLatest
- Url
- Parameters
- Examples
- getCryptoMarketPairsLatest
- Url
- Parameters
- Examples
- getExchangeMarketPairs
- Url
- Parameters
- Examples
- getExchangeListingsLatest
- Url
- Parameters
- Examples
- getCryptoListingsLatest
- Url
- Parameters
- Examples
- getCryptoListingsTrending
- Url
- Parameters
- Examples
- getCryptoListingsGainers
- Url
- Parameters
- Examples
- getCryptoListingsRecent
- Url
- Parameters
- Examples
- getCryptoTag
- Url
- Parameters
- Examples
- getCryptoInfo
- Url
- Parameters
- Examples
- getMetricsQuotesLatest
- Url
- Parameters
- Examples
- getMetricsFearAndGreed
- Url
- Parameters
- Examples
- getToolsConversionRates
- Url
- Parameters
- Examples
- getExchangeInfo
- Url
- Parameters
- Examples
- getExchangeListingsLatest
- Url
- Parameters
- Examples
- getExchangeMarketPairs
- Url
- Parameters
- Examples
- getNews
- Url
- Parameters
- Examples
- getSingleNews
- Url
- Parameters
- Examples
- getNewsSearch
- Url
- Parameters
- Examples
- getNewsTag
- Url
- Parameters
- Examples
- getNewsTagInfo
- Url
- Parameters
- Examples
- getAdCategoryMap
- Url
- Parameters
- Examples
- getAdAssetLatest
- Url
- Parameters
- Examples
getCryptoQuotesLatest
Url
- /cryptocurrency/quotes/latest
Parameter
options(Object) Options for the request:options.slugoptions.symbol
Examples
const client = new Krypto(BASE_URL)
client.getCryptoQuotesLatest(query).then(console.log).catch(console.error)getCryptoMarketPairsLatest
Url
- /cryptocurrency/market-pairs/latest
Parameters
options(Object) Options for the request:options.id(Array)options.slugoptions.symbol
Examples
const client = new Krypto(BASE_URL)
client.getCryptoMarketPairsLatest(query).then(console.log).catch(console.error)getCryptoMap
Url
- /cryptocurrency/map
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getCryptoMap(query).then(console.log).catch(console.error)getFiatMap
Url
- /fiat/map
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getFiatMap(query).then(console.log).catch(console.error)getCryptoListingsLatest
Url
- /cryptocurrency/listings/latest
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getCryptoListingsLatest().then(console.log).catch(console.error)getCryptoListingsTrending
Url
- /cryptocurrency/listings/trending
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getCryptoListingsTrending().then(console.log).catch(console.error)getCryptoListingsGainers
Url
- /cryptocurrency/listings/gainers
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getCryptoListingsGainers(query).then(console.log).catch(console.error)getCryptoListingsRecent
Url
- /cryptocurrency/listings/recent
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getCryptoListingsRecent().then(console.log).catch(console.error)getCryptoTag
Url
- /cryptocurrency/tag
Parameters
Examples
const client = new Krypto(BASE_URL)
client.getCryptoTag(query).then(console.log).catch(console.error)getCryptoInfo
Url
- /exchange/info
Parameters
options(Object) Options for the request:options.idoptions.slugoptions.symbol
Examples
const client = new Krypto(BASE_URL)
client.getCryptoInfo(query).then(console.log).catch(console.error)getMetricsQuotesLatest
Url
- /metrics/quotes/latest
Parameters
Examples
const client = new Krypto(BASE_URL)
client.getMetricsQuotesLatest(query).then(console.log).catch(console.error)getMetricsFearAndGreed
Url
- /metrics/fear-and-greed
Parameters
Examples
const client = new Krypto(BASE_URL)
client.getMetricsFearAndGreed(query).then(console.log).catch(console.error)getToolsConversionRates
Url
- /tools/conversion-rates
Parameters
options(Object) Options for the request:options.symboloptions.convert
Examples
const client = new Krypto(BASE_URL)
client.getToolsConversionRates(query).then(console.log).catch(console.error)getExchangeInfo
Url
- /news
Parameters
options(Object) Options for the request:options.idoptions.slug
Examples
const client = new Krypto(BASE_URL)
client.getExchangeInfo(query).then(console.log).catch(console.error)getExchangeListingsLatest
Url
- /exchange/listings/latest
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getExchangeListingsLatest(query).then(console.log).catch(console.error)getExchangeMarketPairs
Url
- /exchange/market-pairs/latest
Parameters
options(Object) Options for the request:options.idoptions.slugoptions.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getExchangeMarketPairs(query).then(console.log).catch(console.error)getNews
Url
- /news/latest
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getNews(query).then(console.log).catch(console.error)getSingleNews
Url
- /news
Parameters
options(Object) Options for the request:options.slugoptions.tagoptions.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getSingleNews(query).then(console.log).catch(console.error)getNewsSearch
Url
- /news/search
Parameters
options(Object) Options for the request:options.slugoptions.tagoptions.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getNewsSearch(query).then(console.log).catch(console.error)getNewsTag
Url
- /news/tag/map
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getNewsTag(query).then(console.log).catch(console.error)getNewsTagInfo
Url
- /news/tag/info
Parameters
options(Object) Options for the request:options.slugoptions.id
Examples
const client = new Krypto(BASE_URL)
client.getNewsTagInfo(query).then(console.log).catch(console.error)getAdCategoryMap
Url
- /ad/category/map
Parameters
options(Object) Options for the request:options.startoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getAdCategoryMap(query).then(console.log).catch(console.error)getAdAssetLatest
Url
- /ad/category/map
Parameters
options(Object) Options for the request:options.idoptions.slugoptions.symboloptions.categoryoptions.limit
Examples
const client = new Krypto(BASE_URL)
client.getAdAssetLatest(query).then(console.log).catch(console.error)License
Licensed under the MIT License.