-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
107 lines (81 loc) · 3.73 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Binance Tensorflow Sandbox</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<link rel="stylesheet" href="./css/custom.css" >
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"> </script>
<script>
// Load Electron things
let $ = require("jquery");
let ts_class = require('./app/js/tensorflow_api_class.js');
let binance_class = require('./app/js/binance_api_class.js');
const api_settings = require('./app/js/api_keys').get_settings();
const binance = require('node-binance-api')().options({
APIKEY: api_settings.APIKEY,
APISECRET: api_settings.APISECRET,
useServerTime: true, // If you get timestamp errors, synchronize to server time at startup
test: false // If you want to use sandbox mode where orders are simulated
});
const TensorClass = new ts_class();
const BinanceClass = new binance_class();
require("./app/js/app.js");
//console.log(bela.exchange_data);
//const converter = require('./app/js/tensor_creator.js');
//require('./app/js/tensor_loader.js');
//let ts_create = require('./app/js/modell_creator.js');
</script>
<script src="./app/js/print.js"> </script>
</head>
<body>
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md-auto">
<h1>Tensorflow Bitcoin Price predicter!</h1>
</div>
</div>
<div class="row justify-content-md-center">
<div class="col-3">
</div>
<div class="col-3">
<h3>Predicted price:</h3>
<h3 class="next-predict"></h3>
</div>
<div class="col-3">
<h3>Currentprice:</h3>
<h3 class="current-price"></h3>
</div>
<div class="col-3">
<h3>Time:</h3>
<h3 class="time"></h3>
</div>
</div>
<div class="row justify-content-md-center">
<div class="col-3">
<h4>Control Panel:</h4>
</div>
<div class="col-9">
</div>
</div>
<div class="row justify-content-md-center">
<div class="col-3">
<div class="row"> <span class="dataset">Loading...</span></div>
<div class="row"> <span class="modell_diff">Loading...</span></div>
<div class="row"> <button type="button" onclick="start()" class="btn btn-success">Start modell</button> </div>
<div class="row"> <button type="button" onclick="clean_orders()" class="btn btn-warning">Clean Orders</button> </div>
</div>
<div class="col-9 loggs">
<h4>Logs:</h4>
</div>
</div>
<div class="row justify-content-md-center">
<div class="col-12">
<div id="chartdiv"></div>
</div>
</div>
</div>
</div>
</body>
</html>