- Preparing search index...
- The search index is not available
@premia/v3-sdk
Constructors
constructor
- new Coingecko(baseUri, apiKey?): Coingecko
-
Parameters
-
baseUri: string
-
Optional
apiKey: string
Properties
Optional
apiKey
apiKey?: string
Methods
createUrl
- createUrl(path): string
-
Returns string
get24HourPriceChange
- get24HourPriceChange(coinName, currency?): Promise<null | string>
-
Parameters
-
coinName: string
-
currency: string = 'usd'
Returns Promise<null | string>
getPrice
- getPrice(coinName, currency?): Promise<null | string>
-
Parameters
-
coinName: string
-
currency: string = 'usd'
Returns Promise<null | string>
getPriceByAddress
- getPriceByAddress(tokenAddress, chainId, currency?): Promise<null | string>
-
Parameters
-
tokenAddress: string
-
chainId: number
-
currency: string = 'usd'
Returns Promise<null | string>
getPricesByAddress
- getPricesByAddress(tokenAddresses, chainId, currency?): Promise<null | (null | string)[]>
-
Parameters
-
tokenAddresses: string[]
-
chainId: number
-
currency: string = 'usd'
Returns Promise<null | (null | string)[]>
Inherit Doc
coingeckoProApiKey