coindesk
Version:
Client for retrieving Bitcoin information from Coindesk API service
69 lines (65 loc) • 1.54 kB
JSON
{
"API_COINDESK_SETUP": {
"protocol": "https",
"host": "api.coindesk.com",
"path": "/v1/bpi"
},
"API_CURRENTPRICE_DATA_TYPE": "currentprice",
"API_HISTORICAL_DATA_TYPE": "historical",
"API_SUPPORTED_CURRENCIES_DATA_TYPE": "supported-currencies",
"API_CURRENTPRICE_ENDPOINT": "currentprice.json",
"API_HISTORICAL_ENDPOINT": "historical/close.json",
"API_ENDPOINTS": {
"API_SUPPORTED_CURRENCIES_ENDPOINT": "supported-currencies.json",
"currentprice": "currentprice.json",
"historical": "historical/close.json",
"supported-currencies": "supported-currencies.json"
},
"VALID_DATA_TYPES": [
"currentprice",
"historical"
],
"INDEX_PARAM": "index",
"CURRENCY_PARAM": "currency",
"START_PARAM": "start",
"END_PARAM": "end",
"FOR_PARAM": "for",
"VALID_CURRENTPRICE_PARAMS": [
"currency"
],
"VALID_HISTORICAL_PARAMS": [
"index",
"currency",
"start",
"end",
"for"
],
"VALID_INDEX": [
"USD",
"CNY"
],
"VALID_FOR": [
"yesterday"
],
"DEFAULT_LOG_LEVEL": "info",
"DEFAULT_LOG_SILENT": "false",
"DEFAULT_LOG_FILEPATH": "/tmp/coindesk.log",
"VALID_LOG_LEVELS": [
"error",
"warn",
"info",
"verbose",
"debug",
"silly"
],
"REQUEST_MAX_RETRIES": 10,
"REQUEST_MAX_REDIRECTS": 5,
"REQUEST_MAX_TIMEOUT": 30000,
"REQUEST_HEADERS": {
"Accept": "application/json",
"Accept-Language": "en-US",
"Cache-Control": "no-cache",
"Connection": "close",
"X-API-client-version": "0.1.3"
}
}