|
|
@@ -225,7 +225,7 @@ pub fn build_html_file(data_c: &Vec<VecDeque<Option<Decimal>>>) -> String {
|
|
|
let color = "";
|
|
|
if(item > 0) color = "#F2495E"
|
|
|
if(item < 0) color = "#13BF86"
|
|
|
- inventoryList.push({ name: "inventory",itemStyle:{color: color}, value: item, xAxis: index, yAxis: data[16][index] });
|
|
|
+ inventoryList.push({ name: "inventory",itemStyle:{color: color}, value: item, xAxis: index, yAxis: data[16][index] === "0" ? data[1][index] : data[16][index] });
|
|
|
}
|
|
|
});
|
|
|
return {
|
|
|
@@ -261,7 +261,7 @@ pub fn build_html_file(data_c: &Vec<VecDeque<Option<Decimal>>>) -> String {
|
|
|
},
|
|
|
legend: [
|
|
|
{
|
|
|
- data: ["mid_price", "fair0", "fair1", "optimal_ask_price", "optimal_bid_price", "fair_price"],
|
|
|
+ data: ["mid_price", "fair0", "fair1", "optimal_ask_price", "optimal_bid_price"],
|
|
|
top: "230px",
|
|
|
},
|
|
|
{
|
|
|
@@ -414,7 +414,8 @@ pub fn build_html_file(data_c: &Vec<VecDeque<Option<Decimal>>>) -> String {
|
|
|
name: "fair_price",
|
|
|
type: "line",
|
|
|
showSymbol: false,
|
|
|
- data: data[15],
|
|
|
+ // data: data[15],
|
|
|
+ data: []
|
|
|
},
|
|
|
|
|
|
{
|
|
|
@@ -483,7 +484,7 @@ pub fn build_html_file(data_c: &Vec<VecDeque<Option<Decimal>>>) -> String {
|
|
|
let color = "";
|
|
|
if(item > 0) color = "#F2495E"
|
|
|
if(item < 0) color = "#13BF86"
|
|
|
- inventoryList.push({ name: "inventory",itemStyle:{color: color}, value: item, xAxis: index, yAxis: data[1][index] });
|
|
|
+ inventoryList.push({ name: "inventory",itemStyle:{color: color}, value: item, xAxis: index, yAxis: data[16][index] === "0" ? data[1][index] : data[16][index] });
|
|
|
}
|
|
|
});
|
|
|
return {
|