MarketIndex eliminated, order book pannel removed
This commit is contained in:
1 parent
9517ff8ae9
commit
eb3ed29858
9 files changed
+54220
-141
No files matched your search
+2
-10
@@ -30,8 +30,6 @@ function newTimelineChart() {
|
||||
let marketId;
|
||||
let exchangeId;
|
||||
|
||||
let marketIndex;
|
||||
|
||||
let level;
|
||||
|
||||
let chartGrid;
|
||||
@@ -39,11 +37,10 @@ function newTimelineChart() {
|
||||
let initializationReady = false;
|
||||
|
||||
let productsPanel;
|
||||
let orderBookPanel;
|
||||
|
||||
return thisObject;
|
||||
|
||||
function initialize(exchange, market, pProductsPanel, orderBookPanelToUse, callBackFunction) {
|
||||
function initialize(exchange, market, pProductsPanel, callBackFunction) {
|
||||
|
||||
/* Remember the Products Panel */
|
||||
|
||||
@@ -55,16 +52,11 @@ function newTimelineChart() {
|
||||
|
||||
/* Legacy code to clean */
|
||||
|
||||
orderBookPanel = orderBookPanelToUse;
|
||||
|
||||
marketId = market;
|
||||
exchangeId = exchange;
|
||||
|
||||
chartGrid = newChartGrid();
|
||||
|
||||
marketIndex = newMarketIndex();
|
||||
marketIndex.initialize(exchangeId, marketId, continueInitialization);
|
||||
|
||||
function continueInitialization() {
|
||||
|
||||
recalculateScale();
|
||||
@@ -490,7 +482,7 @@ function newTimelineChart() {
|
||||
|
||||
var maxValue = {
|
||||
x: MAX_PLOTABLE_DATE.valueOf(),
|
||||
y: nextPorwerOf10(marketIndex.maxRate())
|
||||
y: nextPorwerOf10(USDT_BTC_HTH)
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user