diff --git a/views/chart.php b/views/chart.php
index 09c05f8..89bb7a7 100644
--- a/views/chart.php
+++ b/views/chart.php
@@ -135,7 +135,7 @@ function renderChart(
}
CacheManager::set('poloniex-supported-currencies', $supportedCurrencies, 60 * 60 * 24 * 7); // asking once a week doesn't seem like too much
}
- if ($currencyB != 'btc' || !in_array($currencyA, $supportedCurrencies)) {
+ if (!in_array($currencyB, ['btc', 'usdt']) || !in_array($currencyA, $supportedCurrencies)) {
return false;
}
diff --git a/views/index.php b/views/index.php
index 6ff4323..b3ef275 100644
--- a/views/index.php
+++ b/views/index.php
@@ -72,19 +72,19 @@
Sparklines too! ETH 7 days: Sparklines too! ETH/BTC 7 days: The URL is flexible:Transparent SVG and PNG charts with your favorite cryptocurrencies
-
https://cryptohistory.org/charts/candlestick/dash-btc/7d/svg
+
https://cryptohistory.org/charts/candlestick/dash-usdt/7d/svg
-
<img src="https://cryptohistory.org/charts/sparkline/eth-btc/7d/svg" alt="ETH 7d chart" style="vertical-align: bottom;">
+
+
<img src="https://cryptohistory.org/charts/sparkline/eth-btc/7d/svg" alt="ETH/BTC 7d chart" style="vertical-align: bottom;">
Build your own chart:
- https://cryptohistory.org/charts/{theme}/{currency}-btc/{timespan}/{format}
https://cryptohistory.org/charts/{theme}/{currency}-{btc|usdt}/{timespan}/{format}
Theme: dark
, light
, or sparkline
.
Currency: anything active on Poloniex. Prices are all in bitcoin.
+Currency: anything active on Poloniex. Supports prices in Bitcoin or Tether USD.
Timespan: 1y
, 30d
, 7d
, or 24h
.
Format: svg
(best) or png
.
If you use svg format, you can control some of the colors with GET parameters: lineColor
, markerColor
, risingColor
, fallingColor
. Some examples: https://cryptohistory.com/charts/dark/maid-btc/7d/svg?lineColor=5593D7&markerColor=29578A
https://cryptohistory.org/charts/candlestick/fct-btc/7d/svg?risingColor=FE8534&fallingColor=00BAE9