MCPcopy Create free account

hub / github.com/coinconvert/crypto-convert / functions

Functions48 in github.com/coinconvert/crypto-convert

↓ 11 callersFunctionformatNumber
(n: number | string, decimals?: number)
src/helpers.ts:51
↓ 7 callersMethodkeys
Returns a list of keys in the list.
src/api.d.ts:19
↓ 7 callersMethodready
* Promise function that resolves when cache has loaded.
src/index.ts:355
↓ 5 callersMethodlog
(..._: any)
src/worker.ts:221
↓ 4 callersMethod#getPrice
* Get a symbol price from tickers
src/index.ts:69
↓ 4 callersMethod#populate
* Recursively creates the conversion wrapper functions for all the currencies.
src/index.ts:186
↓ 3 callersMethod#isSafeKey
(key: string)
src/index.ts:162
↓ 3 callersFunctionsymbolMap
(symbol: string, map: { /** * @example * * { * 'USDT': 'USD' //Replace USDT with USD
src/helpers.ts:1
↓ 2 callersMethod#setExtendedOptions
(options: ExtendedOptions)
src/index.ts:173
↓ 2 callersMethodbrowserTicker
()
src/worker.ts:454
↓ 2 callersFunctiongetAverage
(pairs: { [symbol: string]: number }[])
src/helpers.ts:32
↓ 2 callersFunctionisEmpty
(obj: any)
src/helpers.ts:67
↓ 2 callersMethodrun
()
src/worker.ts:572
↓ 2 callersMethodsetOptions
* Update options
src/index.ts:291
↓ 2 callersMethodupdateCrypto
()
src/worker.ts:333
↓ 1 callersMethod#wrapper
* This is where conversion happens.
src/index.ts:85
↓ 1 callersMethodaddCurrency
* Add a custom currency fetcher. Can be anything. * * @example * ```javascript * convert.addCurrency('ANY','USD', async fetchPrice()=>{ *
src/index.ts:372
↓ 1 callersMethodbrowserLists
()
src/worker.ts:478
↓ 1 callersFunctionisValidUrl
(string: string)
src/helpers.ts:75
↓ 1 callersMethodjoinPrices
(data: Tickers)
src/worker.ts:426
↓ 1 callersMethodlist
* Supported currencies list
src/index.ts:259
↓ 1 callersMethodremoveCurrency
(base: string, quote?: string)
src/custom.ts:73
↓ 1 callersMethodrestart
* Re-start the worker when it has been stopped.
src/index.ts:347
↓ 1 callersMethodrunBrowser
()
src/worker.ts:496
↓ 1 callersMethodrunServer
()
src/worker.ts:542
↓ 1 callersMethodsetOptions
* Options
src/worker.ts:247
↓ 1 callersMethodstop
()
src/worker.ts:586
↓ 1 callersMethodticker
* Price Tickers
src/index.ts:284
↓ 1 callersMethodupdateFiat
()
src/worker.ts:386
↓ 1 callersMethodupdateLists
()
src/worker.ts:404
Method[Symbol.iterator]
()
src/api.d.ts:15
MethodaddCurrency
( base: string, quote: string, getter: ()=>number | Promise<number>, interval?: number, )
src/custom.ts:26
Methodconstructor
(options: ExtendedOptions = {})
src/index.ts:43
Methodconstructor
(o?: Options | ((currentOptions: Options) => Options))
src/worker.ts:229
Methodconstructor
( )
src/custom.ts:17
MethodcryptoInfo
* Metadata information about cryptocurrencies
src/index.ts:269
Methodentries
Returns an array of key, value pairs for every entry in the list.
src/api.d.ts:17
MethodfunctionProto
()
src/index.ts:164
MethodisCustomServerHost
()
src/worker.ts:329
MethodisReady
* Quick check if cache has loaded.
src/index.ts:252
MethodlastUpdated
* Get crypto prices last updated ms
src/index.ts:276
Functionon_request
(request)
src/api.ts:26
Functionon_success
(response, request?)
src/api.ts:39
Methodready
()
src/custom.ts:22
MethodremoveCurrency
* Remove custom currency fetcher.
src/index.ts:390
Methodrestart
()
src/worker.ts:608
Methodstop
* Stop the worker. * * It's recommended to do this on Component unmounts (i.e if you are using React).
src/index.ts:340
Methodvalues
Returns a list of values in the list.
src/api.d.ts:21