├── .browserslistrc
├── babel.config.js
├── docs
├── favicon.ico
├── css
│ └── app.86937be8.css
├── index.html
└── js
│ ├── app.0712f1c0.js
│ ├── app.0712f1c0.js.map
│ └── chunk-vendors.b322b316.js
├── postcss.config.js
├── public
├── favicon.ico
└── index.html
├── src
├── assets
│ ├── logo.png
│ └── GitHub-Mark-32px.png
├── shims-vue.d.ts
├── main.ts
├── shims-tsx.d.ts
├── components
│ └── HelloWorld.vue
├── lib
│ ├── gridConfig.ts
│ └── grid.ts
└── App.vue
├── vue.config.js
├── .gitignore
├── README.md
├── tslint.json
├── package.json
├── tsconfig.json
└── LICENSE
/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 |
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/app'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/docs/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenZhuoSteve/grid-trading/HEAD/docs/favicon.ico
--------------------------------------------------------------------------------
/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | autoprefixer: {}
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenZhuoSteve/grid-trading/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenZhuoSteve/grid-trading/HEAD/src/assets/logo.png
--------------------------------------------------------------------------------
/src/shims-vue.d.ts:
--------------------------------------------------------------------------------
1 | declare module "*.vue" {
2 | import Vue from "vue";
3 | export default Vue;
4 | }
5 |
--------------------------------------------------------------------------------
/src/assets/GitHub-Mark-32px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChenZhuoSteve/grid-trading/HEAD/src/assets/GitHub-Mark-32px.png
--------------------------------------------------------------------------------
/vue.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | publicPath: "/grid-trading/",
3 | outputDir: "docs",
4 | devServer: {
5 | port: 9000
6 | }
7 | }
--------------------------------------------------------------------------------
/src/main.ts:
--------------------------------------------------------------------------------
1 | import Vue from "vue";
2 | import App from "./App.vue";
3 |
4 | Vue.config.productionTip = false;
5 |
6 | new Vue({
7 | render: (h) => h(App),
8 | }).$mount("#app");
9 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 | # local env files
6 | .env.local
7 | .env.*.local
8 |
9 | # Log files
10 | npm-debug.log*
11 | yarn-debug.log*
12 | yarn-error.log*
13 |
14 | # Editor directories and files
15 | .idea
16 | .vscode
17 | *.suo
18 | *.ntvs*
19 | *.njsproj
20 | *.sln
21 | *.sw?
22 |
--------------------------------------------------------------------------------
/src/shims-tsx.d.ts:
--------------------------------------------------------------------------------
1 | import Vue, { VNode } from "vue";
2 |
3 | declare global {
4 | namespace JSX {
5 | // tslint:disable no-empty-interface
6 | interface Element extends VNode {}
7 | // tslint:disable no-empty-interface
8 | interface ElementClass extends Vue {}
9 | interface IntrinsicElements {
10 | [elem: string]: any;
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/components/HelloWorld.vue:
--------------------------------------------------------------------------------
1 |
2 |
查看源码
11 |
12 | | 序号 | 70 |类型 | 71 |档位 | 72 |买入价格 | 73 |卖出价格 | 74 |成本 | 75 |买入数量 | 76 |买入金额 | 77 |卖出数量 | 78 |卖出金额 | 79 |盈利金额 | 80 |盈利比例 | 81 |保留数量 | 82 |保留利润 | 83 | 84 | 85 ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{index+1}} | 87 |{{item.name}} | 88 |{{item.gear|toFixed}} | 89 |{{item.buyPrice|toFixed}}¥ | 90 |{{item.sellOutPrice|toFixed}}¥ | 91 |{{item.cost|toFixed}}¥ | 92 |{{item.buyAmount|toFixed(0)}} | 93 |{{item.buyValue|toFixed}}¥ | 94 |{{item.sellAmount|toFixed(0)}} | 95 |{{item.sellValue|toFixed}}¥ | 96 |{{item.profitValue|toFixed}}¥ | 97 |{{item.profitPercentage|toFixed}}% | 98 |{{item.retainAmount|toFixed(0)}} | 99 |无法保留 | 100 |{{item.retainProfitValue|toFixed}} | 101 |