Skip to content

Commit

Permalink
set default market view to aggregated depth
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 authored and chappjc committed Jun 25, 2019
1 parent 299f81d commit 94ec151
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions public/js/controllers/market_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const depth = 'depth'
const history = 'history'
const volume = 'volume'
const aggregatedKey = 'aggregated'
const binance = 'binance'
const anHour = '1h'
const minuteMap = {
'30m': 30,
Expand Down Expand Up @@ -582,7 +581,7 @@ export default class extends Controller {
settings.chart = depth
}
if (settings.xc == null) {
settings.xc = binance
settings.xc = usesOrderbook(settings.chart) ? aggregatedKey : 'binance'
}
if (settings.stack) {
settings.stack = parseInt(settings.stack)
Expand Down
4 changes: 2 additions & 2 deletions views/market.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@
data-target="market.chartSelect"
data-action="change->market#changeGraph"
>
<option value="depth" data-target="market.depthOnly">Depth Chart</option>
<option value="depth" data-target="market.depthOnly" selected>Depth Chart</option>
<option value="orders" data-target="market.depthOnly">Order Book</option>
<option value="candlestick" data-target="market.sticksOnly">Candlesticks</option>
<option value="history" data-target="market.sticksOnly" selected>Market History</option>
<option value="history" data-target="market.sticksOnly">Market History</option>
<option value="volume" data-target="market.sticksOnly">Volume</option>

</select>
Expand Down

0 comments on commit 94ec151

Please sign in to comment.