-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
223 lines (215 loc) · 9.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>使用HTML5新增标签实现页面布局</title>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<style>
section {
width: 800px;
margin: 0 auto;
}
article {
width: 400px;
float: left;
height: 100%;
background-color: #AFAFAF;
}
aside {
width: 400px;
float: right;
height: 100%;
background-color: #7f7f7f;
}
header {
width: 100%;
background-color: #ddd;
text-align: center;
}
footer {
width: 100%;
background-color: #FFF;
}
</style>
</head>
<body>
<section>
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">交易设定</div>
<!-- Table -->
<table border="1" class="table">
<tr>
<td width="60">币种</td>
<td width="200">OK买一价格</td>
<td width="200">OK买一深度</td>
<td width="60">当前差价</td>
<td width="60">最小数量</td>
<td width="60">最大数量</td>
<td width="60">交易差价</td>
<td width="200">huobi卖一价格</td>
<td width="200">huobi卖一深度</td>
<td width="60">启用</td>
</tr>
<tr>
<td>BTC</td>
<td id="OkBtcBuyPrice"> </td>
<td id="OkBtcBuyDepth"> </td>
<td id="BtcTrueGapPrice1"> </td>
<td>
<input type="number" name="BtcReadyMinAmount1" id="BtcReadyMinAmount1" min="0.5" max="10" />
</td>
<td>
<input type="number" name="BtcReadyMaxAmount1" id="BtcReadyMaxAmount1" min="0.5" max="10" />
</td>
<td>
<input type="number" name="BtcReadyGapPrice1" id="BtcReadyGapPrice1" min="0.5" max="10" />
</td>
<td id="HuoBtcSellPrice"> </td>
<td id="HuoBtcSellDepth"> </td>
<td id="CheckBox1">
<input type="checkbox" name="checkbox1" id="checkbox1">
<label for="checkbox">启用 </label>
</td>
</tr>
<tr>
<td>LTC</td>
<td id="OkLtcBuyPrice"> </td>
<td id="OkLtcBuyDepth"> </td>
<td id="LtcTrueGapPrice1"> </td>
<td>
<input type="number" name="LtcReadyMinAmount1" id="LtcReadyMinAmount1" min="1" max="20" />
</td>
<td>
<input type="number" name="LtcReadyMaxAmount1" id="LtcReadyMaxAmount1" min="0.5" max="10" />
</td>
<td>
<input type="number" name="LtcReadyGapPrice1" id="LtcReadyGapPrice1" min="0.5" max="10" />
</td>
<td id="HuoLtcSellPrice"> </td>
<td id="HuoLtcSellDepth"> </td>
<td id="CheckBox2">
<input type="checkbox" name="checkbox2" id="checkbox2">
<label for="checkbox">启用 </label>
</td>
</tr>
</table>
</br>
</br>
<table border="1" class="table">
<tr>
<td width="60">币种</td>
<td width="200">OK卖一价格</td>
<td width="200">OK卖一深度</td>
<td width="60">当前差价</td>
<td width="60">最小数量</td>
<td width="60">最大数量</td>
<td width="60">交易差价</td>
<td width="200">huobi买一价格</td>
<td width="200">huobi买一深度</td>
<td width="60">启用</td>
</tr>
<tr>
<td>BTC</td>
<td id="OkBtcSellPrice"> </td>
<td id="OkBtcSellDepth"> </td>
<td id="BtcTrueGapPrice2"> </td>
<td id="ReadyAmount">
<input type="number" name="BtcReadyMinAmount2" id="BtcReadyMinAmount2" min="0.5" max="1" />
</td>
<td id="ReadyGapPrice">
<input type="number" name="BtcReadyMaxAmount2" id="BtcReadyMaxAmount2" min="0.5" max="1" />
</td>
<td id="ReadyGapPrice">
<input type="number" name="BtcReadyGapPrice2" id="BtcReadyGapPrice2" min="0.5" max="1" />
</td>
<td id="HuoBtcBuyPrice"> </td>
<td id="HuoBtcBuyDepth"> </td>
<td id="CheckBox3">
<input type="checkbox" name="checkbox3" id="checkbox3">
<label for="checkbox">启用</label>
</td>
</tr>
<tr>
<td>LTC</td>
<td id="OkLtcSellPrice"> </td>
<td id="OkLtcSellDepth"> </td>
<td id="LtcTrueGapPrice2"> </td>
<td id="ReadyAmount">
<input type="number" name="LtcReadyMinAmount2" id="LtcReadyMinAmount2" min="1" max="2" //>
</td>
<td id="ReadyGapPrice">
<input type="number" name="LtcReadyMaxAmount2" id="LtcReadyMaxAmount2" min="0.5" max="1" />
</td>
<td id="ReadyGapPrice">
<input type="number" name="LtcReadyGapPrice2" id="LtcReadyGapPrice2" min="0.5" max="1" />
</td>
<td id="HuoLtcBuyPrice"> </td>
<td id="HuoLtcBuyDepth"> </td>
<td id="CheckBox4">
<input type="checkbox" name="checkbox4" id="checkbox4">
<label for="checkbox">启用</label>
</td>
</tr>
</table>
</div>
</section>
<section>
<div>
<table border="1">
<caption>
订单汇总
</caption>
<tbody>
<tr>
<th scope="col">ID</th>
<th scope="col">币种</th>
<th scope="col">买入市场</th>
<th scope="col">卖出市场</th>
<th scope="col">数量</th>
<th scope="col">预计利润</th>
<th scope="col">实际利润</th>
<th scope="col">状态</th>
<th scope="col">时间</th>
<th scope="col">操作</th>
</tr>
<tr>
<td width="95"> </td>
<td width="95"> </td>
<td width="95"> </td>
<td width="95"> </td>
<td width="95"> </td>
<td width="95"> </td>
<td width="95"> </td>
<td width="95"> </td>
<td width="95"> </td>
<td width="95"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</div>
</section>
</body>
<script language="JavaScript" type="text/javascript" src="js/jquery.min.js"></script>
<script language="JavaScript" type="text/javascript" src="js/bootstrap.min.js"></script>
<script language="JavaScript" type="text/javascript" src="js/getprice2.js"></script>
<script language="JavaScript" type="text/javascript" src="js/db3.js"></script>
<script type="text/javascript">
initDatabase();
setInterval("GetOkPrice()", 1000);
setInterval("GetHuoPrice()", 1000);
setInterval("PriceGapCheck()", 1000);
</script>)
</html>