sbd-npm 1.2.27 → 1.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/stock_basics.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/stock_basics.js CHANGED
@@ -357,13 +357,15 @@ let Stock = {
357
357
  Util.init_table_skeleton({
358
358
  "element_id": "big_deal_table",
359
359
  "head_cols": [
360
- {"name": "时间", "table_sort": 1},
360
+ {"name": "时间", "table_sort": 1, "class": "info"},
361
361
  {"name": "收盘价", "table_sort": 1},
362
362
  {"name": "主力净流入", "table_sort": 1, "title": "超大单净流入 + 大单净流入"},
363
363
  {"name": "超大单净流入", "table_sort": 1},
364
364
  {"name": "大单净流入", "table_sort": 1},
365
365
  {"name": "中单净流入", "table_sort": 1},
366
366
  {"name": "小单净流入", "table_sort": 1},
367
+ {"name": "成交量", "table_sort": 1},
368
+ {"name": "成交额", "table_sort": 1},
367
369
  ]
368
370
  });
369
371
  Util.post("/stock/" + Stock.code, {action: "big_deal"}, function (j) {
@@ -400,6 +402,8 @@ let Stock = {
400
402
  _html.push("<td data-val='", item["big_net_inflow"], "'><b class='", Util.text_color(item["big_net_inflow"]), "'>", Util.to_unit(item["big_net_inflow"]), "</b></td>");
401
403
  _html.push("<td data-val='", item["middle_net_inflow"], "'><b class='", Util.text_color(item["middle_net_inflow"]), "'>", Util.to_unit(item["middle_net_inflow"]), "</b></td>");
402
404
  _html.push("<td data-val='", item["small_net_inflow"], "'><b class='", Util.text_color(item["small_net_inflow"]), "'>", Util.to_unit(item["small_net_inflow"]), "</b></td>");
405
+ _html.push("<td class='volume-td'>", Util.to_float(item["volume"] / 10000, 2), "万手</td>");
406
+ _html.push("<td class='amount-td'>", Util.to_hundred_million(item["amount"]), "亿</td>");
403
407
  _html.push("</tr>");
404
408
  });
405
409
  Util.render_table_html("big_deal_table_body", _html);