plotOrderBook <- function(symbol = "BTC", symbol_base = "USDT", limit = 1000) {
d <- getOrderBook(symbol, symbol_base, limit)
ggplot(d, aes(x = PRICE, y = QUANTITY, fill = TYPE))+
geom_area()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.