Hallo miteinander,
bitte verurteilt mich nicht gleich das ich so doof frage.
Ich habe so was noch nie gemacht :-(.
Ich würde gerne den Kauf und den Verkaufspreis von LTC aus der Plattform btcdirect mir auf einer ganz simplen auf meinem Rechner laufenden Webseite anzeigen lassen.
Ich dachte daran das ich mir zwei Tabelle mache.
Erste Tabelle da trage ich im Quelltext meine kauf und Verkauf Daten ein.
Historie:
Datum | Bemerkung | Volumen | Kurs | Summe |
01.01.1990 | Kauf | 1 LTC | 0,50 € | 0,50 € | 1 LTC |
Aktuell:
Bemerkung | Volumen | Kurs | Virtuelle Summe |
Aktueller LTC Bestand | 1 LTC | [soll per API geholt werden] | [Soll über Volumen und API Berechnet werden] |
Ich habe jedoch keinen Plan wie ich die API in eine Webseite einbinden kann, ich gehe davon aus das das über Java Script gehen wird.
Und ich habe keinen Plan wie ich mit den Kurswert dann auch noch weiter rechnen kann.
Des Weiteren das dann noch Interessant ist für mich, wie kann ich den Kurswert und die Berechnung bei geöffneter Seite automatisch (alle 5 min) selbst sich aktualisierten lassen?
Ja das sind viel fragen die ich da habe, eventuell könnte mir jemand helfen.
ich habe keinen Plan wie ich anfangen soll.
Eine HTML Tabelle mit Grundgerüst bekomme ich hin
Gruß Mücke
[EDIT]
das ist der HTML Text den ich bisher dazu geschrieben habe.
bei [API] würde ich gerne über die API den Kurswert ermitteln
bei [Rechnen] würde ich gerne mit den ermittelten Kurswert rechnen.
alles andere würde ich von Hand eintragen im Quelltext.
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/* Historie Tabelle */
table.greenTable {
font-family: Georgia, serif;
border: 6px solid #24943A;
background-color: #D4EED1;
text-align: center;
}
table.greenTable td, table.greenTable th {
border: 1px solid #24943A;
padding: 3px 2px;
}
table.greenTable tbody td {
font-size: 13px;
}
table.greenTable thead {
background: #24943A;
background: -moz-linear-gradient(top, #5baf6b 0%, #3a9e4d 66%, #24943A 100%);
background: -webkit-linear-gradient(top, #5baf6b 0%, #3a9e4d 66%, #24943A 100%);
background: linear-gradient(to bottom, #5baf6b 0%, #3a9e4d 66%, #24943A 100%);
border-bottom: 0px solid #444444;
}
table.greenTable thead th {
font-size: 19px;
font-weight: bold;
color: #F0F0F0;
text-align: left;
border-left: 2px solid #24943A;
}
table.greenTable thead th:first-child {
border-left: none;
}
table.greenTable tfoot {
font-size: 13px;
font-weight: bold;
color: #F0F0F0;
background: #24943A;
background: -moz-linear-gradient(top, #5baf6b 0%, #3a9e4d 66%, #24943A 100%);
background: -webkit-linear-gradient(top, #5baf6b 0%, #3a9e4d 66%, #24943A 100%);
background: linear-gradient(to bottom, #5baf6b 0%, #3a9e4d 66%, #24943A 100%);
border-top: 1px solid #24943A;
}
table.greenTable tfoot td {
font-size: 13px;
}
table.greenTable tfoot .links {
text-align: right;
}
table.greenTable tfoot .links a{
display: inline-block;
background: #FFFFFF;
color: #24943A;
padding: 2px 8px;
border-radius: 5px;
}
</style>
<title>LTC Kauf - Verkauf</title>
</head>
<body>
<p>Historie</p>
<table class="greenTable">
<thead>
<tr>
<th>Datum</th>
<th>Bemerkung</th>
<th>Volumen</th>
<th>Kurs (1LTC = €)</th>
<th>Summe LTC</th>
<th>Summe €</th>
</tr>
</thead>
<tfoot>
<tr>
<td></td>
<td>G & V</td>
<td></td>
<td><div class="links"><a class="active" href="https://btcdirect.eu/de-at/litecoin-kaufen">BtcDirect</a></div></td>
<td>40,24691356</td>
<td>-8,77</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>01.01.1090</td>
<td>Kauf</td>
<td>30.12345678</td>
<td>0.12345678</td>
<td>+30.12345678</td>
<td>-3,70</td>
</tr>
<tr>
<td>02.01.1090</td>
<td>Kauf</td>
<td>10.12345678</td>
<td>0.50000000</td>
<td>+10.12345678</td>
<td>-5,07</td>
</tr>
</tbody>
</table>
<p>Aktuell</p>
<table class="greenTable">
<thead>
<tr>
<th>Bemerkung</th>
<th>Volumen</th>
<th>Kurs (1LTC = €)</th>
<th>Summe LTC</th>
<th>Summe €</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Virtueller G & V</td>
<td>Virtueller G & V</td>
<td><div class="links"><a class="active" href="https://btcdirect.eu/de-at/litecoin-kaufen">BtcDirect</a></div></td>
<td>0.00000000</td>
<td>+ 4.061,00</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>G & V</td>
<td>G & V</td>
<td>G & V</td>
<td>40,24691356</td>
<td>-8,77</td>
</tr>
<tr>
<td>Virtueller verkauf</td>
<td>40,24691356</td>
<td>101.12 [API] </td>
<td>-40,24691356</td>
<td>+4.069,77 [Rechnen]</td>
</tr>
</tbody>
</table>
</body>
</html>
Alles anzeigen
[/EDIT]