Published
Edited
Jul 23, 2019
Importers
Insert cell
md`# cDAI Pricing`
Insert cell
Insert cell
viewof ethPrice = number({placeholder: "", title: "ETH/DAI price", submit: true})
Insert cell
Insert cell
cDaiConversionRate = Number(cDaiData.exchange_rate.value)
Insert cell
cDaiData = cTokenData.cToken.find(d => d.symbol === "cDAI")
Insert cell
ctokenUrl = "https://api.compound.finance/api/v2/ctoken"
Insert cell
cTokenData = await d3.json(ctokenUrl)
Insert cell
md`documentation: https://docs.uniswap.io/analytics-api/analytics-api`
Insert cell
uniswapDaiData = await d3.json(uniswapDaiAddress)
Insert cell
d3 = require('d3')
Insert cell
import {number} from "@jashkenas/inputs"
Insert cell
import {slide, slide_style} from '@mbostock/slide'
Insert cell
slide_style
Insert cell
uniswapApi = 'https://uniswap-analytics.appspot.com/api/v1/ticker?exchangeAddress='
Insert cell
uniswapDaiAddress = `${uniswapApi}0x09cabec1ead1c0ba254b09efb3ee13841712be14`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more