Type Definitions
CoinObject :object
Properties:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
CoinName |
string |
The string name for the coin Properties
|
Example
{
'bitcoin': {
'usd': {
'url': 'https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd',
'transform': function (response) {
if (response && response.bitcoin && response.bitcoin.usd) {
return response.bitcoin.usd
}
}
}
}
}
FiatObject :object
Properties:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FiatType |
string |
The Fiat Type you are defining (i.e. "usd") Properties
|